Hi all,

we are using Geotools in a project, where we want to be OWS-proxy to
multiple map servers and work as a single standards based access point
to map data. We were going to use Geotools' objects and xml parsing
functions to work with existing map servers which provide OWS apis.

Unfortunately I noticed that Dimension's data ( extent ) is missing
from current version. I noticed that there is a bug already in Jira.

http://jira.codehaus.org/browse/GEOT-3005

As I debugged the code inNetbean's debugger with our testcase, I
noticed that there is a simple fix to make everything work for now
without major refactorings.

In our xml we have:

 <wms:Dimension name="time" units="ISO8601"
default="2009-06-16">2005-01-01/2012-01-01/PID</wms:Dimension>

Extent was not set to Dimension, since there was error in
Extent.java's isEmpty function. It was actually testing if the Extent
was NOT empty.

In current code:

    public boolean isEmpty() {
        return value != null && value.length() > 0;
    }


If it is replaced to:

    public boolean isEmpty() {
        return value == null && value.length() == 0;
    }

...then extent on Dimension for WMS 1.3.0 will work again.

If you could test this in regression tests and get this fix to the
just coming release, we would be really really thankfull - as it would
same time from us in making a fork for those few classes.

-huima

------------------------------------------------------------------------------

_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to