Tile Server: Difference between revisions

From MediaWiki
Jump to navigation Jump to search
(Created page with "= Mapnik = = mod_tile = = renderd = = Coordinate Reference Systems and Projections = The data stored in the database and in raster form is very precisely referenced using Canada's official coordinate reference system, NAD83(CSRS) and vertical datum, CGVD2013. Some elevations are measured with respect to the local chart datum, and are calculated using a shift grid from CGVD2013 heights. Due to isostatic rebound and plate tectonics, all positions move with respect to...")
 
Line 9: Line 9:
The data stored in the database and in raster form is very precisely referenced using Canada's official coordinate reference system, NAD83(CSRS) and vertical datum, CGVD2013. Some elevations are measured with respect to the local chart datum, and are calculated using a shift grid from CGVD2013 heights.
The data stored in the database and in raster form is very precisely referenced using Canada's official coordinate reference system, NAD83(CSRS) and vertical datum, CGVD2013. Some elevations are measured with respect to the local chart datum, and are calculated using a shift grid from CGVD2013 heights.


Due to isostatic rebound and plate tectonics, all positions move with respect to the reference frame (ITRF/WGS84), so they must be accompanied by an epoch, or date, with describes the date at which they are comparable. Positions collected in June 2023, for example, are given the epoch 2023.5, and transformed to 2010.0, which is the standard epoch used by a variety of organisations with in the federal public service (the province of British Columbia uses 1997.0 for Vancouver Island and 2002.0 for the mainland).
Due to isostatic rebound and plate tectonics, all positions move with respect to the reference frame (ITRF/WGS84), so they must be accompanied by an epoch, or date, with describes the date at which they are comparable. Positions collected in June 2023, for example, are given the epoch 2023.5, and transformed to 2010.0, which is the standard reference epoch used by a variety of organisations with in the federal public service (the province of British Columbia uses 1997.0 for Vancouver Island and 2002.0 for the mainland).


The Mapnik configuration file handles these transformations for rasters using proj, the official shift grid provided by NRCAN and a pair of epochs. The following proj configuration is for a map of a Calvert Island beach located in UTM zone 9, produced in June, 2023.
By default, mosaics, point clouds, digital surface models and other products derived from UAS imagery are projected into the Universal Transverse Mercator projection. For display on a Web map, these are projected again into the Web- or Pseudo Mercator projection.  


The Mapnik configuration for each layer is an XML file which declares both a map and one or more layers. The layers are transformed from their own CRS and projection to those of the map. The transformations are declared using [https://proj.org/en/9.3/ proj], the official [https://webapp.csrs-scrs.nrcan-rncan.gc.ca/geod/tools-outils/nad83-docs.php velocity grid] provided by NRCAN and a pair of epochs.
The following layer configuration is for a map of a Calvert Island beach located in UTM zone 9, produced in June, 2023.
     +proj=utm +zone=9 +ellps=GRS80 +units=m +no_defs +type=crs +grids=ca_nrc_NAD83v70VG.tif +t_final=2010.0 +t_epoch=2023.5
     +proj=utm +zone=9 +ellps=GRS80 +units=m +no_defs +type=crs +grids=ca_nrc_NAD83v70VG.tif +t_final=2010.0 +t_epoch=2023.5


Line 21: Line 24:
* The <code>t_final</code> parameter provides the target epoch to which the data will be transformed using the grid shift file, in this case the standard epoch, 2010.0.
* The <code>t_final</code> parameter provides the target epoch to which the data will be transformed using the grid shift file, in this case the standard epoch, 2010.0.


The display map is declared as the standard "Web Mercator" projection (EPSG:3857, formerly EPGS:900913):
The map configuration is declared as the standard "Web Mercator" projection (EPSG:3857, formerly EPGS:900913):


     +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +wktext +no_defs +over
     +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +wktext +no_defs +over


The tile generator will use this pair of configurations, transforming the map from one to the other so that it can be displayed with a high degree of precision.
The tile generator will use this pair of configurations, transforming the map from one to the other so that it can be displayed with a high degree of precision.

Revision as of 16:59, 10 November 2023

Mapnik

mod_tile

renderd

Coordinate Reference Systems and Projections

The data stored in the database and in raster form is very precisely referenced using Canada's official coordinate reference system, NAD83(CSRS) and vertical datum, CGVD2013. Some elevations are measured with respect to the local chart datum, and are calculated using a shift grid from CGVD2013 heights.

Due to isostatic rebound and plate tectonics, all positions move with respect to the reference frame (ITRF/WGS84), so they must be accompanied by an epoch, or date, with describes the date at which they are comparable. Positions collected in June 2023, for example, are given the epoch 2023.5, and transformed to 2010.0, which is the standard reference epoch used by a variety of organisations with in the federal public service (the province of British Columbia uses 1997.0 for Vancouver Island and 2002.0 for the mainland).

By default, mosaics, point clouds, digital surface models and other products derived from UAS imagery are projected into the Universal Transverse Mercator projection. For display on a Web map, these are projected again into the Web- or Pseudo Mercator projection.

The Mapnik configuration for each layer is an XML file which declares both a map and one or more layers. The layers are transformed from their own CRS and projection to those of the map. The transformations are declared using proj, the official velocity grid provided by NRCAN and a pair of epochs.

The following layer configuration is for a map of a Calvert Island beach located in UTM zone 9, produced in June, 2023.

   +proj=utm +zone=9 +ellps=GRS80 +units=m +no_defs +type=crs +grids=ca_nrc_NAD83v70VG.tif +t_final=2010.0 +t_epoch=2023.5
  • The +proj and zone parameters indicate that the map is in the UTM projection, zone 9.
  • The ellps parameter gives the ellipsoid as GRS80, which is commonly used with WGS84, the coordinate reference frame used by the GPS system.
  • The grid parameter provides the name of a grid shift file, wherein each pixel represents the distance and direction a coordinate should be displaced per unit time.
  • The t_epoch parameter provides the date of origin of the data, in this case, the date it was produced.
  • The t_final parameter provides the target epoch to which the data will be transformed using the grid shift file, in this case the standard epoch, 2010.0.

The map configuration is declared as the standard "Web Mercator" projection (EPSG:3857, formerly EPGS:900913):

   +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +wktext +no_defs +over

The tile generator will use this pair of configurations, transforming the map from one to the other so that it can be displayed with a high degree of precision.