Template:Image And Raster Projections: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
Line 3: Line 3:
Most raster data has a projection and coordinates (X, Y, and possibly Z locations of each raster cell) associated with it.  The projection contains information about how to map the coordinates in the raster to actual horizontal and vertical locations on the surface of the earth.
Most raster data has a projection and coordinates (X, Y, and possibly Z locations of each raster cell) associated with it.  The projection contains information about how to map the coordinates in the raster to actual horizontal and vertical locations on the surface of the earth.


== What projection information is stored in GMS, SMS, and WMS and how is it determined? ==
== Storing Projection Information ==


When you load an image or a raster, GMS, SMS, or WMS determines the horizontal projection using [https://gdal.org/ GDAL], based on either a projection file (.prj) or internal information in the raster.
When you load an image or a raster, GMS, SMS, or WMS determines the horizontal projection using [https://gdal.org/ GDAL], based on either a projection file (.prj) or internal information in the raster.

Revision as of 19:23, 31 July 2018

Most raster data has a projection and coordinates (X, Y, and possibly Z locations of each raster cell) associated with it. The projection contains information about how to map the coordinates in the raster to actual horizontal and vertical locations on the surface of the earth.

Storing Projection Information

When you load an image or a raster, GMS, SMS, or WMS determines the horizontal projection using GDAL, based on either a projection file (.prj) or internal information in the raster.

If vertical projection information (vertical datum and units) is available for the image or raster, GMS, SMS, or WMS reads the information and stores it internally.

If you change any projection information for a raster loaded into GMS, SMS, or WMS, GMS, SMS, or WMS saves a new raster in GeoTiff format.

Occasionally, a raster will exist that does not contain elevation data (for example, concentration values). In this case, GMS, SMS, or WMS stores a metadata flag (read only by GMS, SMS, and WMS) with the raster stating that the raster does not have elevation units. When this metadata flag is found by GMS, SMS, or WMS, none of the vertical values are reprojected after reading the raster.

GMS, SMS, and WMS use GeoTiffs to export rasters with horizontal and vertical projection information for use in other GIS programs.

When loading a raster, if there are no vertical units found in the raster, and the vertical values are treated as elevations, GMS, SMS, or WMS prompts the user for the vertical units and exports a new raster as a GeoTiff. Also, if the vertical units do not match the horizontal units and the file being loaded is not a GeoTiff file, GMS, SMS, or WMS prompts the user to confirm the vertical units and exports a new raster as a GeoTiff.

How is this information saved when we generate a raster?

GMS, SMS, and WMS import rasters in a wide variety of supported formats. GMS, SMS, and WMS export rasters in either GeoTiff or Arc/Info ASCII Grid formats. No other formats are currently supported for exporting raster data.

When exporting a GeoTiff, the horizontal and vertical projection information is stored internally in the file. When saving an Arc/Info ASCII Grid file, the horizontal and vertical projection information is stored in a projection file (.prj) and metadata file. All the necessary horizontal and vertical projection information is read into GMS, SMS, or WMS (or other GIS programs such as ArcGIS) in these formats.

Related Topics