Raster-vector cooperation algorithm for GIS