Motivation: | FilterFactory2 causes some confusion | |
|---|---|---|
Contact: | ||
| Issue: | https://jira.codehaus.org/browse/GEOT-3056 | |
Tagline: |
|
|
Out of discussion with Micheal Bedward it seems that FilterFactory2 is the cause for some confusion.
Formally this is the difference between:
Taking a look at the issue today I also note that many methods accept a literal ISO Geometry;
since we don't use that in practice this results in a lot of useless methods that nobody
will ever call.
This proposal is under construction.
Voting has not started yet:
This section is used to make sure your proposal is complete (did you remember documentation?) and has enough paid or volunteer time lined up to be a success
| no progress |
| done |
| impeded |
| lack mandate/funds/time |
| volunteer needed |
|---|
BEFORE
public interface FilterFactory {
...
/** Checks if the feature's geometry touches, but does not overlap with the geometry held by this object. */
Touches touches(String propertyName, Geometry geometry);
...
}
public interface FilterFactory2 extends FilterFactory {
/** Checks if the feature's geometry touches, but does not overlap with the geometry held by this object. */
Touches touches(Expression propertyName1, Expression geometry2);
}
|
AFTER
public interface FilterFactory {
...
/** Checks if the feature's geometry touches, but does not overlap with the geometry held by this object. */
Touches touches(String propertyName, Object geometry);
/**
* GeoTools extension to check if a geometry touches, but does not overlap with a second geometry.
*/
Touches touches(Expression propertyName1, Expression geometry2);
...
}
public interface FilterFactory2 extends FilterFactory {
// empty
}
|
Code examples won't be effected by this proposal.