GeoTools
  1. GeoTools
  2. GEOT-2410

OGC Filter parser won't parse unit of measure

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.4
    • Fix Version/s: 2.5.5, 2.6-M2
    • Component/s: xsd extensions
    • Labels:
      None

      Description

      Try the following filter (Filter 1.0):

      <DWithin>
              <PropertyName>the_geom</PropertyName>
                <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
                  <gml:coordinates>-74.817265,40.5296504</gml:coordinates>
                </gml:Point>
                <Distance units="km">200</Distance>
              </DWithin>
      

      the unit will be ignored, OGCDWithinBinding won't try to load the unit attribute.

      1. BinarySpatialOpTypeBindingTest.patch
        0.8 kB
        Alain Jimeno
      2. FilterMockData.patch
        0.8 kB
        Alain Jimeno
      3. OGCDWithinBinding.patch
        1 kB
        Alain Jimeno
      4. OGCFilterTest.patch
        2 kB
        Alain Jimeno

        Issue Links

          Activity

          Hide
          Alain Jimeno added a comment -
          This patches will solve the issue. Could anyone review and apply them?

          Thanks.
          Show
          Alain Jimeno added a comment - This patches will solve the issue. Could anyone review and apply them? Thanks.
          Hide
          Andrea Aime added a comment -
          Justin, I believe this is yours? :-)
          Show
          Andrea Aime added a comment - Justin, I believe this is yours? :-)
          Hide
          Justin Deoliveira added a comment -
          Thanks a lot for the patch Alain. I have applied it to both trunk and 2.5.x. I extended it to handle Beyond as well.
          Show
          Justin Deoliveira added a comment - Thanks a lot for the patch Alain. I have applied it to both trunk and 2.5.x. I extended it to handle Beyond as well.
          Hide
          Andrea Aime added a comment -
          Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update
          Show
          Andrea Aime added a comment - Mass closing all issues that have been in "resolved" state for 2 months or more without any feedback or update

            People

            • Assignee:
              Justin Deoliveira
              Reporter:
              Andrea Aime
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: