Template:Image And Raster Projections: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Image And Raster Projections==
== Introduction ==
 
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.
 
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.
When loading an image or a raster, GMS, SMS, or WMS (referred to collectively as XMS) determines the horizontal projection using [https://gdal.org/ GDAL]. This will be based on either a projection file (*.prj) or internal projection information in the raster.


GMS, SMS, and WMS use GeoTiffs to export rasters with horizontal and vertical projection information for use in other GIS programs.
If vertical projection information (vertical datum and units) is available for the image or raster, XMS reads the information and stores it internally.


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.
If changing any projection information for a raster loaded into the a project, the XMS software saves a new raster in GeoTiff format.


== How is this information saved when we generate a raster? ==
Occasionally, a raster will exist that does not contain elevation data (for example, concentration values). In this case, XMS 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 XMS, none of the vertical values are reprojected after reading the 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.
XMS uses GeoTiffs to export rasters with horizontal and vertical projection information for use in other GIS programs.


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.
When loading a raster, if there are no vertical units found in the raster, and the vertical values are treated as elevations, XMS 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, XMS prompts the user to confirm the vertical units and exports a new raster as a GeoTiff.


==Related Topics==
=== Saving Projection Information with a Raster ===
* [[Import from Web]]
* [[Get Online Maps]]


{{Navbox GMS}}
XMS imports rasters in a wide variety of supported formats.  XMS exports rasters in either GeoTiff or Arc/Info ASCII Grid formats.  No other formats are currently supported for exporting raster data.
{{Navbox SMS}}
{{WMSMain}}


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 XMS (or other GIS programs such as ArcGIS) in these formats.<noinclude>
[[Category:Importing Data|G]]
[[Category:Importing Data|G]]
[[Category:General Information|G]]
[[Category:General Information|G]]
Line 37: Line 26:
[[Category:Raster]]
[[Category:Raster]]
[[Category:GIS]]
[[Category:GIS]]
[[Category:Needs Update]]
[[Category:Projections]]</noinclude>

Latest revision as of 15:58, 14 November 2018

Image And Raster Projections

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 loading an image or a raster, GMS, SMS, or WMS (referred to collectively as XMS) determines the horizontal projection using GDAL. This will be based on either a projection file (*.prj) or internal projection information in the raster.

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

If changing any projection information for a raster loaded into the a project, the XMS software 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, XMS 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 XMS, none of the vertical values are reprojected after reading the raster.

XMS uses 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, XMS 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, XMS prompts the user to confirm the vertical units and exports a new raster as a GeoTiff.

Saving Projection Information with a Raster

XMS imports rasters in a wide variety of supported formats. XMS exports 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 XMS (or other GIS programs such as ArcGIS) in these formats.