Graphics Reference
In-Depth Information
The translation from NZGD2000 into WGS84 rotated the basemap slightly, so the borders
of the map don't look good. Now, we need to trim the map to get rid of the unwanted bor-
ders. To do this, we'll use the gdal_warp command again, this time with a target extent:
gdalwarp -te 176.241 -38.2333 176.325 -38.1557
basemap_wgs84.tif basemap_trimmed.tif
Tip
You might need to adjust the lat/long values if you have selected slightly different bounds
when downloading the basemap. The corner coordinate values displayed by gdalinfo
will give you a clue as to what values have to be used.
The resulting file is a good raster basemap for us to use for our ForestTrails program:
Search WWH ::




Custom Search