Fix segments shizzle in geotools