` `
The Georeferencer Plugin is a tool for generating world files for rasters. It allows you to reference rasters to geographic or projected coordinate systems by creating a new GeoTiff or by adding a world file to the existing image. The basic approach to georeferencing a raster is to locate points on the raster for which you can accurately determine coordinates.
Кнопки панели инструментов модуля
Table Georeferencer: Georeferencer Tools
As X and Y coordinates (DMS (dd mm ss.ss), DD (dd.dd) or projected coordinates (mmmm.mm)), which correspond with the selected point on the image, two alternative procedures can be used:
Стандартная процедура привязки растровых изображений подразумевает выбор множественных точек на растре, обозначение их координат или выбор соответствующего типа преобразования. Исходя из введённых параметров и данных, модуль вычислит параметры файла привязки. Чем больше координат будет введено, тем точнее будет результат.
The first step is to start QGIS, load the Georeferencer Plugin (see The Plugins Dialog) and click on Raster ‣ Georeferencer , which appears in the QGIS menu bar. The Georeferencer Plugin dialog appears as shown in figure_georeferencer_dialog.
For this example, we are using a topo sheet of South Dakota from SDGS. It can later be visualized together with the data from the GRASS spearfish60 location. You can download the topo sheet here: http://grass.osgeo.org/sampledata/spearfish_toposheet.tar.gz.
Georeferencer Plugin Dialog
button. The raster will show up in the main working
area of the dialog. Once the raster is loaded, we can start to enter reference
points.
Add Point button, add points to the
main working area and enter their coordinates (see Figure figure_georeferencer_add_points).
For this procedure you have three options:Щелкнуть мышью по точке на растровом изображении и ввести координаты X и Y вручную.
From map canvas button to add the X and Y coordinates with the help of a
georeferenced map already loaded in the QGIS map canvas.
button, you can move the GCPs in both windows,
if they are at the wrong place.
Add points to the raster image
The points that are added to the map will be stored in a separate text file
([filename].points) usually together with the raster image. This allows
us to reopen the Georeferencer plugin at a later date and add new points or delete
existing ones to optimize the result. The points file contains values of the
form: mapX, mapY, pixelX, pixelY. You can use the
Load GCP points and
Save GCP points as buttons to
manage the files.
После того, как контрольные точки добавлены на растровое изображение, необходимо определить параметры преобразования для привязки.
Defining the georeferencer transformation settings
Depending on how many ground control points you have captured, you may want to use different transformation algorithms. Choice of transformation algorithm is also dependent on the type and quality of input data and the amount of geometric distortion that you are willing to introduce to the final result.
Currently, the following Transformation types are available:
Трансформация Хельмерта совершает простые трансформации с изменением масштаба и вращением.
Алгоритм тонкостенного сплайна — более современный метод привязки, дающий возможность ввода в данные местных деформаций. Данный алгоритм очень полезен, когда необходимо привязать растры с низким качеством изображения.
Проективная трансформация — линейное вращение и сдвиг растра.
Выбранный тип пересчёта будет, скорее всего, зависеть от исходных данных и конкретной цели операции. Если вы не желаете менять совокупную информацию изображения, вам, возможно, подойдет метод «ближайший сосед», тогда как «кубический» пересчет приведет к более сглаженному результату.
It is possible to choose between five different resampling methods:
Ближайший сосед
Линейный
Кубический
Кубический сплайн
Ланцоша
Существует несколько параметров, которые необходимо задать для получения привязанного растра.
Create world file checkbox is only available if you
decide to use the linear transformation type, because this means that the
raster image actually won’t be transformed. In this case, the
Output raster field is not activated, because only a new world file will
be created.
Set Target Resolution
checkbox and define the pixel resolution of the output raster. Default horizontal
and vertical resolution is 1.
Use 0 for transparency when needed can be activated,
if pixels with the value 0 shall be visualized transparent. In our example
toposheet, all white areas would be transparent.
Load in QGIS when done loads the output raster
automatically into the QGIS map canvas when the transformation is done.Clicking on the Raster properties option in the Settings menu opens the Layer properties dialog of the raster file that you want to georeference.
After all GCPs have been collected and all transformation settings are defined,
just press the
Start georeferencing button to create
the new georeferenced raster.