Skip to content

Commit 7d1e615

Browse files
authored
Merge pull request #892 from geographika/gdal-updates
GDAL Quickstart and Overview updates
2 parents 94df061 + 358fe46 commit 7d1e615

File tree

6 files changed

+246
-223
lines changed

6 files changed

+246
-223
lines changed

doc/overview/gdal_overview.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Core Features
3535
* Command-line utilities for data translation, image warping, subsetting, and various other common tasks
3636
* Highly efficient raster data access, taking advantage of tiling and overviews
3737
* Support for large files - larger than 4GB
38-
* Library access from Python, Java, C#, Ruby, VB6 and Perl
39-
* Coordinate system engine built on PROJ.4 and OGC Well Known Text coordinate system descriptions
38+
* Library access from Python, Java, and C#
39+
* Coordinate system engine built on PROJ and OGC Well Known Text coordinate system descriptions
4040

4141
Popular Supported Formats
4242
--------------------------------------------------------------------------------
@@ -45,8 +45,8 @@ GDAL supports over 140 raster formats, and OGR over 80 vector formats.
4545

4646
These include:
4747

48-
* **Raster:** GeoTIFF, Erdas Imagine, SDTS, ESRI Grids, ECW, MrSID, JPEG2000, DTED, NITF, GeoPackage and more ...
49-
* **Vector:** GeoPackage, ESRI Shapefile, GML, GeoJSON, AutoCAD DWG, MapInfo (tab and mid/mif), ESRI Coverages, ESRI Personal Geodatabase, DGN, PostGIS, Oracle Spatial, and more ...
48+
* **Raster:** GeoTIFF / COG, HDF, NetCDF, GeoPackage, JPEG2000, ECW, ENVI, KEA, MrSID, DTED, NITF and more ...
49+
* **Vector:** GeoPackage, ESRI Shapefile, GeoJSON, PostGIS, (Geo)Parquet, ESRI File Geodatabase, FlatGeobuf, GML, AutoCAD DWG, MapInfo, DGN, Oracle Spatial, and more ...
5050

5151
Implemented Standards
5252
--------------------------------------------------------------------------------
@@ -64,7 +64,7 @@ Details
6464

6565
**Supported Platforms:** Windows, Linux, Mac
6666

67-
**API Interfaces:** C, C++, Python, Java, C#, Ruby, VB6 and Perl
67+
**API Interfaces:** C, C++, Python, Java, C#
6868

6969
**Support:** https://lists.osgeo.org/mailman/listinfo/gdal-dev, https://www.osgeo.org/service-providers/
7070

doc/quickstart/gdal_quickstart.rst

Lines changed: 59 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ directory.
5656
You will then find a NaturalEarth Raster file and a .tfw World-file at:
5757
::
5858

59-
ls /home/user/gdal_natural_earth/HYP_50M_SR_W.*
59+
cd /home/user/gdal_natural_earth
60+
ls HYP_50M_SR_W.*
6061

6162

6263
.. tip:: Open the file with a Desktop GIS like QGIS, and have a look.
@@ -68,28 +69,35 @@ Get information about the raster data with gdalinfo
6869
gdalinfo HYP_50M_SR_W.tif
6970
Driver: GTiff/GeoTIFF
7071
Files: HYP_50M_SR_W.tif
71-
HYP_50M_SR_W.tfw
7272
Size is 10800, 5400
73-
Coordinate System is `'
73+
Coordinate System is:
74+
GEOGCRS["WGS 84",
75+
ENSEMBLE["World Geodetic System 1984 ensemble",
76+
...
7477
Origin = (-179.999999999999972,90.000000000000000)
7578
Pixel Size = (0.033333333333330,-0.033333333333330)
7679
Metadata:
77-
TIFFTAG_SOFTWARE=Adobe Photoshop CS3 Macintosh
78-
TIFFTAG_DATETIME=2009:09:19 10:13:17
80+
TIFFTAG_SOFTWARE=Adobe Photoshop CS5 Macintosh
81+
TIFFTAG_DATETIME=2012:07:16 09:16:14
7982
TIFFTAG_XRESOLUTION=342.85699
8083
TIFFTAG_YRESOLUTION=342.85699
8184
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
85+
AREA_OR_POINT=Area
8286
Image Structure Metadata:
87+
SOURCE_COLOR_SPACE=YCbCr
88+
COMPRESSION=YCbCr JPEG
8389
INTERLEAVE=PIXEL
90+
JPEG_QUALITY=90
91+
JPEGTABLESMODE=3
8492
Corner Coordinates:
85-
Upper Left (-180.0000000, 90.0000000)
86-
Lower Left (-180.0000000, -90.0000000)
87-
Upper Right ( 180.0000000, 90.0000000)
88-
Lower Right ( 180.0000000, -90.0000000)
89-
Center ( -0.0000000, 0.0000000)
90-
Band 1 Block=10800x1 Type=Byte, ColorInterp=Red
91-
Band 2 Block=10800x1 Type=Byte, ColorInterp=Green
92-
Band 3 Block=10800x1 Type=Byte, ColorInterp=Blue
93+
Upper Left (-180.0000000, 90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"N)
94+
Lower Left (-180.0000000, -90.0000000) (180d 0' 0.00"W, 90d 0' 0.00"S)
95+
Upper Right ( 180.0000000, 90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"N)
96+
Lower Right ( 180.0000000, -90.0000000) (180d 0' 0.00"E, 90d 0' 0.00"S)
97+
Center ( -0.0000000, 0.0000000) ( 0d 0' 0.00"W, 0d 0' 0.00"N)
98+
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
99+
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
100+
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
93101

94102
Note:
95103
* Driver is "GTiff/GeoTIFF"
@@ -103,19 +111,21 @@ Note:
103111
Simple format translation
104112
=========================
105113

106-
First get to know your drivers. The `--formats` commandline switch of
114+
First get to know your drivers. The `--formats` command line switch of
107115
gdal_translate can be used to see a list of available format drivers.
108116

109-
Each format reports if it is
110-
* read only (ro),
111-
* read/write (rw) or
112-
* read/write/update (rw+).
117+
Each format reports if it supports the following features:
118+
* read only (ro)
119+
* read/write (rw)
120+
* read/write/update (rw+)
121+
* supports virtual file systems (v)
122+
* supports subdatasets (s)
113123

114124
::
115125

116126
gdal_translate --formats
117127

118-
The `--format` commandline switch can be used to query details about a
128+
The `--format` command line switch can be used to query details about a
119129
particular driver, including creation options, and permitted data types.
120130

121131
::
@@ -193,31 +203,29 @@ will learn more about ogrinfo later in this tutorial)
193203
using driver `ESRI Shapefile' successful.
194204

195205
Layer name: index_natural_earth
206+
Metadata:
207+
DBF_DATE_LAST_UPDATE=2025-05-13
196208
Geometry: Polygon
197209
Feature Count: 2
198210
Extent: (-180.000000, -90.000000) - (180.000000, 90.000000)
199-
Layer SRS WKT: (unknown)
200-
location: String (255.0)
211+
Layer SRS WKT:
212+
GEOGCRS["WGS 84",
213+
...
214+
location: String (254.0)
201215
OGRFeature(index_natural_earth):0
202-
location (String) = east.tif
203-
POLYGON ((-0.00000000001796 90.0,179.999999999964047 90.0,179.999999999964047 -89.999999999982009,-0.00000000001796 -89.999999999982009,-0.00000000001796 90.0))
216+
location (String) = west.tif
217+
POLYGON ((-180 90.0,-0.000000000017963 90.0,-0.000000000017963 -89.999999999982,-180 -89.999999999982,-180 90.0))
204218

205219
OGRFeature(index_natural_earth):1
206-
location (String) = west.tif
207-
POLYGON ((-179.999999999999972 90.0,-0.00000000001796 90.0,-0.00000000001796 -89.999999999982009,-179.999999999999972 -89.999999999982009,-179.999999999999972 90.0))
220+
location (String) = east.tif
221+
POLYGON ((-0.000000000017963 90.0,179.999999999964 90.0,179.999999999964 -89.999999999982,-0.000000000017963 -89.999999999982,-0.000000000017963 90.0))
208222

209223

210224
Reprojecting
211225
============
212226

213227
For this process we assume that HYP_50M_SR_W.tif has been properly
214-
created with bounds. As we saw before with gdainfo no coordinate system
215-
was set. So we assign WGS84 as coordinate system to the image in the
216-
first step.
217-
218-
::
219-
220-
gdal_translate -a_srs WGS84 HYP_50M_SR_W.tif HYP_50M_SR_W_4326.tif
228+
created with bounds.
221229

222230
The gdalwarp command can be used to reproject images. Here we reproject
223231
the WGS84 geographic image to the Mercator projection:
@@ -285,18 +293,19 @@ Get information about the vector data with ogrinfo
285293
ogrinfo -ro /home/user/gdal_natural_earth
286294
INFO: Open of `/home/user/gdal_natural_earth'
287295
using driver `ESRI Shapefile' successful.
288-
1: ne_10m_populated_places (3D Point)
289-
2: ne_10m_geography_regions_polys (3D Polygon)
290-
3: ne_10m_admin_1_states_provinces_shp (3D Polygon)
291-
4: ne_10m_urban_areas (3D Polygon)
292-
5: ne_10m_geography_marine_polys (3D Polygon)
293-
6: ne_10m_land (3D Polygon)
294-
7: ne_10m_geography_regions_elevation_points (3D Point)
295-
8: ne_10m_admin_0_countries (3D Polygon)
296-
9: ne_10m_rivers_lake_centerlines (3D Line String)
297-
10: ne_10m_lakes (3D Polygon)
298-
11: ne_10m_geography_regions_points (3D Point)
299-
12: ne_10m_ocean (3D Polygon)
296+
1: ne_10m_geography_regions_polys (Polygon)
297+
2: ne_10m_populated_places (Point)
298+
3: ne_10m_urban_areas (Polygon)
299+
4: ne_10m_geography_marine_polys (Polygon)
300+
5: ne_10m_admin_1_states_provinces_shp (Polygon)
301+
6: ne_10m_admin_0_countries (Polygon)
302+
7: ne_10m_ocean (Polygon)
303+
8: ne_10m_rivers_lake_centerlines (Line String)
304+
9: ne_10m_land (Polygon)
305+
10: index_natural_earth (Polygon)
306+
11: ne_10m_geography_regions_elevation_points (Point)
307+
12: ne_10m_geography_regions_points (Point)
308+
13: ne_10m_lakes (Polygon)
300309

301310

302311
Get a summary about your data with ogrinfo together with `-so`.
@@ -308,15 +317,15 @@ Get a summary about your data with ogrinfo together with `-so`.
308317
using driver `ESRI Shapefile' successful.
309318

310319
Layer name: ne_10m_admin_0_countries
311-
Geometry: 3D Polygon
320+
Metadata:
321+
DBF_DATE_LAST_UPDATE=2012-11-05
322+
Geometry: Polygon
312323
Feature Count: 254
313324
Extent: (-180.000000, -90.000000) - (180.000000, 83.634101)
314325
Layer SRS WKT:
315-
GEOGCS["GCS_WGS_1984",
316-
DATUM["WGS_1984",
317-
SPHEROID["WGS_84",6378137.0,298.257223563]],
318-
PRIMEM["Greenwich",0.0],
319-
UNIT["Degree",0.0174532925199433]]
326+
GEOGCRS["WGS 84",
327+
DATUM["World Geodetic System 1984",
328+
...
320329
scalerank: Integer (4.0)
321330
featurecla: String (30.0)
322331
labelrank: Real (16.6)

locale/en/LC_MESSAGES/overview/gdal_overview.po

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: OSGeoLive 13.0\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-09-26 14:03+0000\n"
11+
"POT-Creation-Date: 2025-05-13 22:44+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=utf-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
18-
"Generated-By: Babel 2.16.0\n"
18+
"Generated-By: Babel 2.17.0\n"
1919

2020
#: ../../build/doc/overview/gdal_overview.rst:18
2121
msgid "GDAL/OGR"
@@ -72,13 +72,13 @@ msgid "Support for large files - larger than 4GB"
7272
msgstr ""
7373

7474
#: ../../build/doc/overview/gdal_overview.rst:48
75-
msgid "Library access from Python, Java, C#, Ruby, VB6 and Perl"
75+
msgid "Library access from Python, Java, and C#"
7676
msgstr ""
7777

7878
#: ../../build/doc/overview/gdal_overview.rst:49
7979
msgid ""
80-
"Coordinate system engine built on PROJ.4 and OGC Well Known Text "
81-
"coordinate system descriptions"
80+
"Coordinate system engine built on PROJ and OGC Well Known Text coordinate"
81+
" system descriptions"
8282
msgstr ""
8383

8484
#: ../../build/doc/overview/gdal_overview.rst:52
@@ -95,15 +95,15 @@ msgstr ""
9595

9696
#: ../../build/doc/overview/gdal_overview.rst:58
9797
msgid ""
98-
"**Raster:** GeoTIFF, Erdas Imagine, SDTS, ESRI Grids, ECW, MrSID, "
99-
"JPEG2000, DTED, NITF, GeoPackage and more ..."
98+
"**Raster:** GeoTIFF / COG, HDF, NetCDF, GeoPackage, JPEG2000, ECW, ENVI, "
99+
"KEA, MrSID, DTED, NITF and more ..."
100100
msgstr ""
101101

102102
#: ../../build/doc/overview/gdal_overview.rst:59
103103
msgid ""
104-
"**Vector:** GeoPackage, ESRI Shapefile, GML, GeoJSON, AutoCAD DWG, "
105-
"MapInfo (tab and mid/mif), ESRI Coverages, ESRI Personal Geodatabase, "
106-
"DGN, PostGIS, Oracle Spatial, and more ..."
104+
"**Vector:** GeoPackage, ESRI Shapefile, GeoJSON, PostGIS, (Geo)Parquet, "
105+
"ESRI File Geodatabase, FlatGeobuf, GML, AutoCAD DWG, MapInfo, DGN, Oracle"
106+
" Spatial, and more ..."
107107
msgstr ""
108108

109109
#: ../../build/doc/overview/gdal_overview.rst:62
@@ -139,7 +139,7 @@ msgid "**Supported Platforms:** Windows, Linux, Mac"
139139
msgstr ""
140140

141141
#: ../../build/doc/overview/gdal_overview.rst:77
142-
msgid "**API Interfaces:** C, C++, Python, Java, C#, Ruby, VB6 and Perl"
142+
msgid "**API Interfaces:** C, C++, Python, Java, C#"
143143
msgstr ""
144144

145145
#: ../../build/doc/overview/gdal_overview.rst:79
@@ -156,11 +156,11 @@ msgstr ""
156156
msgid ":doc:`Quickstart documentation <../quickstart/gdal_quickstart>`"
157157
msgstr ""
158158

159-
#: ../../build/doc/<rst_epilog>:13
159+
#: ../../build/doc/<rst_epilog>:11
160160
msgid "vmdk"
161161
msgstr ""
162162

163-
#: ../../build/doc/<rst_epilog>:16
163+
#: ../../build/doc/<rst_epilog>:14
164164
msgid "nologo"
165165
msgstr ""
166166

0 commit comments

Comments
 (0)