View | Details | Raw Unified | Return to bug 149072
Collapse All | Expand All

(-)gdal/Makefile (-19 / +2 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	gdal
8
PORTNAME=	gdal
9
PORTVERSION=	1.6.0
9
PORTVERSION=	1.7.2
10
PORTREVISION=	9
11
CATEGORIES=	graphics geography
10
CATEGORIES=	graphics geography
12
MASTER_SITES=	ftp://ftp.remotesensing.org/pub/gdal/ \
11
MASTER_SITES=	ftp://ftp.remotesensing.org/pub/gdal/ \
13
		http://www.gdal.org/dl/ \
12
		http://www.gdal.org/dl/ \
Lines 23-37 Link Here
23
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
24
CONFIGURE_ARGS=	--datadir=${DATADIR} --with-libz=/usr
23
CONFIGURE_ARGS=	--datadir=${DATADIR} --with-libz=/usr
25
MAKEFILE=	GNUmakefile
24
MAKEFILE=	GNUmakefile
26
INSTALL_TARGET=	install install-man
27
MAKE_JOBS_UNSAFE=	yes
25
MAKE_JOBS_UNSAFE=	yes
28
26
29
MAN1=		gdal-config.1 gdal2tiles.1 gdal_contour.1 gdal_grid.1 \
30
		gdal_merge.1 gdal_rasterize.1 gdal_retile.1 gdal_translate.1 \
31
		gdal_utilities.1 gdaladdo.1 gdalinfo.1 gdaltindex.1 \
32
		gdaltransform.1 gdalwarp.1 nearblack.1 ogr2ogr.1 \
33
		ogr_utilities.1 ogrinfo.1 ogrtindex.1 pct2rgb.1 rgb2pct.1
34
35
.if !defined(NOPORTDOCS)
27
.if !defined(NOPORTDOCS)
36
BUILD_DEPENDS+=		${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
28
BUILD_DEPENDS+=		${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
37
.endif
29
.endif
Lines 189-207 Link Here
189
PYEASYINSTALL_CMD=	${LOCALBASE}/bin/easy_install-${PYTHON_VER}
181
PYEASYINSTALL_CMD=	${LOCALBASE}/bin/easy_install-${PYTHON_VER}
190
PYDISTUTILS_PKGNAME=	${PORTNAME:U}
182
PYDISTUTILS_PKGNAME=	${PORTNAME:U}
191
PYDISTUTILS_PKGVERSION=	${PORTVERSION}
183
PYDISTUTILS_PKGVERSION=	${PORTVERSION}
192
PORTREVISION=	4
193
_OSRELEASE!=		${UNAME} -r
184
_OSRELEASE!=		${UNAME} -r
194
PYEASYINSTALL_OSARCH=	-${OPSYS:L}-${_OSRELEASE}-${ARCH}
185
PYEASYINSTALL_OSARCH=	-${OPSYS:L}-${_OSRELEASE}-${ARCH}
195
PYEASYINSTALL_EGG=	${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-${PYTHON_VERSION:S/thon//}${PYEASYINSTALL_OSARCH}.egg
186
PYEASYINSTALL_EGG=	${PYDISTUTILS_PKGNAME:C/[^A-Za-z0-9.]+/_/g}-${PYDISTUTILS_PKGVERSION:C/[^A-Za-z0-9.]+/_/g}-${PYTHON_VERSION:S/thon//}${PYEASYINSTALL_OSARCH}.egg
196
PYEASYINSTALL_BINDIR=	${PREFIX}/bin
187
PYEASYINSTALL_BINDIR=	${PREFIX}/bin
197
PYEASYINSTALL_SITELIBDIR=	${PYTHONPREFIX_SITELIBDIR}
188
PYEASYINSTALL_SITELIBDIR=	${PYTHONPREFIX_SITELIBDIR}
198
189
199
PLIST_SUB+=		PYEASYINSTALL_EGG=${PYEASYINSTALL_EGG} \
190
PLIST_SUB+=		PYEASYINSTALL_EGG=${PYEASYINSTALL_EGG}
200
			PYEASYINSTALL_CMD=${PYEASYINSTALL_CMD} \
201
			PYEASYINSTALL_BINDIR=${PYEASYINSTALL_BINDIR} \
202
			PYEASYINSTALL_SITELIBDIR=${PYEASYINSTALL_SITELIBDIR} \
203
			PYDISTUTILS_PKGNAME=${PYDISTUTILS_PKGNAME} \
204
			PYDISTUTILS_PKGVERSION=${PYDISTUTILS_PKGVERSION}
205
.endif
191
.endif
206
192
207
.if !defined(WITHOUT_PNG)
193
.if !defined(WITHOUT_PNG)
Lines 271-277 Link Here
271
		' ${WRKSRC}/swig/python/GNUmakefile
257
		' ${WRKSRC}/swig/python/GNUmakefile
272
.endif
258
.endif
273
259
274
post-install:
275
	${INSTALL_MAN} ${FILESDIR}/gdalwarp.1 ${PREFIX}/man/man1/
276
277
.include <bsd.port.post.mk>
260
.include <bsd.port.post.mk>
(-)gdal/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (gdal-1.6.0.tar.gz) = 0c53697511f489455f8b60e843986568
1
MD5 (gdal-1.7.2.tar.gz) = 05351f8cb61761ae579667e24a297fe6
2
SHA256 (gdal-1.6.0.tar.gz) = acdc2faf7496f8d8f4680347ce30fd3a2139b5c050f13dcd6ca8a3d7f6e418a4
2
SHA256 (gdal-1.7.2.tar.gz) = 0834909a93e955a45cf050714b018fed89f8dbe74e0381e91d16a8084ca08837
3
SIZE (gdal-1.6.0.tar.gz) = 7072689
3
SIZE (gdal-1.7.2.tar.gz) = 7755378
(-)gdal/files/gdalwarp.1 (-105 lines)
Lines 1-105 Link Here
1
.TH "gdalwarp" 1 "20 Dec 2007" "GDAL" \" -*- nroff -*-
2
.ad l
3
.nh
4
.SH NAME
5
gdalwarp \- gdalwarp
6
simple image reprojection and warping utility
7
.SH "SYNOPSIS"
8
.PP
9
.PP
10
.PP
11
.nf
12
13
gdalwarp 
14
    [-s_srs srs_def] [-t_srs srs_def] [-order n] ] [-tps] [-et err_threshold]
15
    [-te xmin ymin xmax ymax] [-tr xres yres] [-ts width height]
16
    [-wo "NAME=VALUE"] [-ot Byte/Int16/...] [-wt Byte/Int16]
17
    [-srcnodata "value [value...]"] [-dstnodata "value [value...]"] -dstalpha
18
    [-r resampling_method] [-wm memory_in_mb] [-multi] [-q]
19
    [-of format] [-co "NAME=VALUE"]* srcfile* dstfile
20
.fi
21
.PP
22
.SH "DESCRIPTION"
23
.PP
24
The gdalwarp utility is an image mosaicing, reprojection and warping utility. The program can reproject to any supported projection, and can also apply GCPs stored with the image if the image is 'raw' with control information.
25
.PP
26
.IP "\fB\fB-s_srs\fP \fIsrs def\fP:\fP" 1c
27
source spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text. 
28
.IP "\fB\fB-t_srs\fP \fIsrs_def\fP:\fP" 1c
29
target spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text. 
30
.IP "\fB\fB-order\fP \fIn\fP:\fP" 1c
31
order of polynomial used for warping (1 to 3). The default is to select a polynomial order based on the number of GCPs. 
32
.IP "\fB\fB-tps\fP\fP" 1c
33
Enable use of thin plate spline transformer based on available GCPs. Use this \fIinstead\fP of the -order switch. 
34
.IP "\fB\fB-et\fP \fIerr_threshold\fP:\fP" 1c
35
error threshold for transformation approximation (in pixel units - defaults to 0.125). 
36
.IP "\fB\fB-te\fP \fIxmin ymin xmax ymax\fP:\fP" 1c
37
set georeferenced extents of output file to be created. 
38
.IP "\fB\fB-tr\fP \fIxres yres\fP:\fP" 1c
39
set output file resolution (in target georeferenced units) 
40
.IP "\fB\fB-ts\fP \fIwidth height\fP:\fP" 1c
41
set output file size in pixels and lines 
42
.IP "\fB\fB-wo\fP \fI'NAME=VALUE'\fP:\fP" 1c
43
Set a warp options. The GDALWarpOptions::papszWarpOptions docs show all options. Multiple \fB-wo\fP options may be listed. 
44
.IP "\fB\fB-ot\fP \fItype\fP:\fP" 1c
45
For the output bands to be of the indicated data type. 
46
.IP "\fB\fB-wt\fP \fItype\fP:\fP" 1c
47
Working pixel data type. The data type of pixels in the source image and destination image buffers. 
48
.IP "\fB\fB-r\fP \fIresampling_method\fP:\fP" 1c
49
Resampling method to use. Available methods are: 
50
.IP "\fB\fBnear\fP: \fP" 1c
51
nearest neighbour resampling (default, fastest algorithm, worst interpolation quality). 
52
.IP "\fB\fBbilinear\fP: \fP" 1c
53
bilinear resampling. 
54
.IP "\fB\fBcubic\fP: \fP" 1c
55
cubic resampling. 
56
.IP "\fB\fBcubicspline\fP: \fP" 1c
57
cubic spline resampling. 
58
.IP "\fB\fBlanczos\fP: \fP" 1c
59
Lanczos windowed sinc resampling. 
60
.PP
61
.IP "\fB\fB-srcnodata\fP \fIvalue [value...]\fP:\fP" 1c
62
Set nodata masking values for input bands (different values can be supplied for each band). If more than one value is supplied all values should be quoted to keep them together as a single operating system argument. Masked values will not be used in interpolation. Use a value of \fCNone\fP to ignore intrinsic nodata settings on the source dataset. 
63
.IP "\fB\fB-dstnodata\fP \fIvalue [value...]\fP:\fP" 1c
64
Set nodata values for output bands (different values can be supplied for each band). If more than one value is supplied all values should be quoted to keep them together as a single operating system argument. New files will be initialized to this value and if possible the nodata value will be recorded in the output file. 
65
.IP "\fB\fB-dstalpha\fP:\fP" 1c
66
Create an output alpha band to identify nodata (unset/transparent) pixels.  
67
.IP "\fB\fB-wm\fP \fImemory_in_mb\fP:\fP" 1c
68
Set the amount of memory (in megabytes) that the warp API is allowed to use for caching. 
69
.IP "\fB\fB-multi\fP:\fP" 1c
70
Use multithreaded warping implementation. Multiple threads will be used to process chunks of image and perform input/output operation simultaneously. 
71
.IP "\fB\fB-q\fP:\fP" 1c
72
Be quiet. 
73
.IP "\fB\fB-of\fP \fIformat\fP:\fP" 1c
74
Select the output format. The default is GeoTIFF (GTiff). Use the short format name.  
75
.IP "\fB\fB-co\fP \fI'NAME=VALUE'\fP:\fP" 1c
76
passes a creation option to the output format driver. Multiple \fB-co\fP options may be listed. See format specific documentation for legal creation options for each format.  
77
.IP "\fB\fIsrcfile\fP:\fP" 1c
78
The source file name(s).  
79
.IP "\fB\fIdstfile\fP:\fP" 1c
80
The destination file name.  
81
.PP
82
.PP
83
Mosaicing into an existing output file is supported if the output file already exists.
84
.SH "EXAMPLE"
85
.PP
86
For instance, an eight bit spot scene stored in GeoTIFF with control points mapping the corners to lat/long could be warped to a UTM projection with a command like this:
87
.PP
88
.PP
89
.nf
90
91
gdalwarp -t_srs '+proj=utm +zone=11 +datum=WGS84' raw_spot.tif utm11.tif
92
.fi
93
.PP
94
.PP
95
For instance, the second channel of an ASTER image stored in HDF with control points mapping the corners to lat/long could be warped to a UTM projection with a command like this:
96
.PP
97
.PP
98
.nf
99
100
gdalwarp HDF4_SDS:ASTER_L1B:"pg-PR1B0000-2002031402_100_001":2 pg-PR1B0000-2002031402_100_001_2.tif
101
.fi
102
.PP
103
.SH "AUTHORS"
104
.PP
105
Frank Warmerdam <warmerdam@pobox.com>, Silke Reimer <silke@intevation.de> 
(-)gdal/files/patch-ogr-GNUmakefile (-11 lines)
Lines 1-11 Link Here
1
--- ogr/GNUmakefile.orig	2009-03-02 23:42:30.000000000 +0300
2
+++ ogr/GNUmakefile	2009-03-02 23:42:35.000000000 +0300
3
@@ -19,7 +19,7 @@
4
 
5
 default:	lib
6
 
7
-all:	sublibs apps test_ogrsf$(EXE) 
8
+all:	sublibs
9
 
10
 clean:
11
 	rm -f html/*
(-)gdal/files/patch-swig-python-GNUmakefile (-6 / +6 lines)
Lines 1-15 Link Here
1
--- swig/python/GNUmakefile.orig	2008-05-31 11:41:25.000000000 +0400
1
--- swig/python/GNUmakefile.orig	2010-07-29 18:04:21.000000000 +0400
2
+++ swig/python/GNUmakefile	2009-03-03 00:05:31.000000000 +0300
2
+++ swig/python/GNUmakefile	2010-07-29 18:05:10.000000000 +0400
3
@@ -47,7 +47,7 @@
3
@@ -62,7 +62,7 @@
4
 generate: ${WRAPPERS}
4
 	mv -f ${SWIGOUTPUTDIR}/gdal_array_wrap.cpp.tmp ${SWIGOUTPUTDIR}/gdal_array_wrap.cpp
5
 
5
     
6
 build:
6
 build:
7
-	$(PYTHON) setup.py build
7
-	$(PYTHON) setup.py build
8
+	CXX="" $(PYTHON) setup.py bdist_egg
8
+	CXX="" $(PYTHON) setup.py bdist_egg
9
 
9
 
10
 egg:
10
 egg:
11
 	$(PYTHON) setup.py bdist_egg 
11
 	$(PYTHON) setup.py bdist_egg 
12
@@ -55,7 +55,7 @@
12
@@ -70,7 +70,7 @@
13
 install:
13
 install:
14
 
14
 
15
 ifeq ($(PY_HAVE_SETUPTOOLS),1)
15
 ifeq ($(PY_HAVE_SETUPTOOLS),1)
(-)gdal/pkg-plist (-35 / +50 lines)
Lines 6-11 Link Here
6
bin/gdal2tiles.py
6
bin/gdal2tiles.py
7
bin/gdal2xyz.py
7
bin/gdal2xyz.py
8
bin/gdal_contour
8
bin/gdal_contour
9
bin/gdal_fillnodata.dox
10
bin/gdal_fillnodata.py
9
bin/gdal_grid
11
bin/gdal_grid
10
bin/gdal_merge.py
12
bin/gdal_merge.py
11
bin/gdal_polygonize.py
13
bin/gdal_polygonize.py
Lines 16-22 Link Here
16
bin/gdal_sieve.py
18
bin/gdal_sieve.py
17
bin/gdal_translate
19
bin/gdal_translate
18
bin/gdaladdo
20
bin/gdaladdo
21
bin/gdalbuildvrt
19
bin/gdalchksum.py
22
bin/gdalchksum.py
23
bin/gdaldem
20
bin/gdalenhance
24
bin/gdalenhance
21
bin/gdalident.py
25
bin/gdalident.py
22
bin/gdalimport.py
26
bin/gdalimport.py
Lines 33-39 Link Here
33
bin/pct2rgb.py
37
bin/pct2rgb.py
34
bin/rgb2pct.py
38
bin/rgb2pct.py
35
bin/testepsg
39
bin/testepsg
40
include/cpl_atomic_ops.h
36
include/cpl_config.h
41
include/cpl_config.h
42
include/cpl_config_extras.h
37
include/cpl_conv.h
43
include/cpl_conv.h
38
include/cpl_csv.h
44
include/cpl_csv.h
39
include/cpl_error.h
45
include/cpl_error.h
Lines 48-53 Link Here
48
include/cpl_port.h
54
include/cpl_port.h
49
include/cpl_quad_tree.h
55
include/cpl_quad_tree.h
50
include/cpl_string.h
56
include/cpl_string.h
57
include/cpl_time.h
51
include/cpl_vsi.h
58
include/cpl_vsi.h
52
include/cpl_vsi_virtual.h
59
include/cpl_vsi_virtual.h
53
include/cpl_win32ce_api.h
60
include/cpl_win32ce_api.h
Lines 83-89 Link Here
83
lib/libgdal.a
90
lib/libgdal.a
84
lib/libgdal.la
91
lib/libgdal.la
85
lib/libgdal.so
92
lib/libgdal.so
86
lib/libgdal.so.14
93
lib/libgdal.so.15
87
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
94
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
88
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
95
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
89
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
96
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
Lines 139-177 Link Here
139
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osr.py
146
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osr.py
140
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osr.pyc
147
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osr.pyc
141
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osr.pyo
148
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osr.pyo
142
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
149
%%PYTHON_SITELIBDIR%%/easy-install.pth
150
%%PYTHON_SITELIBDIR%%/site.py
151
%%PYTHON_SITELIBDIR%%/site.pyc
152
%%PYTHON_SITELIBDIR%%/site.pyo
153
share/gdal/GDALLogoBW.svg
154
share/gdal/GDALLogoColor.svg
155
share/gdal/GDALLogoGS.svg
156
share/gdal/LICENSE.TXT
157
share/gdal/coordinate_axis.csv
158
share/gdal/cubewerx_extra.wkt
159
share/gdal/ecw_cs.wkt
160
share/gdal/ellipsoid.csv
161
share/gdal/epsg.wkt
162
share/gdal/esri_extra.wkt
163
share/gdal/gcs.csv
164
share/gdal/gcs.override.csv
165
share/gdal/gdal_datum.csv
166
share/gdal/gdalicon.png
167
share/gdal/gt_datum.csv
168
share/gdal/gt_ellips.csv
169
share/gdal/header.dxf
170
share/gdal/pcs.csv
171
share/gdal/pcs.override.csv
172
share/gdal/prime_meridian.csv
173
share/gdal/projop_wparm.csv
174
share/gdal/s57agencies.csv
175
share/gdal/s57attributes.csv
176
share/gdal/s57attributes_aml.csv
177
share/gdal/s57attributes_iw.csv
178
share/gdal/s57expectedinput.csv
179
share/gdal/s57objectclasses.csv
180
share/gdal/s57objectclasses_aml.csv
181
share/gdal/s57objectclasses_iw.csv
182
share/gdal/seed_2d.dgn
183
share/gdal/seed_3d.dgn
184
share/gdal/stateplane.csv
185
share/gdal/trailer.dxf
186
share/gdal/unit_of_measure.csv
187
@dirrm share/gdal
143
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osgeo
188
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/osgeo
189
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
144
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
190
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
145
%%DATADIR%%/GDALLogoBW.svg
191
@dirrm %%PYTHON_SITELIBDIR%%
146
%%DATADIR%%/GDALLogoColor.svg
192
@dirrm lib/python2.6
147
%%DATADIR%%/GDALLogoGS.svg
148
%%DATADIR%%/LICENSE.TXT
149
%%DATADIR%%/coordinate_axis.csv
150
%%DATADIR%%/cubewerx_extra.wkt
151
%%DATADIR%%/ecw_cs.wkt
152
%%DATADIR%%/ellipsoid.csv
153
%%DATADIR%%/epsg.wkt
154
%%DATADIR%%/esri_extra.wkt
155
%%DATADIR%%/gcs.csv
156
%%DATADIR%%/gcs.override.csv
157
%%DATADIR%%/gdal_datum.csv
158
%%DATADIR%%/gdalicon.png
159
%%DATADIR%%/gt_datum.csv
160
%%DATADIR%%/gt_ellips.csv
161
%%DATADIR%%/pcs.csv
162
%%DATADIR%%/pcs.override.csv
163
%%DATADIR%%/prime_meridian.csv
164
%%DATADIR%%/projop_wparm.csv
165
%%DATADIR%%/s57agencies.csv
166
%%DATADIR%%/s57attributes.csv
167
%%DATADIR%%/s57attributes_aml.csv
168
%%DATADIR%%/s57attributes_iw.csv
169
%%DATADIR%%/s57expectedinput.csv
170
%%DATADIR%%/s57objectclasses.csv
171
%%DATADIR%%/s57objectclasses_aml.csv
172
%%DATADIR%%/s57objectclasses_iw.csv
173
%%DATADIR%%/seed_2d.dgn
174
%%DATADIR%%/seed_3d.dgn
175
%%DATADIR%%/stateplane.csv
176
%%DATADIR%%/unit_of_measure.csv
177
@dirrm %%DATADIR%%

Return to bug 149072