Justin Deoliveira ha scritto:
As promised updated docs:
http://docs.geoserver.org/trunk/developer/cite-test-guide/index.html
Tried this out, got an error while building the app:
aaime@anonymised.com:~/devel/gstrunk/src/community/cite$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Compliance + Interopability Testing + Evaluation (CITE) Module
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [antrun:run {execution: pre}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [dependency:copy {execution: pre}]
[INFO] Configured Artifact: tomcat:catalina:5.5.9:jar
[INFO] Configured Artifact: javax.servlet:servlet-api:2.4:jar
[INFO] Copying catalina-5.5.9.jar to /home/aaime/devel/gstrunk/src/community/cite/target/server/lib/catalina.jar
[INFO] Copying servlet-api-2.4.jar to /home/aaime/devel/gstrunk/src/community/cite/target/common/lib/servlet-api.jar
[INFO] [resources:resources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/aaime/devel/gstrunk/src/community/cite/src/main/resources
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [antrun:run {execution: compile}]
[INFO] Executing tasks
all:
init.version.stamp:
zip.engine.src:
[delete] Deleting directory /home/aaime/devel/gstrunk/src/community/cite/engine/build
[mkdir] Created dir: /home/aaime/devel/gstrunk/src/community/cite/engine/build
[mkdir] Created dir: /home/aaime/devel/gstrunk/src/community/cite/engine/build/teamengine-2009.07.23
[copy] Copying 55 files to /home/aaime/devel/gstrunk/src/community/cite/engine/build/teamengine-2009.07.23
[zip] Building zip: /home/aaime/devel/gstrunk/src/community/cite/engine/zips/teamengine-2009.07.23-src.zip
jar.engine:
compile:
[javac] Compiling 49 source files to /home/aaime/devel/gstrunk/src/community/cite/engine/apps/engine/build/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while executing this line:
/home/aaime/devel/gstrunk/src/community/cite/engine/build.xml:471: The following error occurred while executing this line:
/home/aaime/devel/gstrunk/src/community/cite/engine/build.xml:82: The following error occurred while executing this line:
/home/aaime/devel/gstrunk/src/community/cite/engine/apps/engine/build.xml:17: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Now, I double checked and JAVA_HOME points to a JDK.
I then looked into the pom and noticed a commented out bit about tools.jar, uncommented it, and the build passes.
I have vague recollections of this being a platform/jdk dependent
issue?
Besides that, I tried to run the WFS 1.1 test suite... amazing,
starts fast, works fast. Finally a CITE engine worth using!
Oh, running the tests on trunk I noticed that besides the usual
error about like on dates on postgres 8.3 I got another failure.
The test simply runs a query and checks the gml:id are valid:
http://localhost:8080/geoserver/wfs?&service=WFS&version=1.1.0&request=GetFeature&featureid=EntitéGénérique.f004,EntitéGénérique.f007&namespace=xmlns(sf=http://cite.opengeospatial.org/gmlsf)
but the response contains the usual results and
some oddball ones:
<sf:EntitéGénérique xlink:href="#EntitéGénérique.f004">
...
<sf:EntitéGénérique xlink:href="#EntitéGénérique.f007">
See the full response:
<wfs:FeatureCollection xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:ows="http://www.opengis.net/ows"
xmlns:sf="http://cite.opengeospatial.org/gmlsf"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
numberOfFeatures="4"
timeStamp="2009-07-23T16:24:36.360+02:00"
xsi:schemaLocation="http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd http://localhost:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=sf:EntitéGénérique">
<gml:boundedBy>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:lowerCorner>35.0 0.0</gml:lowerCorner>
<gml:upperCorner>64.0 22.5</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<gml:featureMembers>
<sf:EntitéGénérique gml:id="EntitéGénérique.f004">
<gml:description>description-f004</gml:description>
<gml:name>name-f004</gml:name>
<gml:boundedBy>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:lowerCorner>60.5 0.0</gml:lowerCorner>
<gml:upperCorner>64.0 6.25</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<sf:attribut.Géométrie>
<gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList>60.5 0.0 64.0 0.0 64.0 6.25 60.5 6.25 60.5 0.0</gml:posList>
</gml:LinearRing>
</gml:exterior>
<gml:interior>
<gml:LinearRing>
<gml:posList>61.5 2.0 62.5 2.0 62.0 4.0 61.5 2.0</gml:posList>
</gml:LinearRing>
</gml:interior>
</gml:Polygon>
</sf:attribut.Géométrie>
<sf:boolProperty>true</sf:boolProperty>
<sf:str4Property>abc3</sf:str4Property>
<sf:featureRef>name-f003</sf:featureRef>
</sf:EntitéGénérique>
<sf:EntitéGénérique gml:id="EntitéGénérique.f007">
<gml:description>description-f007</gml:description>
<gml:name>name-f007</gml:name>
<gml:boundedBy>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:lowerCorner>35.0 15.0</gml:lowerCorner>
<gml:upperCorner>40.0 22.5</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<sf:attribut.Géométrie>
<gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList>35.0 15.0 40.0 16.0 39.0 20.0 37.0 22.5 36.0 18.0 35.0 15.0</gml:posList>
</gml:LinearRing>
</gml:exterior>
<gml:interior>
<gml:LinearRing>
<gml:posList>37.1 17.5 37.2 17.6 37.3 17.7 37.4 17.8 37.5 17.9 37.0 17.9 37.1 17.5</gml:posList>
</gml:LinearRing>
</gml:interior>
</gml:Polygon>
</sf:attribut.Géométrie>
<sf:boolProperty>false</sf:boolProperty>
<sf:str4Property>def4</sf:str4Property>
</sf:EntitéGénérique>
<sf:EntitéGénérique xlink:href="#EntitéGénérique.f004">
<gml:description>description-f004</gml:description>
<gml:name>name-f004</gml:name>
<gml:boundedBy>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:lowerCorner>60.5 0.0</gml:lowerCorner>
<gml:upperCorner>64.0 6.25</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<sf:attribut.Géométrie>
<gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList>60.5 0.0 64.0 0.0 64.0 6.25 60.5 6.25 60.5 0.0</gml:posList>
</gml:LinearRing>
</gml:exterior>
<gml:interior>
<gml:LinearRing>
<gml:posList>61.5 2.0 62.5 2.0 62.0 4.0 61.5 2.0</gml:posList>
</gml:LinearRing>
</gml:interior>
</gml:Polygon>
</sf:attribut.Géométrie>
<sf:boolProperty>true</sf:boolProperty>
<sf:str4Property>abc3</sf:str4Property>
<sf:featureRef>name-f003</sf:featureRef>
</sf:EntitéGénérique>
<sf:EntitéGénérique xlink:href="#EntitéGénérique.f007">
<gml:description>description-f007</gml:description>
<gml:name>name-f007</gml:name>
<gml:boundedBy>
<gml:Envelope srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:lowerCorner>35.0 15.0</gml:lowerCorner>
<gml:upperCorner>40.0 22.5</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<sf:attribut.Géométrie>
<gml:Polygon srsName="urn:x-ogc:def:crs:EPSG:4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList>35.0 15.0 40.0 16.0 39.0 20.0 37.0 22.5 36.0 18.0 35.0 15.0</gml:posList>
</gml:LinearRing>
</gml:exterior>
<gml:interior>
<gml:LinearRing>
<gml:posList>37.1 17.5 37.2 17.6 37.3 17.7 37.4 17.8 37.5 17.9 37.0 17.9 37.1 17.5</gml:posList>
</gml:LinearRing>
</gml:interior>
</gml:Polygon>
</sf:attribut.Géométrie>
<sf:boolProperty>false</sf:boolProperty>
<sf:str4Property>def4</sf:str4Property>
</sf:EntitéGénérique>
</gml:featureMembers>
</wfs:FeatureCollection>
Did not investigate further but... look like something changed
in the way feature collections are encoded?
Disclaimer: take this with a pinch of salt, I did not cleanup
the database before running the test, but I don't remember
seeing these results in previous runs.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.