Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
3c4fca27
Kaydet (Commit)
3c4fca27
authored
Nis 29, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #24724 -- Fixed GIS initialization crash on Windows.
üst
2c3ce26b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
38 deletions
+43
-38
raster.py
django/contrib/gis/gdal/prototypes/raster.py
+40
-38
1.8.1.txt
docs/releases/1.8.1.txt
+3
-0
No files found.
django/contrib/gis/gdal/prototypes/raster.py
Dosyayı görüntüle @
3c4fca27
...
@@ -5,7 +5,7 @@ related data structures.
...
@@ -5,7 +5,7 @@ related data structures.
from
ctypes
import
POINTER
,
c_char_p
,
c_double
,
c_int
,
c_void_p
from
ctypes
import
POINTER
,
c_char_p
,
c_double
,
c_int
,
c_void_p
from
functools
import
partial
from
functools
import
partial
from
django.contrib.gis.gdal.libgdal
import
lgda
l
from
django.contrib.gis.gdal.libgdal
import
std_cal
l
from
django.contrib.gis.gdal.prototypes.generation
import
(
from
django.contrib.gis.gdal.prototypes.generation
import
(
const_string_output
,
double_output
,
int_output
,
void_output
,
const_string_output
,
double_output
,
int_output
,
void_output
,
voidptr_output
,
voidptr_output
,
...
@@ -21,46 +21,48 @@ const_string_output = partial(const_string_output, cpl=True)
...
@@ -21,46 +21,48 @@ const_string_output = partial(const_string_output, cpl=True)
double_output
=
partial
(
double_output
,
cpl
=
True
)
double_output
=
partial
(
double_output
,
cpl
=
True
)
# Raster Driver Routines
# Raster Driver Routines
register_all
=
void_output
(
lgdal
.
GDALAllRegister
,
[])
register_all
=
void_output
(
std_call
(
'GDALAllRegister'
)
,
[])
get_driver
=
voidptr_output
(
lgdal
.
GDALGetDriver
,
[
c_int
])
get_driver
=
voidptr_output
(
std_call
(
'GDALGetDriver'
)
,
[
c_int
])
get_driver_by_name
=
voidptr_output
(
lgdal
.
GDALGetDriverByName
,
[
c_char_p
],
errcheck
=
False
)
get_driver_by_name
=
voidptr_output
(
std_call
(
'GDALGetDriverByName'
)
,
[
c_char_p
],
errcheck
=
False
)
get_driver_count
=
int_output
(
lgdal
.
GDALGetDriverCount
,
[])
get_driver_count
=
int_output
(
std_call
(
'GDALGetDriverCount'
)
,
[])
get_driver_description
=
const_string_output
(
lgdal
.
GDALGetDescription
,
[
c_void_p
])
get_driver_description
=
const_string_output
(
std_call
(
'GDALGetDescription'
)
,
[
c_void_p
])
# Raster Data Source Routines
# Raster Data Source Routines
create_ds
=
voidptr_output
(
lgdal
.
GDALCreate
,
[
c_void_p
,
c_char_p
,
c_int
,
c_int
,
c_int
,
c_int
])
create_ds
=
voidptr_output
(
std_call
(
'GDALCreate'
),
[
c_void_p
,
c_char_p
,
c_int
,
c_int
,
c_int
,
c_int
,
c_void_p
])
open_ds
=
voidptr_output
(
lgdal
.
GDALOpen
,
[
c_char_p
,
c_int
])
open_ds
=
voidptr_output
(
std_call
(
'GDALOpen'
),
[
c_char_p
,
c_int
])
close_ds
=
void_output
(
lgdal
.
GDALClose
,
[
c_void_p
])
close_ds
=
void_output
(
std_call
(
'GDALClose'
),
[
c_void_p
])
flush_ds
=
int_output
(
lgdal
.
GDALFlushCache
,
[
c_void_p
])
flush_ds
=
int_output
(
std_call
(
'GDALFlushCache'
),
[
c_void_p
])
copy_ds
=
voidptr_output
(
lgdal
.
GDALCreateCopy
,
[
c_void_p
,
c_char_p
,
c_void_p
,
c_int
,
copy_ds
=
voidptr_output
(
std_call
(
'GDALCreateCopy'
),
POINTER
(
c_char_p
),
c_void_p
,
c_void_p
])
[
c_void_p
,
c_char_p
,
c_void_p
,
c_int
,
POINTER
(
c_char_p
),
c_void_p
,
c_void_p
]
add_band_ds
=
void_output
(
lgdal
.
GDALAddBand
,
[
c_void_p
,
c_int
])
)
get_ds_description
=
const_string_output
(
lgdal
.
GDALGetDescription
,
[])
add_band_ds
=
void_output
(
std_call
(
'GDALAddBand'
),
[
c_void_p
,
c_int
])
get_ds_driver
=
voidptr_output
(
lgdal
.
GDALGetDatasetDriver
,
[
c_void_p
])
get_ds_description
=
const_string_output
(
std_call
(
'GDALGetDescription'
),
[
c_void_p
])
get_ds_xsize
=
int_output
(
lgdal
.
GDALGetRasterXSize
,
[
c_void_p
])
get_ds_driver
=
voidptr_output
(
std_call
(
'GDALGetDatasetDriver'
),
[
c_void_p
])
get_ds_ysize
=
int_output
(
lgdal
.
GDALGetRasterYSize
,
[
c_void_p
])
get_ds_xsize
=
int_output
(
std_call
(
'GDALGetRasterXSize'
),
[
c_void_p
])
get_ds_raster_count
=
int_output
(
lgdal
.
GDALGetRasterCount
,
[
c_void_p
])
get_ds_ysize
=
int_output
(
std_call
(
'GDALGetRasterYSize'
),
[
c_void_p
])
get_ds_raster_band
=
voidptr_output
(
lgdal
.
GDALGetRasterBand
,
[
c_void_p
,
c_int
])
get_ds_raster_count
=
int_output
(
std_call
(
'GDALGetRasterCount'
),
[
c_void_p
])
get_ds_projection_ref
=
const_string_output
(
lgdal
.
GDALGetProjectionRef
,
[
c_void_p
])
get_ds_raster_band
=
voidptr_output
(
std_call
(
'GDALGetRasterBand'
),
[
c_void_p
,
c_int
])
set_ds_projection_ref
=
void_output
(
lgdal
.
GDALSetProjection
,
[
c_void_p
,
c_char_p
])
get_ds_projection_ref
=
const_string_output
(
std_call
(
'GDALGetProjectionRef'
),
[
c_void_p
])
get_ds_geotransform
=
void_output
(
lgdal
.
GDALGetGeoTransform
,
[
c_void_p
,
POINTER
(
c_double
*
6
)],
errcheck
=
False
)
set_ds_projection_ref
=
void_output
(
std_call
(
'GDALSetProjection'
),
[
c_void_p
,
c_char_p
])
set_ds_geotransform
=
void_output
(
lgdal
.
GDALSetGeoTransform
,
[
c_void_p
,
POINTER
(
c_double
*
6
)])
get_ds_geotransform
=
void_output
(
std_call
(
'GDALGetGeoTransform'
),
[
c_void_p
,
POINTER
(
c_double
*
6
)],
errcheck
=
False
)
set_ds_geotransform
=
void_output
(
std_call
(
'GDALSetGeoTransform'
),
[
c_void_p
,
POINTER
(
c_double
*
6
)])
# Raster Band Routines
# Raster Band Routines
band_io
=
void_output
(
lgdal
.
GDALRasterIO
,
[
c_void_p
,
c_int
,
c_int
,
c_int
,
c_int
,
c_int
,
band_io
=
void_output
(
std_call
(
'GDALRasterIO'
),
c_void_p
,
c_int
,
c_int
,
c_int
,
c_int
,
c_int
])
[
c_void_p
,
c_int
,
c_int
,
c_int
,
c_int
,
c_int
,
c_void_p
,
c_int
,
c_int
,
c_int
,
c_int
,
c_int
]
get_band_xsize
=
int_output
(
lgdal
.
GDALGetRasterBandXSize
,
[
c_void_p
])
)
get_band_ysize
=
int_output
(
lgdal
.
GDALGetRasterBandYSize
,
[
c_void_p
])
get_band_xsize
=
int_output
(
std_call
(
'GDALGetRasterBandXSize'
),
[
c_void_p
])
get_band_index
=
int_output
(
lgdal
.
GDALGetBandNumber
,
[
c_void_p
])
get_band_ysize
=
int_output
(
std_call
(
'GDALGetRasterBandYSize'
),
[
c_void_p
])
get_band_description
=
const_string_output
(
lgdal
.
GDALGetDescription
,
[
c_void_p
])
get_band_index
=
int_output
(
std_call
(
'GDALGetBandNumber'
),
[
c_void_p
])
get_band_ds
=
voidptr_output
(
lgdal
.
GDALGetBandDataset
,
[
c_void_p
])
get_band_description
=
const_string_output
(
std_call
(
'GDALGetDescription'
),
[
c_void_p
])
get_band_datatype
=
int_output
(
lgdal
.
GDALGetRasterDataType
,
[
c_void_p
])
get_band_ds
=
voidptr_output
(
std_call
(
'GDALGetBandDataset'
),
[
c_void_p
])
get_band_nodata_value
=
double_output
(
lgdal
.
GDALGetRasterNoDataValue
,
[
c_void_p
,
POINTER
(
c_int
)])
get_band_datatype
=
int_output
(
std_call
(
'GDALGetRasterDataType'
),
[
c_void_p
])
set_band_nodata_value
=
void_output
(
lgdal
.
GDALSetRasterNoDataValue
,
[
c_void_p
,
c_double
])
get_band_nodata_value
=
double_output
(
std_call
(
'GDALGetRasterNoDataValue'
),
[
c_void_p
,
POINTER
(
c_int
)])
get_band_minimum
=
double_output
(
lgdal
.
GDALGetRasterMinimum
,
[
c_void_p
,
POINTER
(
c_int
)])
set_band_nodata_value
=
void_output
(
std_call
(
'GDALSetRasterNoDataValue'
),
[
c_void_p
,
c_double
])
get_band_maximum
=
double_output
(
lgdal
.
GDALGetRasterMaximum
,
[
c_void_p
,
POINTER
(
c_int
)])
get_band_minimum
=
double_output
(
std_call
(
'GDALGetRasterMinimum'
),
[
c_void_p
,
POINTER
(
c_int
)])
get_band_maximum
=
double_output
(
std_call
(
'GDALGetRasterMaximum'
),
[
c_void_p
,
POINTER
(
c_int
)])
# Reprojection routine
# Reprojection routine
reproject_image
=
void_output
(
lgdal
.
GDALReprojectImage
,
[
c_void_p
,
c_char_p
,
c_void_p
,
c_char_p
,
reproject_image
=
void_output
(
std_call
(
'GDALReprojectImage'
)
,
c_int
,
c_double
,
c_double
,
[
c_void_p
,
c_char_p
,
c_void_p
,
c_char_p
,
c_int
,
c_double
,
c_double
,
c_void_p
,
c_void_p
,
c_void_p
]
c_void_p
,
c_void_p
,
c_void_p
]
)
)
docs/releases/1.8.1.txt
Dosyayı görüntüle @
3c4fca27
...
@@ -84,6 +84,9 @@ Bugfixes
...
@@ -84,6 +84,9 @@ Bugfixes
``ModelAdmin.filter_horizontal`` and ``filter_vertical`` options
``ModelAdmin.filter_horizontal`` and ``filter_vertical`` options
(:ticket:`24676`).
(:ticket:`24676`).
* Fixed `AttributeError: function 'GDALAllRegister' not found` error when
initializing ``contrib.gis`` on Windows.
Optimizations
Optimizations
=============
=============
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment