Generated Elevation grid cells offset from projection grid

I was wondering if there was a reason why the Generated Elevation grid cells are all offset from the graticule (Marcator).
Attached you will see the 1km x 1km graticule and two individual 1km cells plus the elevation points. A zoomed version of one cell is attached. As you can see the individual cells are offset 350 m from a multiple of 1000m in Y and 10m in X. This is consistent across the entire grid.
The generated elevation grid has a pixel width of 1000 m x 1000 m. See attached metadata.
The depths are from a CSV file in lat/long and remain geographic. Depth units are in metres.
The workspace projection is Mercator (scaling lat 45N). As is the elevation grid layer.
The graticule display was set to "Current Projection Grid | Custom | 1000 ground units".
The graticule lines up perfectly at a multiple of 1000 m in X and Y.
The Elevation Grid Creation Options are attached below.
elevation_grid_options.png elevation_cell_meta.pngelevation_cell_offset.pngelevation_cell_offset_zoom.png
Attached you will see the 1km x 1km graticule and two individual 1km cells plus the elevation points. A zoomed version of one cell is attached. As you can see the individual cells are offset 350 m from a multiple of 1000m in Y and 10m in X. This is consistent across the entire grid.
The generated elevation grid has a pixel width of 1000 m x 1000 m. See attached metadata.
The depths are from a CSV file in lat/long and remain geographic. Depth units are in metres.
The workspace projection is Mercator (scaling lat 45N). As is the elevation grid layer.
The graticule display was set to "Current Projection Grid | Custom | 1000 ground units".
The graticule lines up perfectly at a multiple of 1000 m in X and Y.
The Elevation Grid Creation Options are attached below.
elevation_grid_options.png elevation_cell_meta.pngelevation_cell_offset.pngelevation_cell_offset_zoom.png
Comments
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
Global Mapper
Also, are you saying that if the depths are in Mercator and the top-left value is not a multiple of 1000 m all the cells will still be offset from the grid?
I realize I can force the grid bounds to specific corner values but that means manually calculating the next integer cell corner and editing the North, West, South and East values.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
Global Mapper
Of course if you export a grid instead of individual points whatever grid you defined is used and the source data is resampled from whatever collection of input files in whatever their native projections are to the target output projection system and grid definition. The default settings for all of those is to export to the smallest bounding box which incorporates all of the input data boxes (after reprojection) and maintain the full resolution of the most detailed layer. You can of course change the defaults though if you require a particular alignment.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
Global Mapper
Also, I noticed some elevations points do not have a cell at all. Any reason for that? So far I have found 4 or 5 points that did not produce a cell. At first I thought it was the min/max ones but that is not the case in the one attached.
elevation_cell_missing.png
For the alignment, I forgot there already is an option in the Advanced section of the General tab of the Configuration dialog labeled 'Export: Snap Export Bounds to Nearest Spacing Boundary'. That option should give you what you want.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
Global Mapper
Bingo that was it. I saw that option earlier but thought it only applied to exported ASCII data sets and not the grid layers.
The only caveat is that the cell centroid is snapped not the corner. (edit I think I found that option too).
Regarding the tightness I will try a few things but that is not critical at this point.
Regarding cell justification. I tried to enable the Advanced Option "Export: Snap Export Bounds to Pixel Boundary if Possible" so that the cells are top-left justified but it still anchors to the cell centroid. I am Ok leaving them cetre justified but if there is that option I may take advantage of it in the future.
elevation_cell_offset_snap.png
I will take some time to digest all this and if I have any follow Q's I will post here.