[OpenLayers-Dev] [OpenLayers-Users] Help to create FeatureId filter & OpenLayers.Filter.Logical.NOT

Ivan Grcic ivan.grcic at geofoto.hr
Sun Dec 13 17:34:22 EST 2009


On Sun, Dec 13, 2009 at 9:42 PM, Eric Lemoine
<eric.lemoine at camptocamp.com> wrote:
> On Sunday, December 13, 2009, Ivan Grcic <ivan.grcic at geofoto.hr> wrote:
>> From the Filter Impl. Specs:
>>
>> The XML encoding for the logical operators AND, OR and NOT is defined
>> by the following XML Schema fragment:
>>
>>     <element name="And" type="ogc:BinaryLogicOpType"
>> substitutionGroup="ogc:logicOps"/>
>>     <element name="Or" type="ogc:BinaryLogicOpType"
>> substitutionGroup="ogc:logicOps"/>
>>     <element name="Not" type="ogc:UnaryLogicOpType"
>> substitutionGroup="ogc:logicOps"/>
>>     <element name="logicOps" type="ogc:LogicOpsType" abstract="true"/>
>>     <complexType name="LogicOpsType" abstract="true"/>
>>     <complexType name="BinaryLogicOpType">
>>         <complexContent>
>>             <extension base="ogc:LogicOpsType">
>>                 <choice minOccurs="2" maxOccurs="unbounded">
>>                     <element ref="ogc:comparisonOps"/>
>>                     <element ref="ogc:spatialOps"/>
>>                     <element ref="ogc:logicOps"/>
>>                 </choice>
>>             </extension>
>>         </complexContent>
>>     </complexType>
>>     <complexType name="UnaryLogicOpType">
>>         <complexContent>
>>             <extension base="ogc:LogicOpsType">
>>                 <sequence>
>>                     <choice>
>>                         <element ref="ogc:comparisonOps"/>
>>                         <element ref="ogc:spatialOps"/>
>>                         <element ref="ogc:logicOps"/>
>>                     </choice>
>>                 </sequence>
>>             </extension>
>>         </complexContent>
>>     </complexType>
>>
>>
>> It doesnt have FeatureIdType choice. And putting filter manually into
>> geoserver expectedly throws:
>>
>> Your .SLD file does not conform to the SLD Schema
>> cvc-complex-type.2.4.a: Invalid content starting with element
>> 'ogc:FeatureId'. One of '{"http://www.opengis.net/ogc":comparisonOps,
>> "http://www.opengis.net/ogc":spatialOps,
>> "http://www.opengis.net/ogc":logicOps}' is expected
>>
>> But creating filter in OL and making request DOES return all the
>> features but listed ones. So geoserver does support it.
>>
>> Does anyone know what would be the correct (compliant) way then to
>> make filter that will fetch all the features except the ones in
>> FeatureIds ?
>
> just an attempt: as opposed to using a featureid filter can you use a
> comparison filter operating on the feature id?
>
I dont think its possible. I tried using ogc:id like its proposed here
but it doesnt work
http://old.nabble.com/How-to-%3Cogc:filter%3E--gid-column--td15144022.html

I will ask more at geoserver list,

Tnx Eric

Cheers


> cheers,
>
> --
> Eric Lemoine
>
> Camptocamp France SAS
> Savoie Technolac, BP 352
> 73377 Le Bourget du Lac, Cedex
>
> Tel : 00 33 4 79 44 44 96
> Mail : eric.lemoine at camptocamp.com
> http://www.camptocamp.com
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>



-- 
Ivan Grcic



More information about the Dev mailing list