assertArrayEquals(new double[] { 10, 35, 15, 40, 20, 35, 25, 30, 30, 35 }, cp, 0d);
}
@Test
public void testCompoundOpen() throws Exception {
ContentFeatureSource fs = dataStore.getFeatureSource(tname("curves"));
FilterFactory ff = dataStore.getFilterFactory();
PropertyIsEqualTo filter = ff.equal(ff.property(aname("name")),
ff.literal("Compound line string"), true);
ContentFeatureCollection fc = fs.getFeatures(filter);
assertEquals(1, fc.size());
SimpleFeature feature = DataUtilities.first(fc);
Geometry g = (Geometry) feature.getDefaultGeometry();
assertNotNull(g);
assertTrue(g instanceof CompoundCurvedGeometry<?>);