Home
last modified time | relevance | path

Searched refs:dst_ds (Results 1 – 25 of 60) sorted by relevance

123

/dports/graphics/p5-Geo-GDAL/gdal-3.3.3/swig/python/gdal-utils/osgeo_utils/samples/
H A Dgdal_lut.py174 dst_ds = src_ds
177 dst_ds = None
193 if dst_ds is None:
195 dst_ds = gdal.Open(dst_filename, gdal.GA_Update)
197 dst_ds = None
199 if dst_ds is None:
200 dst_ds = dst_driver.Create(dst_filename,
204 dst_ds.SetProjection(src_ds.GetProjection())
205 dst_ds.SetGeoTransform(src_ds.GetGeoTransform())
208 dst_band = dst_ds.GetRasterBand(dst_band_n)
[all …]
H A Dogr_dispatch.py177 def get_layer_and_map(out_lyr_name, src_lyr, dst_ds, layerMap, geom_type, options): argument
184 out_lyr = dst_ds.GetLayerByName(out_lyr_name)
188 out_lyr = dst_ds.CreateLayer(out_lyr_name, srs=srs,
224 def convert_layer(src_lyr, dst_ds, layerMap, options): argument
239 (out_lyr, panMap) = get_layer_and_map(out_lyr_name, src_lyr, dst_ds,
365 dst_ds = ogr.Open(dst_filename, update=1)
366 if dst_ds is not None:
371 dst_ds = ogr.GetDriverByName(frmt).CreateDataSource(dst_filename, options=dsco)
372 if dst_ds is None:
381 ret = convert_layer(src_lyr, dst_ds, layerMap, options)
H A Dogrupdate.py168 dst_ds = ogr.Open(dst_filename, update=1)
169 if dst_ds is None:
187 if dst_ds.GetLayerCount() > 1:
188 dst_layer = dst_ds.GetLayerByName(src_layername)
190 dst_layer = dst_ds.GetLayer(0)
192 dst_layer = dst_ds.GetLayerByName(dst_layername)
247 dst_ds = None
/dports/graphics/gdal/gdal-3.3.3/swig/python/gdal-utils/osgeo_utils/samples/
H A Dgdal_lut.py174 dst_ds = src_ds
177 dst_ds = None
193 if dst_ds is None:
195 dst_ds = gdal.Open(dst_filename, gdal.GA_Update)
197 dst_ds = None
199 if dst_ds is None:
200 dst_ds = dst_driver.Create(dst_filename,
204 dst_ds.SetProjection(src_ds.GetProjection())
205 dst_ds.SetGeoTransform(src_ds.GetGeoTransform())
208 dst_band = dst_ds.GetRasterBand(dst_band_n)
[all …]
H A Dogr_dispatch.py177 def get_layer_and_map(out_lyr_name, src_lyr, dst_ds, layerMap, geom_type, options): argument
184 out_lyr = dst_ds.GetLayerByName(out_lyr_name)
188 out_lyr = dst_ds.CreateLayer(out_lyr_name, srs=srs,
224 def convert_layer(src_lyr, dst_ds, layerMap, options): argument
239 (out_lyr, panMap) = get_layer_and_map(out_lyr_name, src_lyr, dst_ds,
365 dst_ds = ogr.Open(dst_filename, update=1)
366 if dst_ds is not None:
371 dst_ds = ogr.GetDriverByName(frmt).CreateDataSource(dst_filename, options=dsco)
372 if dst_ds is None:
381 ret = convert_layer(src_lyr, dst_ds, layerMap, options)
H A Dogrupdate.py168 dst_ds = ogr.Open(dst_filename, update=1)
169 if dst_ds is None:
187 if dst_ds.GetLayerCount() > 1:
188 dst_layer = dst_ds.GetLayerByName(src_layername)
190 dst_layer = dst_ds.GetLayer(0)
192 dst_layer = dst_ds.GetLayerByName(dst_layername)
247 dst_ds = None
/dports/graphics/py-gdal/gdal-3.3.3/swig/python/gdal-utils/osgeo_utils/samples/
H A Dgdal_lut.py174 dst_ds = src_ds
177 dst_ds = None
193 if dst_ds is None:
195 dst_ds = gdal.Open(dst_filename, gdal.GA_Update)
197 dst_ds = None
199 if dst_ds is None:
200 dst_ds = dst_driver.Create(dst_filename,
204 dst_ds.SetProjection(src_ds.GetProjection())
205 dst_ds.SetGeoTransform(src_ds.GetGeoTransform())
208 dst_band = dst_ds.GetRasterBand(dst_band_n)
[all …]
H A Dogr_dispatch.py177 def get_layer_and_map(out_lyr_name, src_lyr, dst_ds, layerMap, geom_type, options): argument
184 out_lyr = dst_ds.GetLayerByName(out_lyr_name)
188 out_lyr = dst_ds.CreateLayer(out_lyr_name, srs=srs,
224 def convert_layer(src_lyr, dst_ds, layerMap, options): argument
239 (out_lyr, panMap) = get_layer_and_map(out_lyr_name, src_lyr, dst_ds,
365 dst_ds = ogr.Open(dst_filename, update=1)
366 if dst_ds is not None:
371 dst_ds = ogr.GetDriverByName(frmt).CreateDataSource(dst_filename, options=dsco)
372 if dst_ds is None:
381 ret = convert_layer(src_lyr, dst_ds, layerMap, options)
H A Dogrupdate.py168 dst_ds = ogr.Open(dst_filename, update=1)
169 if dst_ds is None:
187 if dst_ds.GetLayerCount() > 1:
188 dst_layer = dst_ds.GetLayerByName(src_layername)
190 dst_layer = dst_ds.GetLayer(0)
192 dst_layer = dst_ds.GetLayerByName(dst_layername)
247 dst_ds = None
/dports/graphics/p5-Geo-GDAL/gdal-3.3.3/swig/python/gdal-utils/osgeo_utils/
H A Dgdal_proximity.py150 dst_ds = gdal.Open(dst_filename, gdal.GA_Update)
151 dstband = dst_ds.GetRasterBand(dst_band_n)
153 dst_ds = None
155 dst_ds = None
160 if dst_ds is None:
165 dst_ds = drv.Create(dst_filename,
169 dst_ds.SetGeoTransform(src_ds.GetGeoTransform())
170 dst_ds.SetProjection(src_ds.GetProjectionRef())
172 dstband = dst_ds.GetRasterBand(1)
189 dst_ds = None
H A Dgdal_polygonize.py166 dst_ds = ogr.Open(dst_filename, update=1)
169 dst_ds = None
174 if dst_ds is None:
178 dst_ds = drv.CreateDataSource(dst_filename)
184 dst_layer = dst_ds.GetLayerByName(dst_layername)
191 dst_layer = dst_ds.CreateLayer(dst_layername, geom_type=ogr.wkbPolygon, srs=srs)
219 dst_ds = None
H A Dgdal_sieve.py153 dst_ds = drv.Create(dst_filename, src_ds.RasterXSize, src_ds.RasterYSize, 1,
157 dst_ds.SetProjection(wkt)
160 dst_ds.SetGeoTransform(gt)
162 dstband = dst_ds.GetRasterBand(1)
181 dst_ds = None
H A Dgdal_fillnodata.py159 dst_ds = drv.Create(dst_filename, src_ds.RasterXSize, src_ds.RasterYSize, 1,
163 dst_ds.SetProjection(wkt)
166 dst_ds.SetGeoTransform(gt)
168 dstband = dst_ds.GetRasterBand(1)
207 dst_ds = None
H A Dogrmerge.py289 dst_ds = gdal.OpenEx(dst_filename, gdal.OF_VECTOR | gdal.OF_UPDATE)
290 if dst_ds is not None:
296 drv = dst_ds.GetDriver()
297 dst_ds = None
306 if dst_ds is None:
311 dst_ds = drv.Create(
313 if dst_ds is None:
543 ret = gdal.VectorTranslate(dst_ds, vrt_filename,
/dports/graphics/gdal/gdal-3.3.3/swig/python/gdal-utils/osgeo_utils/
H A Dgdal_proximity.py150 dst_ds = gdal.Open(dst_filename, gdal.GA_Update)
151 dstband = dst_ds.GetRasterBand(dst_band_n)
153 dst_ds = None
155 dst_ds = None
160 if dst_ds is None:
165 dst_ds = drv.Create(dst_filename,
169 dst_ds.SetGeoTransform(src_ds.GetGeoTransform())
170 dst_ds.SetProjection(src_ds.GetProjectionRef())
172 dstband = dst_ds.GetRasterBand(1)
189 dst_ds = None
H A Dgdal_polygonize.py166 dst_ds = ogr.Open(dst_filename, update=1)
169 dst_ds = None
174 if dst_ds is None:
178 dst_ds = drv.CreateDataSource(dst_filename)
184 dst_layer = dst_ds.GetLayerByName(dst_layername)
191 dst_layer = dst_ds.CreateLayer(dst_layername, geom_type=ogr.wkbPolygon, srs=srs)
219 dst_ds = None
H A Dgdal_sieve.py153 dst_ds = drv.Create(dst_filename, src_ds.RasterXSize, src_ds.RasterYSize, 1,
157 dst_ds.SetProjection(wkt)
160 dst_ds.SetGeoTransform(gt)
162 dstband = dst_ds.GetRasterBand(1)
181 dst_ds = None
H A Dgdal_fillnodata.py159 dst_ds = drv.Create(dst_filename, src_ds.RasterXSize, src_ds.RasterYSize, 1,
163 dst_ds.SetProjection(wkt)
166 dst_ds.SetGeoTransform(gt)
168 dstband = dst_ds.GetRasterBand(1)
207 dst_ds = None
H A Dogrmerge.py289 dst_ds = gdal.OpenEx(dst_filename, gdal.OF_VECTOR | gdal.OF_UPDATE)
290 if dst_ds is not None:
296 drv = dst_ds.GetDriver()
297 dst_ds = None
306 if dst_ds is None:
311 dst_ds = drv.Create(
313 if dst_ds is None:
543 ret = gdal.VectorTranslate(dst_ds, vrt_filename,
/dports/graphics/py-gdal/gdal-3.3.3/swig/python/gdal-utils/osgeo_utils/
H A Dgdal_proximity.py150 dst_ds = gdal.Open(dst_filename, gdal.GA_Update)
151 dstband = dst_ds.GetRasterBand(dst_band_n)
153 dst_ds = None
155 dst_ds = None
160 if dst_ds is None:
165 dst_ds = drv.Create(dst_filename,
169 dst_ds.SetGeoTransform(src_ds.GetGeoTransform())
170 dst_ds.SetProjection(src_ds.GetProjectionRef())
172 dstband = dst_ds.GetRasterBand(1)
189 dst_ds = None
H A Dgdal_polygonize.py166 dst_ds = ogr.Open(dst_filename, update=1)
169 dst_ds = None
174 if dst_ds is None:
178 dst_ds = drv.CreateDataSource(dst_filename)
184 dst_layer = dst_ds.GetLayerByName(dst_layername)
191 dst_layer = dst_ds.CreateLayer(dst_layername, geom_type=ogr.wkbPolygon, srs=srs)
219 dst_ds = None
H A Dgdal_sieve.py153 dst_ds = drv.Create(dst_filename, src_ds.RasterXSize, src_ds.RasterYSize, 1,
157 dst_ds.SetProjection(wkt)
160 dst_ds.SetGeoTransform(gt)
162 dstband = dst_ds.GetRasterBand(1)
181 dst_ds = None
H A Dgdal_fillnodata.py159 dst_ds = drv.Create(dst_filename, src_ds.RasterXSize, src_ds.RasterYSize, 1,
163 dst_ds.SetProjection(wkt)
166 dst_ds.SetGeoTransform(gt)
168 dstband = dst_ds.GetRasterBand(1)
207 dst_ds = None
H A Dogrmerge.py289 dst_ds = gdal.OpenEx(dst_filename, gdal.OF_VECTOR | gdal.OF_UPDATE)
290 if dst_ds is not None:
296 drv = dst_ds.GetDriver()
297 dst_ds = None
306 if dst_ds is None:
311 dst_ds = drv.Create(
313 if dst_ds is None:
543 ret = gdal.VectorTranslate(dst_ds, vrt_filename,
/dports/databases/postgis30/postgis-3.0.4/raster/scripts/python/
H A Dovdump.py82dst_ds = dst_drv.Create(dst_file, ov_band.XSize, ov_band.YSize, src_ds.RasterCount, ov_band.DataTy… variable
102 dst_band = dst_ds.GetRasterBand(nb)
108 dst_ds = None variable

123