PointArray points = new PointArray( vertexCount, GeometryArray.COORDINATES ); points.setCoordinates( 0, coords );