Re: [mapserver-users] Spatial Filter with WFS

2010-11-23 Thread Rahkonen Jukka
Hi,
 
This one may not be the only problem, but I would start by creating a valid WFS 
1.1.0 request by giving a filter as gml3 or alternatively go on with using gml2 
filter but changing version to WFS 1.0.0.  Here below is a WFS 1.1.0 request 
that works against deegree.  It does not necessarily work against Mapserver 
because it can well be that Mapserver does not support gml:Surface, even if the 
surface is a plain polygon as in this  case.  However, you see that gml3 does 
not use 
http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml"; xmlns:wfs="http://www.opengis.net/wfs"; 
service="WFS" version="1.1.0" maxFeatures="1000" outputFormat="text/xml; 
subtype=gml/3.1.1">
http://www.deegree.org/app"; srsName="EPSG:26912" 
typeName="app:Counties">


http://www.deegree.org/app";>
app:position






87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 
198.0









 
-Jukka Rahkonen-
 
 
 
 

Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Fischer, Andreas
Lähetetty: 22. marraskuuta 2010 19:36
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Spatial Filter with WFS
 

Dear MapServer-User,
 
I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer 
information about land and properties. I use PostgreSQL/PostGIS (8.4.4/1.5.1) 
as datastore in this case. The spatial reference system is EPSG:25832 und the 
type of the geometry is MULTIPOLYGON. OS is Suse Linux Enterprise Server 11, 
Servicepack1.
 

WMS and WFS work fine until I use a spatial filter within the 
getFeature-Request of the WFS. In this case the response doesn't deliver any 
features. Nevertheless the number of features (e.g. numberOf Features='4') is 
correct. I tried this out with a couple of different boundingboxes and the 
known number of features that intersect these boundigboxes. In all cases I do 
not get any features back, but always the right number. So it seems that at 
least the intersection of the boundingbox and my data works correctly.
 
Please take a look at the following request and response that illustrate that 
problem:
 
Request:
 
http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0&;
 
Filter=
 

 
msGeometry
 

 

 

 
409350,5709890 
409350,5709910 409370,5709910 409370,5709890 409350,5709890
 

 

 

 

 

 

Response
 

 
 
http://mapserver.gis.umn.edu/mapserver"; 
xmlns:gml="http://www.opengis.net/gml"; xmlns:wfs=http://www.opengis.net/wfs 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver 
http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=folie001&OUTPUTFORMAT=text/xml;
 subtype=gml/3.1.1 http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; numberOfFeatures="4">
 

 

 
-1.00 -1.00 
 
-1.00 
-1.00 
 

 

 

 
 
 
Indeed of this behavior the WFS returns features when I do not use a spatial 
filter. Therefore in my opinion the WFS should be configured right in general. 
To me the spatial filter seems to be the problem. Unfortunately I do not have 
any ideas what is going wrong.
 

For more information you can take a look at my MapFile and a part of the 
capabilities document returned from the WFS below:
 

MAP
 
NAME "ku_testwfs"
 
STATUS ON
 
SIZE 400 520
 
EXTENT 389965 5693582 420177 5732815
 
UNITS METERS
 
PROJECTION
 
"init=epsg:25832"
 
END
 
SYMBOLSET "/mapserver/symbols/symbols_alk.sym"
 
FONTSET "/mapserver/fonts/fonts.fnt"
 
IMAGECOLOR 255 255 255
 
WEB
 
IMAGEPATH "/mapbender/mb262/http/tmp/"
 
IMAGEURL "http://myserver/mapbender/tmp/";
 
METADATA
 
"ows_onlineresource" 
"http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map";
 
"ows_title" "Liegenschaftskarte, Kreis Unna"
 
"ows_accessconstraints" "Nutzung nur für den 
Dienstgebrauch."
 
"ows_abstract" "Flurstücksfolie der Liegenschaftskarte."
 
"ows_contactperson" "Andreas Fischer"
 
"ows_contactorganization" "Kreis Unna"
 
"ows_

Re: [mapserver-users] Spatial Filter with WFS

2010-11-23 Thread Yewondwossen Assefa

Hi all,

As noted MapServer does not support gml:Surface. The original request 
with gml:Polygon seems to be correct.
Andreas, is it possible to package it and send it to me off list. I can 
quickly check what the issue is.


regards,



as noted Mapserver does not support gml:Surface.

On 23/11/2010 8:26 AM, Rahkonen Jukka wrote:

Hi,

This one may not be the only problem, but I would start by creating a 
valid WFS 1.1.0 request by giving a filter as gml3 or alternatively go 
on with using gml2 filter but changing version to WFS 1.0.0.  Here 
below is a WFS 1.1.0 request that works against deegree.  It does not 
necessarily work against Mapserver because it can well be that 
Mapserver does not support gml:Surface, even if the surface is a plain 
polygon as in this  case.  However, you see that gml3 does not use 
or Mapserver bug or both if your request works.



http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:wfs="http://www.opengis.net/wfs"; service="WFS" version="1.1.0" 
maxFeatures="1000" outputFormat="text/xml; subtype=gml/3.1.1">
http://www.deegree.org/app"; srsName="EPSG:26912" 
typeName="app:Counties">



http://www.deegree.org/app";>
app:position






87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 
198.0










-Jukka Rahkonen-

Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Fischer, Andreas

Lähetetty: 22. marraskuuta 2010 19:36
Vastaanottaja: mapserver-users@lists.osgeo.org 


Aihe: [mapserver-users] Spatial Filter with WFS

Dear MapServer-User,
I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer 
information about land and properties. I use PostgreSQL/PostGIS 
(8.4.4/1.5.1) as datastore in this case. The spatial reference system 
is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse 
Linux Enterprise Server 11, Servicepack1.


WMS and WFS work fine until I use a spatial filter within the 
getFeature-Request of the WFS. In this case the response doesn't 
deliver any features. Nevertheless the number of features (e.g. 
numberOf Features='4') is correct. I tried this out with a couple of 
different boundingboxes and the known number of features that 
intersect these boundigboxes. In all cases I do not get any features 
back, but always the right number. So it seems that at least the 
intersection of the boundingbox and my data works correctly.
Please take a look at the following request and response that 
illustrate that problem:

Request:
http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0 
&

Filter=

msGeometry



409350,5709890 409350,5709910 409370,5709910 
409370,5709890 409350,5709890







Response


xmlns:ms="http://mapserver.gis.umn.edu/mapserver"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:wfs=http://www.opengis.net/wfs 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver 
http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=folie001&OUTPUTFORMAT=text/xml 
; 
subtype=gml/3.1.1 http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; numberOfFeatures="4">



-1.00 -1.00
-1.00 -1.00



Indeed of this behavior the WFS returns features when I do not use a 
spatial filter. Therefore in my opinion the WFS should be configured 
right in general. To me the spatial filter seems to be the problem. 
Unfortunately I do not have any ideas what is going wrong.


For more information you can take a look at my MapFile and a part of 
the capabilities document returned from the WFS below:


MAP
NAME "ku_testwfs"
STATUS ON
SIZE 400 520
EXTENT 389965 5693582 420177 5732815
UNITS METERS
PROJECTION
"init=epsg:25832"
END
SYMBOLSET "/mapserver/symbols/symbols_alk.sym"
FONTSET "/mapserver/fonts/fonts.fnt"
IMAGECOLOR 255 255 255
WEB
IMAGEPATH "/mapbender/mb262/http/tmp/"
IMAGEURL "http://myserver/mapbender/tmp/";
METADATA
"ows_onlineresource" 
"http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map";

"ows_title" "Liegenschaftskarte, Kreis Unna"
 

[mapserver-users] SLD and OUTPUTFORMAT compatibility?

2010-11-23 Thread Martin Ouellet
Hi all,

I have 2 two differents settings for symbolize my lines (refer to SLD
settings below):

1) a dashed line which is working *only when I specify the
outputformat:  *DRIVER
"*GD*/PNG"
**Note that with the driver GD/PNG, the external graphic below is not
working but the symbol (ico-ulaval-flag.gif) is copied locally in the
/ms_tmp directory.
It seem to be ignored by mapserver (but raising no error)...

2) a external graphic which is working *only when I specify the
outputformat:  *DRIVER "*AGG*/PNG"

Q: Is there a way/config to support both at the same time?

any advice?

Thanks you in advance!

MartinOuellet

SLD settings:
__


Re: [mapserver-users] Spatial Filter with WFS

2010-11-23 Thread Yewondwossen Assefa

On 23/11/2010 9:00 AM, Rahkonen Jukka wrote:
Y.A, a question for you:  I have thought that also the filters should 
be presented as gml3 with WFS 1.1.0 and thus posList should be used 
instead of coordinates. Am I wrong with this belief?  By the way, this 
is how Geoserver 2.1 beta 1 writes out on multipolygon as gml3


Yes with wfs 1.1, It should be gml3. Note that the parsing of the gml 
tree is done through OGR and I believe OGR is flexible to read the 
different syntax for a  tag. We do not schema validate the 
gml in MapServer and take as assumption that It is good, if it is parsed 
properly by OGR.








37.510991 -88.071564 37.4762736 -88.087883 37.442852 
-88.311707 37.409308 -88.359177

-Jukka Rahkonen-


 I was not aware of the MultiSurface  element. It is now added in svn 
(http://trac.osgeo.org/mapserver/ticket/3615)



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


[mapserver-users] Classifying Dynamic Points

2010-11-23 Thread Burgholzer, Robert (DEQ)
I have succeeded in generating a point layer dynamically thanks to a
wiki entry
(http://trac.osgeo.org/mapserver/wiki/PHPMapScriptAddPointScale), but I
find that I do not have the understanding that I need to color code
these points by their value.  These values are precipitation summaries,
that I want to apply a color ramp to.

 

I can't figure out how to add an attribute other than the x,y,z, and m
coordinates.  Is this possible?  I really want to do this without having
to use my postgis connection, but rather, with this dynamically
generated layer approach if possible.

 

Thanks,

r.b.

 

Robert W. Burgholzer

Surface Water Modeler

Office of Water Supply and Planning

Virginia Department of Environmental Quality

rwburghol...@deq.virginia.gov

804-698-4405

Open Source Modeling Tools:

http://sourceforge.net/projects/npsource/

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


Re: [mapserver-users] SLD and OUTPUTFORMAT compatibility?

2010-11-23 Thread Yewondwossen Assefa

Hi Martin,

 Can you try to check the map file after the sld has been applied: you 
can do that by setting your map file in debug and checking the log file  
look for something like "...Map file after SLD was applied"  (ex: 
something like this):

CONFIG  "MS_ERRORFILE" "f:/msapps/gmap-ms40/htdocs/gmap.log"
DEBUG 5

We can then check why the same style setting is not drawing the same way 
with the 2 drivers.  Please also indicate which version of MapServer you 
are using.


regards,



On 23/11/2010 9:15 AM, Martin Ouellet wrote:

Hi all,

I have 2 two differents settings for symbolize my lines (refer to SLD 
settings below):


1) a dashed line which is working *_only when I specify the 
outputformat:_ *DRIVER "*GD*/PNG"
**Note that with the driver GD/PNG, the external graphic below is not 
working but the symbol (ico-ulaval-flag.gif) is copied locally in the 
/ms_tmp directory.

It seem to be ignored by mapserver (but raising no error)...

2) a external graphic which is working *_only when I specify the 
outputformat:_ *DRIVER "*AGG*/PNG"


Q: Is there a way/config to support both at the same time?

any advice?

Thanks you in advance!

MartinOuellet

SLD settings:
__


RE: [mapserver-users] Classifying Dynamic Points

2010-11-23 Thread Burgholzer, Robert (DEQ)
Hmm, maybe a *little* more work than I was hoping for, but that might be
a workable solution.  Thanks for the tip/link.  

 

Guess the question still remains, do these pointObj's have no other
parameter attributes?

 

Robert W. Burgholzer

Surface Water Modeler

Office of Water Supply and Planning

Virginia Department of Environmental Quality

rwburghol...@deq.virginia.gov

804-698-4405

Open Source Modeling Tools:

http://sourceforge.net/projects/npsource/



From: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Sent: Tuesday, November 23, 2010 10:29 AM
To: Burgholzer, Robert (DEQ)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Classifying Dynamic Points

 

Maybe wrting a shape file would do the trick for you since you have the
ability to add attributes?
 
http://svn.osgeo.org/mapserver/trunk/mapserver/mapscript/php/examples/te
st_writeshape.phtml

On 23/11/2010 9:56 AM, Burgholzer, Robert (DEQ) wrote: 

I have succeeded in generating a point layer dynamically thanks to a
wiki entry
(http://trac.osgeo.org/mapserver/wiki/PHPMapScriptAddPointScale), but I
find that I do not have the understanding that I need to color code
these points by their value.  These values are precipitation summaries,
that I want to apply a color ramp to.

 

I can't figure out how to add an attribute other than the x,y,z, and m
coordinates.  Is this possible?  I really want to do this without having
to use my postgis connection, but rather, with this dynamically
generated layer approach if possible.

 

Thanks,

r.b.

 

Robert W. Burgholzer

Surface Water Modeler

Office of Water Supply and Planning

Virginia Department of Environmental Quality

rwburghol...@deq.virginia.gov

804-698-4405

Open Source Modeling Tools:

http://sourceforge.net/projects/npsource/

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






-- 

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] SLD and OUTPUTFORMAT compatibility?

2010-11-23 Thread Martin Ouellet
Hi Assafa, thanks for your quick reply

I'am working with mapserver 5.6.5 (installed form elgis RPM -
http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS)

Here the requested files:

I've prefix the files with "aggpng_working" of identify the working example
1) aggpng_working_mapserv.log (log of mapserver for this case only)
2) the working scenario generate 2 mapfile:
aggpng_working_4cebdca9_13c_2._sld.map
aggpng_working_4cebdca9_13f_2._sld.map

I've prefix the files with "gdpng_notworking" to identify the case who's not
working
3) gdpng_notworking_mapserv.log (log of mapserver for this case only)
4) gdpng_notworking_4cebdbff_7fc0_2._sld.map

Thanks again...

MartinO

2010/11/23 Yewondwossen Assefa 

>  Hi Martin,
>
>  Can you try to check the map file after the sld has been applied: you can
> do that by setting your map file in debug and checking the log file  look
> for something like "...Map file after SLD was applied"  (ex: something like
> this):
> CONFIG  "MS_ERRORFILE" "f:/msapps/gmap-ms40/htdocs/gmap.log"
> DEBUG 5
>
> We can then check why the same style setting is not drawing the same way
> with the 2 drivers.  Please also indicate which version of MapServer you are
> using.
>
> regards,
>
>
>
>
> On 23/11/2010 9:15 AM, Martin Ouellet wrote:
>
> Hi all,
>
>  I have 2 two differents settings for symbolize my lines (refer to SLD
> settings below):
>
>  1) a dashed line which is working *only when I specify the outputformat:
>   *DRIVER "*GD*/PNG"
> **Note that with the driver GD/PNG, the external graphic below is not
> working but the symbol (ico-ulaval-flag.gif) is copied locally in the
> /ms_tmp directory.
> It seem to be ignored by mapserver (but raising no error)...
>
>  2) a external graphic which is working *only when I specify the
> outputformat:  *DRIVER "*AGG*/PNG"
>
>  Q: Is there a way/config to support both at the same time?
>
>  any advice?
>
>  Thanks you in advance!
>
>  MartinOuellet
>
>  SLD settings:
>
> __
>
>   
> Assefa Yewondwossen
> Software Analyst
>
> Email: yass...@dmsolutions.cahttp://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] Classifying Dynamic Points

2010-11-23 Thread Yewondwossen Assefa

On 23/11/2010 10:34 AM, Burgholzer, Robert (DEQ) wrote:


Hmm, maybe a **little** more work than I was hoping for, but that 
might be a workable solution.  Thanks for the tip/link.


Guess the question still remains, do these pointObj's have no other 
parameter attributes?


 Not that I know of.  (Doc is available at 
http://mapserver.org/mapscript/php/index.htm to see of classes and 
methods available)


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


Re: [mapserver-users] Classifying Dynamic Points

2010-11-23 Thread Yewondwossen Assefa
Maybe wrting a shape file would do the trick for you since you have the 
ability to add attributes?
  
http://svn.osgeo.org/mapserver/trunk/mapserver/mapscript/php/examples/test_writeshape.phtml


On 23/11/2010 9:56 AM, Burgholzer, Robert (DEQ) wrote:


I have succeeded in generating a point layer dynamically thanks to a 
wiki entry 
(http://trac.osgeo.org/mapserver/wiki/PHPMapScriptAddPointScale), but 
I find that I do not have the understanding that I need to color code 
these points by their value.  These values are precipitation 
summaries, that I want to apply a color ramp to.


I can't figure out how to add an attribute other than the x,y,z, and m 
coordinates.  Is this possible?  I really want to do this without 
having to use my postgis connection, but rather, with this dynamically 
generated layer approach if possible.


Thanks,

r.b.

Robert W. Burgholzer

Surface Water Modeler

Office of Water Supply and Planning

Virginia Department of Environmental Quality

rwburghol...@deq.virginia.gov 

804-698-4405

Open Source Modeling Tools:

http://sourceforge.net/projects/npsource/


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



--

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] WFS element datatypes are all strings - how to set as integer?

2010-11-23 Thread Frank Warmerdam

pcr...@pcreso.com wrote:

Hi,

I'm looking to use mapserver to provide WFS data layers to QGIS clients. 
I need to display the layer using a data field to control symbology 
(symbol size), but QGIS can only use an integer field for this.


As below, mapserver identifies all the elements as strings, which is a 
problem. The data source is a Postgis table, the data statement 
generates an integer field to use to scale the layer, but mapserver 
seems to cast it as a string.


Is there any way to have mapserver specify a WFS integer element from a 
Postgis layer?


Brent,

I think you want to se the gml__type metadata item in the layer
to "integer".  You can read more detail on this in the WFS server document.
This should work in 5.6.

In MapServer trunk, as part of the OGR output overhaul, the ability was added
to put "gml_types" "auto" in the metadata in order to have the types derived
from the data source (for OGR, PostGIS, Oracle and shapefile input sources
for now).  The RFC on OGR output touches on this as well as the docs in
trunk.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


AW: [mapserver-users] Spatial Filter with WFS

2010-11-23 Thread Fischer, Andreas
Hi Jukka,
I tried another getFeature request using your syntax. I only replaced the 
'EPSG:4326' to 'EPSG:25832' since the coordinates are in this reference system. 
Unfortunately I got the same result. It doesn't matter if I ask for 
VERSION=1.1.0 or VERSION=1.0.0 - I tried out both.

Request

http://192.168.2.117/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.0.0&;
Filter=

  
  http://www.openplans.org/topp";>topp:the_geom

  
  
  409350.0,5709890.0 
409350.0,5709910.0 409370.0,5709910.0 409370.0,5709890.0 
409350.0,5709890.0
  
  
  
  



Response

   
- http://mapserver.gis.umn.edu/mapserver"; 
xmlns:gml="http://www.opengis.net/gml"; xmlns:wfs="http://www.opengis.net/wfs"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver 
http://192.168.2.117/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=folie001&OUTPUTFORMAT=text/xml;
 subtype=gml/3.1.1 http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; numberOfFeatures="4">
- 
- 
  -1.00 -1.00 
  -1.00 -1.00 
  
  
  

The only difference I could detect is the coordinates within the Envelope. 

With PostGIS datasource it is:
 
-1.00 -1.00 
-1.00 -1.00

With MapInfo it is:

-1.00 -1.00 
409388.231116 5709944.987211

Even if the upperCorner is set, it is not the upper Corner of the 
featureCollection (4 features), that should be selected by the filter 
condition. And in both cases I did not change the EXTENT of the MAP und LAYER 
sections (EXTENT 389965 5693582 420177 5732815, "wfs_extent" "389965 5693582 
420177 5732815").

So please let me know, if you have another idea to solve this problem
Tanks again!
Best regards
Andreas



Mit freundlichen Grüßen
Im Auftrag

Andreas Fischer

Kreis Unna - Der Landrat
Zentrale Datenverarbeitung
Friedrich-Ebert-Straße 17
59425 Unna

Fon 02 3 03 27-44 16
Fax 0 23 03 27-28 96
andreas.fisc...@kreis-unna.de
www.kreis-unna.de

Von: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Gesendet: Dienstag, 23. November 2010 15:01
An: Yewondwossen Assefa; Fischer, Andreas
Cc: mapserver-users@lists.osgeo.org
Betreff: Re: [mapserver-users] Spatial Filter with WFS

Hi,
 
Andreas, you may be without a wsf:Query element.  Here is a WFS 1.0.0 request 
that works with Geoserver.
 

http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml"; xmlns:wfs="http://www.opengis.net/wfs"; 
service="WFS" version="1.0.0" maxFeatures="1000" outputFormat="GML2">
http://www.openplans.org/topp"; typeName="topp:states">


http://www.openplans.org/topp";>
topp:the_geom




409350.0,5709890.0 409350.0,5709910.0 409370.0,5709910.0 409370.0,5709890.0 
409350.0,5709890.0







 
Y.A, a question for you:  I have thought that also the filters should be 
presented as gml3 with WFS 1.1.0 and thus posList should be used instead of 
coordinates. Am I wrong with this belief?  By the way, this is how Geoserver 
2.1 beta 1 writes out on multipolygon as gml3
 
  







37.510991 -88.071564 37.4762736 -88.087883 37.442852 -88.311707 
37.409308 -88.359177 
 
-Jukka Rahkonen-
 
 


Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Yewondwossen Assefa
Lähetetty: 23. marraskuuta 2010 15:43
Vastaanottaja: Rahkonen Jukka; Fischer, Andreas
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Spatial Filter with WFS
Hi all,

As noted MapServer does not support gml:Surface. The original request with 
gml:Polygon seems to be correct.  
Andreas, is it possible to package it and send it to me off list. I can quickly 
check what the issue is.

regards,



 as noted Mapserver does not support gml:Surface. 

On 23/11/2010 8:26 AM, Rahkonen Jukka wrote: 
Hi,
 
This one may not be the only problem, but I would start by creating a valid WFS 
1.1.0 request by giving a filter as gml3 or alternatively go on with using gml2 
filter but changing version to WFS 1.0.0.  Here below is a WFS 1.1.0 request 
that works against deegree.  It does not necessarily work against Mapserver 
because it can well be that Mapserver does not support gml:Surface, even if the 
surface is a plain polygon as in this  case.  However, you see that gml3 does 
not use 
http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml"; xmlns:wfs="http://www.opengis.net/wfs"; 
service="WFS" version="1.1.0" maxFeatures="1000" outputFormat="text/xml; 
subtype=gml/3.1.1">
http://www.deegree.org/app"; srsName="EPSG:26912" 
typeName="app:Counties">


http://www.deegree.org/app";>
app:position






87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 
198.0









 
-Jukka Rahkonen-
 

[mapserver-users] querying to getting bounding box coordinates

2010-11-23 Thread David Hildebrand
I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


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


Re: [mapserver-users] querying to getting bounding box coordinates

2010-11-23 Thread Rahkonen Jukka
Hi,

One alternative is to make first a WFS request with attribute filter for 
finding the feature and let the client to catch the bounding box from the 
result.
These examples should work, first is Geoserver and another Mapserver. The 
latter is pointing to a point layer and therefore I queried two features for 
getting a reasonable bounding box.

http://sigma.openplans.org:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=states&maxfeatures=1
http://188.64.1.61/cgi-bin/osm-mapserver_i?service=wfs&version=1.1.0&request=getfeature&typename=POI_pub_restaurant&maxfeatures=2

These are just crude examples without the property filter. Queries can be build 
also so that they do not return attributes. I hope you'll see the idea and 
think if it could make sense for your use case.

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: David Hildebrand
Lähetetty: ti 23.11.2010 22:48
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] querying to getting bounding box coordinates
 
I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


___
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] querying to getting bounding box coordinates

2010-11-23 Thread David Hildebrand
Jukka:

The examples you used were WFS queries.  I wasn't aware that WMS queries also 
supported filters?


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it is 
addressed, and may contain confidential, personal and/or privileged 
information. Please contact Agriculture Financial Services Corporation 
immediately if you are not the intended recipient of this communication, and do 
not copy, distribute, or take action relying on it. Any communication received 
in error, or subsequent reply, should be deleted or destroyed. Please consider 
the environment before printing this email.


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, November 23, 2010 2:12 PM
To: David Hildebrand; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] querying to getting bounding box coordinates

Hi,

One alternative is to make first a WFS request with attribute filter for 
finding the feature and let the client to catch the bounding box from the 
result.
These examples should work, first is Geoserver and another Mapserver. The 
latter is pointing to a point layer and therefore I queried two features for 
getting a reasonable bounding box.

http://sigma.openplans.org:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=states&maxfeatures=1
http://188.64.1.61/cgi-bin/osm-mapserver_i?service=wfs&version=1.1.0&request=getfeature&typename=POI_pub_restaurant&maxfeatures=2

These are just crude examples without the property filter. Queries can be build 
also so that they do not return attributes. I hope you'll see the idea and 
think if it could make sense for your use case.

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: David Hildebrand
Lähetetty: ti 23.11.2010 22:48
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] querying to getting bounding box coordinates
 
I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


___
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] querying to getting bounding box coordinates

2010-11-23 Thread Rahkonen Jukka
Hi,

Yes, they are WFS queries but you can send them to the same Mapserver service 
if you configure the mapfile properly. If you do not want to use WFS then I 
suppose you can do whatever you want with mapscript but that is something I do 
not know anything about. With some imagination it could be possible to do 
queries and get vectors out from WMS service and search the bounding box on 
client side (by using attribute filters inside SLD, or variable substitution 
inside DATA or FILTER, and by having KML as outputformat). Does not feel like a 
right way to do even it might be fun to experiment with. I suggest to read 
about mapscript http://mapserver.org/mapscript/index.html

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: David Hildebrand [mailto:david.hildebr...@afsc.ca]
Lähetetty: ti 23.11.2010 23:31
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@lists.osgeo.org
Aihe: RE: [mapserver-users] querying to getting bounding box coordinates
 
Jukka:

The examples you used were WFS queries.  I wasn't aware that WMS queries also 
supported filters?


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it is 
addressed, and may contain confidential, personal and/or privileged 
information. Please contact Agriculture Financial Services Corporation 
immediately if you are not the intended recipient of this communication, and do 
not copy, distribute, or take action relying on it. Any communication received 
in error, or subsequent reply, should be deleted or destroyed. Please consider 
the environment before printing this email.


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
Sent: Tuesday, November 23, 2010 2:12 PM
To: David Hildebrand; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] querying to getting bounding box coordinates

Hi,

One alternative is to make first a WFS request with attribute filter for 
finding the feature and let the client to catch the bounding box from the 
result.
These examples should work, first is Geoserver and another Mapserver. The 
latter is pointing to a point layer and therefore I queried two features for 
getting a reasonable bounding box.

http://sigma.openplans.org:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=states&maxfeatures=1
http://188.64.1.61/cgi-bin/osm-mapserver_i?service=wfs&version=1.1.0&request=getfeature&typename=POI_pub_restaurant&maxfeatures=2

These are just crude examples without the property filter. Queries can be build 
also so that they do not return attributes. I hope you'll see the idea and 
think if it could make sense for your use case.

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: David Hildebrand
Lähetetty: ti 23.11.2010 22:48
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] querying to getting bounding box coordinates
 
I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


___
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


[mapserver-users] Clipping returned WFS data to the requesting bounding box

2010-11-23 Thread mattmendick

Hi list-

I have some data that I'm getting at in MapServer via WFS that spans over
large areas, and my requesting region is always a bounding box that is
fairly small.  I would like to clip the returned data to the bounding box
that requested it in the first place and I have been successful in getting
back the proper clipped geometries, following the suggestions in this post:

http://osgeo-org.1803224.n2.nabble.com/Postgis-Intersection-on-requested-data-td1973165.html

The only problem is that the "describeFeatureType" and "getFeature" calls to
this layer do not return any record attributes.   I tried specifying them
using propertyName, but they still don't show up.  My DATA entry looks like
this:

DATA "the_geom FROM (SELECT ST_Intersection(f.wkb_geometry, !BOX!) AS
the_geom, f.* FROM flood as f) AS subquery USING UNIQUE ogc_fid USING SRID =
4326"

I've also tried specifying each attribute individually instead of using f.*
which yields the same results.  I understand that the form of the DATA entry
should be: 

[columntodraw] FROM [sourceofdata] USING UNIQUE [uniquekey] USING
SRID=[srid]

as was mentioned by Paul Ramsey in the previous post.

My understanding is that [sourceofdata] should be a dataset (either table
name or complete query like I've specified above) that has a geometry column
specified with [columntodraw] and then any attributes.  What am I missing?

Our fallback is to do clipping later when processing the data, but better to
use the very fast ST_Intersection() method I would say, if it's possible. 
Thanks!

-Matt
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Clipping-returned-WFS-data-to-the-requesting-bounding-box-tp5768616p5768616.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] RE: querying to getting bounding box coordinates

2010-11-23 Thread Lime, Steve D (DNR)
Are you limited to WMS/WFS or can you use stock MapServer queries? Passing in
a parcel id and returning it's bounding box is trivial using mode=itemquery and
a template.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David Hildebrand
Sent: Tuesday, November 23, 2010 2:49 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] querying to getting bounding box coordinates

I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


___
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] RE: querying to getting bounding box coordinates

2010-11-23 Thread David Hildebrand
I wanted to retain WMS compatibility but the WMS protocol does not seem
to support attribute queries.  I know I can use GetFeatureInfo to get
attributes including the bounding box of the feature because these are
CGI variables.  However, GetFeatureInfo uses a spatial query (an image
point).  If I use MapServer's mode=itemquery what would be the URL
syntax and the requirements on the server side?  Would I be able to
specify or determine the projection?

Thanks for your help.



===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime,
Steve D (DNR)
Sent: Tuesday, November 23, 2010 3:52 PM
To: David Hildebrand; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] RE: querying to getting bounding box
coordinates

Are you limited to WMS/WFS or can you use stock MapServer queries?
Passing in
a parcel id and returning it's bounding box is trivial using
mode=itemquery and
a template.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David
Hildebrand
Sent: Tuesday, November 23, 2010 2:49 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] querying to getting bounding box coordinates

I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


___
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] RE: querying to getting bounding box coordinates

2010-11-23 Thread Lime, Steve D (DNR)
There are 3 pieces to this:

1) in your mapfile you have to add validation for your query string to the 
layer metadata:

LAYER
  NAME 'testy'
  ...
  METADATA
...
qstring_validation_pattern 'some regex'
  END
END

and you have to define a template, I prefer the new-style templates via an 
output format:

OUTPUTFORMAT
  NAME 'bbox'
  DRIVER TEMPLATE
  MIMETYPE 'MIMETYPE 'text/html'
  TEMPLATE 'bbox.html'
END

2) now create the template (bbox.html):


[resultset layer="testy"]
[feature]
[shpext expand="20%"]
[/feature]
[/resultset]

(Note that in 5.6 you can set a few attributes in most extent-related tags to 
project and expand 
the output. This is very handy when getting extents to create other maps so you 
leave some space
around a feature.)

3) and finally a URL...

http://.../cgi-bin/mapserv?map=your.map&mode=itemquery&qitem=parcel_id&qstring=12345678&qlayer=testy&qformat=bbox

You could create templates more conducive to use with AJAX, perhaps JSON or 
XML. You have lots of control...

Steve



From: David Hildebrand [david.hildebr...@afsc.ca]
Sent: Tuesday, November 23, 2010 5:58 PM
To: Lime, Steve D (DNR); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: querying to getting bounding box coordinates

I wanted to retain WMS compatibility but the WMS protocol does not seem
to support attribute queries.  I know I can use GetFeatureInfo to get
attributes including the bounding box of the feature because these are
CGI variables.  However, GetFeatureInfo uses a spatial query (an image
point).  If I use MapServer's mode=itemquery what would be the URL
syntax and the requirements on the server side?  Would I be able to
specify or determine the projection?

Thanks for your help.



===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime,
Steve D (DNR)
Sent: Tuesday, November 23, 2010 3:52 PM
To: David Hildebrand; mapserver-users@lists.osgeo.org
Subject: [mapserver-users] RE: querying to getting bounding box
coordinates

Are you limited to WMS/WFS or can you use stock MapServer queries?
Passing in
a parcel id and returning it's bounding box is trivial using
mode=itemquery and
a template.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of David
Hildebrand
Sent: Tuesday, November 23, 2010 2:49 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] querying to getting bounding box coordinates

I am running a WMS service with Mapserver in a Windows environment.  I
want to be able to run a non-spatial query on a parcel layer to return
the bounding box (in re-projected coordinates) for a particular parcel.
The bounding box and projection will then be used in a WMS query to
return a map image.

I've never coded server-side functionality with Mapserver so any
suggestions would be welcome.

Thanks to all.


===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239

www.afsc.ca 
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.


___
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