Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter not parsing ogc:Function #35

Closed
1Map opened this issue Mar 19, 2019 · 2 comments
Closed

Filter not parsing ogc:Function #35

1Map opened this issue Mar 19, 2019 · 2 comments

Comments

@1Map
Copy link

1Map commented Mar 19, 2019

I have the following Filter:

          <ogc:Filter>
            <ogc:And>
              <ogc:PropertyIsEqualTo>
                <ogc:Function name="in4">
                  <ogc:Function name="geometryType">
                      <ogc:PropertyName>the_geom</ogc:PropertyName>
                  </ogc:Function>
                  <ogc:Literal>Polygon</ogc:Literal>
                  <ogc:Literal>MultiPolygon</ogc:Literal>
                  <ogc:Literal>POLYGON</ogc:Literal>
                  <ogc:Literal>MULTIPOLYGON</ogc:Literal>
                </ogc:Function>
                <ogc:Literal>true</ogc:Literal>
              </ogc:PropertyIsEqualTo>
              <ogc:PropertyIsEqualTo>
              	<ogc:PropertyName>property_type</ogc:PropertyName>
                <ogc:Literal>U</ogc:Literal>
              </ogc:PropertyIsEqualTo>
            </ogc:And>
          </ogc:Filter>

The problem here is that your Reader only works if there is a "ogc:PropertyName" and not when "ogc:Function" is used. So, in the example above only the second part of the filter is handled correct.

@WybornyWypiek
Copy link

#43 As far I added parser for dimension function.

@ajkopinga
Copy link
Member

Support for parsing <Function> elements has been added to v0.4.0, including an implementation of a dimension function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants