Re: [MapServer-users] filter issues with WFS

2024-02-17 Thread Seth G via MapServer-users
Hi Carlos, If you add DEBUG 5 to the LAYER, and set the CONFIG MS_ERRORFILE do you get more details in the logs for why the filter is failing? The error indicates MapServer cannot parse the filter. The unencoded filter is shown below. http://www.opengis.net/fes/2.0"; xmlns:gml="http://www.ope

[MapServer-users] filter issues with WFS

2024-02-12 Thread Carlos Padron Florez via MapServer-users
Hi, I have a WFS version 2.0.0 and I want to request from it features using a filter but I get this error: msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : https://SERVER/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=ms:layername&STARTINDEX=0&COUNT=

[mapserver-users] Filter could not be translated to OGR filter

2020-03-16 Thread Seth G
Hi all, I've run into a strange issue when using a WFS filter with spaces and an OGRCONNECTION. I think I've narrowed it down to involving the following: 1. Using OGR CONNECTION (the filter is fine when using MapServer Shapefile connection) with a shapefile 2. Via a web server (I'm using IIS)

[mapserver-users] FILTER and multi STYLE tags

2020-01-24 Thread Kalbermatten Michaël
I will try out a newer version on Monday. I will keep you updated. I detected the problem using a 7.2 version and then updated to 7.4.2, but the problem was still occurring. Thanks for your reply ! Michael ___ mapserver-users mailing list ma

Re: [mapserver-users] FILTER and multi STYLE tags

2020-01-24 Thread Steve Lime
You have to get a little more recent... Those changes didn't appear until 7.4.3. --Steve On Fri, Jan 24, 2020 at 2:27 AM Kalbermatten Michaël < michael.kalbermat...@ne.ch> wrote: > Hi Steve, > > > > Thanks for the quick answer and sorry for my late reply. > > > > I downloaded the latest stable re

[mapserver-users] FILTER and multi STYLE tags

2020-01-24 Thread Kalbermatten Michaël
Hi Steve, Thanks for the quick answer and sorry for my late reply. I downloaded the latest stable release which can be found on the gisinternals website. On the 17th January 2020, that would have been release-1900-x64-gdal-3-0-2-mapserver-7-4-2, which I think is the latest release. Should I tr

Re: [mapserver-users] FILTER and multi STYLE tags

2020-01-17 Thread Steve Lime
Hi Michaël: What version are you using? There were some fixes related to rendering queries in the latest 7.4 release. —Steve On Friday, January 17, 2020, Kalbermatten Michaël < michael.kalbermat...@ne.ch> wrote: > Dear all, > > > > We have quite a strange filter behavior. > > > > We have a layer

[mapserver-users] FILTER and multi STYLE tags

2020-01-17 Thread Kalbermatten Michaël
Dear all, We have quite a strange filter behavior. We have a layer (relying on PostGIS data and with multine geometries) containing several classes with some of them having multiple STYLE tags. Something like: CLASS NAME "Ouvrages d'art" EXPRESSION "Ouvrages d'art" STYLE C

Re: [mapserver-users] Filter by date

2013-04-15 Thread Weisbender, Eric
..@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, April 12, 2013 11:36 AM To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> Subject: [mapserver-users] F

Re: [mapserver-users] Filter by date

2013-04-15 Thread Lime, Steve D (MNIT)
^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$") Steve From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric Sent: Friday, April 12, 2013 11:36 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Filter by date Hello Lis

[mapserver-users] Filter by date

2013-04-12 Thread Weisbender, Eric
Hello List How would I FILTER a data set by the month and year ignoring the day. An example of the field format is 1/11/2010. I found the example below in the docs but I'm not quite sure how to format the filter to account for the slashes. Any help is greatly appreciated. FILTERITEM "year"

[mapserver-users] FILTER syntax

2013-01-17 Thread Clément MONIER
Hi, I searching how to convert a sql request like "where field1 in (value1, value2, ..., valueN)" into a FILTER clause inside a map file (layer block) I tried "FILTER ([field1] in (value1, value2, ..., valueN))" But it doesn't work Though it works fine when "FILTER ([field1] = value1)" My data

Re: [mapserver-users] filter expression and boolean field

2012-10-26 Thread Havard Tveite
Hi, I am also be interested in learning how to use boolean attributes in filter expressions. I have also tried to get a filter expression with a boolean attribute to work, but have had no luck. My data source was PostGIS. I did a workaround in SQL to get integers instead (CASE WHEN booleanvariab

[mapserver-users] filter expression and boolean field

2012-10-26 Thread Brian Fischer
Hi, I am trying to use a filter expression to only display features where a value is true in a Boolean field coming from an MSSQL Spatial datasource. It seems like every syntax I try MapServer comes back with "An expression of non-boolean type specified in a context where a condition is expecte

Re: [mapserver-users] Filter Point features from PostGIS Layer

2011-09-02 Thread Julien Cigar
On 09/02/2011 14:02, Julien Cigar wrote: couldn't you use WHERE ST_GeometryType(col) = "ST_Point" ? also note that to avoid a seqscan you should create an appropriate index: CREATE INDEX your_index ON your_table(ST_GeometryType(geom)) WHERE ST_GeometryType(geom) = 'ST_Point'; On 09/02/201

Re: [mapserver-users] Filter Point features from PostGIS Layer

2011-09-02 Thread Julien Cigar
couldn't you use WHERE ST_GeometryType(col) = "ST_Point" ? On 09/02/2011 13:50, kaipi wrote: I have a PostGIS database with polygon, line and point features. I want to make a Mapserver layer, that only displays the point features. AFAIK without such filtering Mapserver would render in a Point-Ty

[mapserver-users] Filter Point features from PostGIS Layer

2011-09-02 Thread kaipi
I have a PostGIS database with polygon, line and point features. I want to make a Mapserver layer, that only displays the point features. AFAIK without such filtering Mapserver would render in a Point-Type-Layer also the polygon features as points. How would a FILTER or EXPRESSION look like to tel

Re: [mapserver-users] Filter Encoding with Spatial Filter withinWFS-Request

2010-11-22 Thread Rahkonen Jukka
2010 19:44 Vastaanottaja: mapserver-users@lists.osgeo.org Aihe: [mapserver-users] Filter Encoding with Spatial Filter withinWFS-Request 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/

[mapserver-users] Filter Encoding with Spatial Filter within WFS-Request

2010-11-22 Thread Fischer, Andreas
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 L

Re: [mapserver-users] Filter elements on multiple layers

2010-11-04 Thread Alexander Petkov
tml > > I must add the of the whole map to the filter and I'll get all > matches. > > Regards, > Cathleen > > > > Von: Alexander Petkov > An: leene > CC: mapserver-users@lists.osgeo.org > Gesendet: Mittwoch, den 3. N

AW: [mapserver-users] Filter elements on multiple layers

2010-11-04 Thread leene
Alexander Petkov An: leene CC: mapserver-users@lists.osgeo.org Gesendet: Mittwoch, den 3. November 2010, 20:30:39 Uhr Betreff: Re: [mapserver-users] Filter elements on multiple layers Hmm, I just tested this--it seems that you'd always get features where the envelopes for the results

Re: [mapserver-users] Filter elements on multiple layers

2010-11-03 Thread Alexander Petkov
Hmm, I just tested this--it seems that you'd always get features where the envelopes for the results from each layer spatially intersect, (i.e. anything within the blue rectangle of your image). Alex On Wed, Nov 3, 2010 at 11:37 AM, Alexander Petkov wrote: > You might have to specify your filte

Re: [mapserver-users] Filter elements on multiple layers

2010-11-03 Thread Alexander Petkov
You might have to specify your filter for each typename, as in: http://my-server/fcgi-bin/mapserv&map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&FILTER=(...)(...) See this thread: http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10695.html Alex

[mapserver-users] Filter duplicate elements

2010-11-03 Thread SF
Hi, I try to render simplified S57 files using MapServer with flash output. But there are maps at various scales for the same area, which overlap. It is not a problem for land or sea area, but I want to filter features to avoid duplicates entries. In the S57 files, there is a worldwide identifier

Re: [mapserver-users] Filter elements on multiple layers

2010-11-03 Thread Daniel Morissette
leene wrote: > > By the way: Is there a date of mapserver 6 release? > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up > to date. > At the FOSS4G Code Sprint in September [1] we talked about aiming for a feature freeze around Nov 15th and a final release around end of J

[mapserver-users] Filter elements on multiple layers

2010-11-03 Thread leene
Hey, I have a problem with filtering elements of multiple layers. My mapserver (version 5.2.1) is configured with two layers - layer1 and layer2. For better understanding see attachment: layer1 has black crosses and layer2 has red points. Now I try to get features by id - but I don't know the c

[mapserver-users] filter doesn't work (wfs)

2009-08-12 Thread Morten Sickel
I have set up a mapserver wfs-server. Works fine, except that I cannot get Filter= to work. I tried urls like those at the bottom on http://mapserver.org/ogc/filter_encoding.html , but got all the data back in all cases. I tested it in a browser and to a working url, I appended &Filter=status

Re: [mapserver-users] FILTER

2009-02-23 Thread Steve Lime
You can use runtime substitutions to change values within a FILTER as you go. For example your FILTER could be written like so: FILTER ("multimedia='[multimedia]' and seats >= [nseats] and Sound= '[sound]') Then (assuming you're using the CGI interface) you could pass in variables named multi

Re: [mapserver-users] FILTER

2009-02-19 Thread Gabriel Messner
May be the problem is the sintax; Try: FILTER ( ('[multimedia]' = 'yes') AND ('[seats]' >= 95) AND ('[Sound]' = 'yes') ) 2009/2/19 A.Pratheepan > > Hi > i'm New one to map server. I'm Using PostgreSQL 8.3 with pgAdminIII and > post GIS. Upto now I've populated my database in post GIS and Map

RE: [mapserver-users] FILTER

2009-02-19 Thread Espen.Messel
> -Opprinnelig melding- > Fra: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- > boun...@lists.osgeo.org] På vegne av prathe...@gmail.com > Sendt: 20. februar 2009 05:33 > Til: mapserver-users@lists.osgeo.org > Emne: [mapserver-users] FILTER > > I

[mapserver-users] FILTER

2009-02-19 Thread prathee11
I want to filter my layer accoring to client's prefernce, via the client interfACE. How can i sent user input to the map file under the layer, Filter? Pls anyone help me ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.

[mapserver-users] FILTER

2009-02-19 Thread A.Pratheepan
Hi i'm New one to map server. I'm Using PostgreSQL 8.3 with pgAdminIII and post GIS. Upto now I've populated my database in post GIS and Map also working succesfully. Now my problem is Filter. Filter is working without any problem under my layer(lecture_hall layer). Ex FILTER ("multimedia='yes' and

[mapserver-users] Filter on attribute - how?

2008-08-31 Thread Steve White
I want to pass in a string of values in one variable and filter on them as if they are in an OR clause. I've tried the following which works fine: FILTER "Castles" FILTERITEM "CategoryNa" Now I want to filter on 2 sets like this: FILTER "Castles OR Battlefields" FILTERITEM "Catego