Hi all,
I am a Software Engineer working on the Spatial Information Services Stack
(SISS) project, focusing on some key issues we (CSIRO) are having with
Geoserver within our use cases. I work closely with Ben Caradoc-Davies and Rini
Angreani on a daily basis and will be looking forward to working you all.
I have been having a look at the Axis Order for Bounding Box specified in a WFS
spatial query, and while writing some test cases, I have encountered the
following problem which I am hoping someone can share some insight:
I have written a test class which extends
org.geoserver.test.AbstractAppSchemaWfsTestSuport, when trying to obtain a
org.w3c.dom.Document object by calling the method getAsDom(String path), if I
specified the param "BBOX" in my WFS request, my Unit Test would fail
(Exception attached) This only happens on complex features, which led me to the
following 2 classes in particular.
org.geotools.filter.expression.SimpleFeaturePropertyAccessor line 67-68:
//if ("".equals(xpath) && target == Geometry.class)
if ("".equals(xpath))
return DEFAULT_GEOMETRY_ACCESS;
I had a look into the repository and this change was made in geotools-trunk
revision 26186. (jdeolive 10/07/2007 10:18:59 AM GEOT-1372, feature
model api changes in preparation for geoapi feature model implementation)
Comparing this with
org.geotools.filter.expression.FeaturePropertyAccessorFactory line 113-114:
if ("".equals(xpath) && target == Geometry.class)
return DEFAULT_GEOMETRY_ACCESS;
The method createPropertyAccessor for both classes are now different. If I
removed the check "target == Geometry.class", my unit test works, and I can see
features in my Document object.
I am wondering if there will be any issues if I made both "if" statements
similar.
Could someone kindly assist?
Thank you for your time.
Kind Regards,
Derrick Wong
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel