Multiple feature queries to WFS?

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Mon Sep 25 13:47:46 EDT 2006


If your urls end up being too long, the alternative is using HTTP POST.

Best regards,
Bart

Jeff Dege schreef:
>> -----Original Message-----
>> From: Bart van den Eijnden (OSGIS) [mailto:bartvde at osgis.nl] 
>> Sent: Saturday, September 23, 2006 2:27 AM
>> To: Jeff Dege
>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
>> Subject: Re: [UMN_MAPSERVER-USERS] Multiple feature queries to WFS?
>>
>> Hi Jeff,
>>
>> you can get multiple by combining the PropertyIsEqualTo's 
>> with the <Or> tag.
>>     
>
> I discovered the <or> tag on further investigation.  Doesn't do all I
> need, since it returns a separate boundedBy for each featureMember, and
> one for the entire FeatureCollection.  The data I'm using has multiple
> featureMembers for each property value.  If I query on one property
> value, the featureCollection's boundedBy is what I need.  If I query on
> several property values, the featureCollection's boundedBy is
> meaningless to me, and I need to add up the boundedBy's of each
> indivudal featureMember.
>
> Which isn't a hard thing.
>
>   
>> Also, what datastore are you using? Remember that shapefiles have no 
>> attribute indexes, so access on an attribute will be slow and requires
>>     
>
>   
>> parsing of the whole shapefile normally. This kind of use case might
>>     
> be 
>   
>> better of in PostGIS.
>>     
>
> The data I have is provided in shapefiles.  I could extract the
> attribute data and put it in a database, should it be necessary.  I'm
> not sure that it is, right now.  I'm using an Ajax client, and pulling
> the boundedBy values asynchronously, prior to the user's actually asking
> for it.
>
>   
>> The limit is usually the limit of the web server, Apache's limit is 
>> somewhere around 8000 characters (HTTP GET).
>>     
>
> Is there any other way of passing this data?
>
>
>
>   


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the mapserver-users mailing list