8000 GetVirtualHeightMapInBBox does not work when DEMFileRegistrationMode is Cell · Issue #97 · dem-net/DEM.Net · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
GetVirtualHeightMapInBBox does not work when DEMFileRegistrationMode is Cell #97
Open
@g0ro

Description

@g0ro

Trying to get heightmap in bbox, using GeoTiff dataset with Cell file format, fails when bbox is partially covered.

RasterService.GetVirtualHeightMapInBBox(...) returns a hightmap half pixel shifted. This results in incorrect height map when merging tilesHeightMap in ElevationService.GetHeightMap(....)

When DEMFileRegistrationMode is Cell, we should add (metadata.pixelSizeY / 2d) to metadata.DataEndLat, and (metadata.pixelSizeX / 2d) to metadata.DataStartLon
(File:

double latitude = metadata.DataEndLat + (metadata.pixelSizeY * y);
, Lines: 560, 566, 567, 576)
Reference:
double endLat = metadata.DataEndLat + metadata.pixelSizeY / 2d;

< 48B6 /div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0