xpath.evaluate(basePath + "/gml:posList", dom));
}
public void testEncodeCompound() throws Exception {
// create a compound curve
CurvedGeometryFactory factory = new CurvedGeometryFactory(0.1);
LineString curve = factory.createCurvedGeometry(new LiteCoordinateSequence(1, 1, 2, 2, 3,
1, 5, 5, 7, 3));
LineString straight = factory.createLineString(new LiteCoordinateSequence(7, 3, 10, 15));
LineString compound = factory.createCurvedGeometry(curve, straight);
// encode
Document dom = encode(compound, GML.curveProperty);
// print(dom);
XpathEngine xpath = XMLUnit.newXpathEngine();