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

(-)gdal/Makefile (-2 / +4 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	gdal
8
PORTNAME=	gdal
9
PORTVERSION=	1.5.0
9
PORTVERSION=	1.6.0
10
PORTREVISION=	2
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 269-272 Link Here
269
		' ${WRKSRC}/swig/python/GNUmakefile
268
		' ${WRKSRC}/swig/python/GNUmakefile
270
.endif
269
.endif
271
270
271
post-install:
272
	${INSTALL_MAN} ${FILESDIR}/gdalwarp.1 ${PREFIX}/man/man1/
273
272
.include <bsd.port.post.mk>
274
.include <bsd.port.post.mk>
(-)gdal/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (gdal-1.5.0.tar.gz) = ffbb024db521a002018cb5666bd6e60d
1
MD5 (gdal-1.6.0.tar.gz) = 0c53697511f489455f8b60e843986568
2
SHA256 (gdal-1.5.0.tar.gz) = 9ac75f8928aa649a70e2aa3ebda86e71e18acc295cd874c43d33a84ac11c1e91
2
SHA256 (gdal-1.6.0.tar.gz) = acdc2faf7496f8d8f4680347ce30fd3a2139b5c050f13dcd6ca8a3d7f6e418a4
3
SIZE (gdal-1.5.0.tar.gz) = 6167411
3
SIZE (gdal-1.6.0.tar.gz) = 7072689
(-)gdal/files/gdalwarp.1 (+105 lines)
Line 0 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 (-3 / +3 lines)
Lines 1-6 Link Here
1
--- ogr/GNUmakefile.orig	Fri Nov  9 11:11:24 2007
1
--- ogr/GNUmakefile.orig	2009-03-02 23:42:30.000000000 +0300
2
+++ ogr/GNUmakefile	Wed Dec 26 12:30:59 2007
2
+++ ogr/GNUmakefile	2009-03-02 23:42:35.000000000 +0300
3
@@ -15,7 +15,7 @@
3
@@ -19,7 +19,7 @@
4
 
4
 
5
 default:	lib
5
 default:	lib
6
 
6
 
(-)gdal/files/patch-ogr-ogrsf_frmts-kml-ogr2kmlgeometry.cpp (-11 lines)
Lines 1-11 Link Here
1
--- ogr/ogrsf_frmts/kml/ogr2kmlgeometry.cpp.orig	Mon Dec 17 13:49:31 2007
2
+++ ogr/ogrsf_frmts/kml/ogr2kmlgeometry.cpp	Wed Dec 26 11:43:43 2007
3
@@ -365,7 +365,7 @@
4
 
5
 CPLXMLNode* OGR_G_ExportEnvelopeToKMLTree( OGRGeometryH hGeometry )
6
 {
7
-    VALIDATE_POINTER1( hGeometry, "OGR_G_ExportEnvelopeToKMLTree", NULL );
8
+    //VALIDATE_POINTER1( hGeometry, "OGR_G_ExportEnvelopeToKMLTree", NULL );
9
 
10
     CPLXMLNode* psBox = NULL;
11
     CPLXMLNode* psCoord = NULL;
(-)gdal/files/patch-swig-python-GNUmakefile (-9 / +9 lines)
Lines 1-20 Link Here
1
--- swig/python/GNUmakefile.orig	2007-11-26 16:02:20.000000000 +0800
1
--- swig/python/GNUmakefile.orig	2008-05-31 11:41:25.000000000 +0400
2
+++ swig/python/GNUmakefile	2008-02-13 14:27:20.000000000 +0800
2
+++ swig/python/GNUmakefile	2009-03-03 00:05:31.000000000 +0300
3
@@ -43,7 +43,7 @@
3
@@ -47,7 +47,7 @@
4
 generate: ${WRAPPERS}
4
 generate: ${WRAPPERS}
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
@@ -51,7 +51,7 @@
12
@@ -55,7 +55,7 @@
13
 install:
13
 install:
14
 
14
 
15
 ifeq ($(PY_HAVE_SETUPTOOLS),1)
15
 ifeq ($(PY_HAVE_SETUPTOOLS),1)
16
-	python setup.py install 
16
-	$(PYTHON) setup.py install 
17
+	env %%MAKE_ENV%% python setup.py easy_install -O 1 -N -S %%PYTHON_SITELIBDIR%% -d %%PYEASYINSTALL_SITELIBDIR%% -s %%PYEASYINSTALL_BINDIR%% %%WRKSRC%%/swig/python/dist/%%PYEASYINSTALL_EGG%%
17
+	env %%MAKE_ENV%% python setup.py easy_install -O 1 -N -S %%PYTHON_SITELIBDIR%% -d %%PYEASYINSTALL_SITELIBDIR%% -s %%PYEASYINSTALL_BINDIR%% %%WRKSRC%%/swig/python/dist/%%PYEASYINSTALL_EGG%%
18
 else
18
 else
19
 	python setup.py install --prefix=$(DESTDIR)$(prefix)
19
 	$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
20
 endif
20
 endif
(-)gdal/pkg-plist (-1 / +14 lines)
Lines 8-15 Link Here
8
bin/gdal_contour
8
bin/gdal_contour
9
bin/gdal_grid
9
bin/gdal_grid
10
bin/gdal_merge.py
10
bin/gdal_merge.py
11
bin/gdal_polygonize.py
12
bin/gdal_proximity.py
11
bin/gdal_rasterize
13
bin/gdal_rasterize
12
bin/gdal_retile.py
14
bin/gdal_retile.py
15
bin/gdal_sieve.dox
16
bin/gdal_sieve.py
13
bin/gdal_translate
17
bin/gdal_translate
14
bin/gdaladdo
18
bin/gdaladdo
15
bin/gdalchksum.py
19
bin/gdalchksum.py
Lines 28-53 Link Here
28
bin/ogrtindex
32
bin/ogrtindex
29
bin/pct2rgb.py
33
bin/pct2rgb.py
30
bin/rgb2pct.py
34
bin/rgb2pct.py
35
bin/testepsg
31
include/cpl_config.h
36
include/cpl_config.h
32
include/cpl_conv.h
37
include/cpl_conv.h
33
include/cpl_csv.h
38
include/cpl_csv.h
34
include/cpl_error.h
39
include/cpl_error.h
40
include/cpl_hash_set.h
35
include/cpl_http.h
41
include/cpl_http.h
36
include/cpl_list.h
42
include/cpl_list.h
37
include/cpl_minixml.h
43
include/cpl_minixml.h
44
include/cpl_minizip_ioapi.h
45
include/cpl_minizip_unzip.h
38
include/cpl_multiproc.h
46
include/cpl_multiproc.h
39
include/cpl_odbc.h
47
include/cpl_odbc.h
40
include/cpl_port.h
48
include/cpl_port.h
49
include/cpl_quad_tree.h
41
include/cpl_string.h
50
include/cpl_string.h
42
include/cpl_vsi.h
51
include/cpl_vsi.h
43
include/cpl_vsi_virtual.h
52
include/cpl_vsi_virtual.h
44
include/cpl_win32ce_api.h
53
include/cpl_win32ce_api.h
45
include/cpl_wince.h
54
include/cpl_wince.h
55
include/cplkeywordparser.h
46
include/gdal.h
56
include/gdal.h
47
include/gdal_alg.h
57
include/gdal_alg.h
58
include/gdal_alg_priv.h
48
include/gdal_frmts.h
59
include/gdal_frmts.h
49
include/gdal_pam.h
60
include/gdal_pam.h
50
include/gdal_priv.h
61
include/gdal_priv.h
62
include/gdal_proxy.h
51
include/gdal_rat.h
63
include/gdal_rat.h
52
include/gdal_version.h
64
include/gdal_version.h
53
include/gdal_vrt.h
65
include/gdal_vrt.h
Lines 71-77 Link Here
71
lib/libgdal.a
83
lib/libgdal.a
72
lib/libgdal.la
84
lib/libgdal.la
73
lib/libgdal.so
85
lib/libgdal.so
74
lib/libgdal.so.13
86
lib/libgdal.so.14
75
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
87
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
76
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
88
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
77
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
89
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
Lines 134-139 Link Here
134
%%DATADIR%%/GDALLogoColor.svg
146
%%DATADIR%%/GDALLogoColor.svg
135
%%DATADIR%%/GDALLogoGS.svg
147
%%DATADIR%%/GDALLogoGS.svg
136
%%DATADIR%%/LICENSE.TXT
148
%%DATADIR%%/LICENSE.TXT
149
%%DATADIR%%/coordinate_axis.csv
137
%%DATADIR%%/cubewerx_extra.wkt
150
%%DATADIR%%/cubewerx_extra.wkt
138
%%DATADIR%%/ecw_cs.wkt
151
%%DATADIR%%/ecw_cs.wkt
139
%%DATADIR%%/ellipsoid.csv
152
%%DATADIR%%/ellipsoid.csv

Return to bug 132281