-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathGISData.h
52 lines (39 loc) · 1.48 KB
/
GISData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include "CoreMinimal.h"
#include "Math/Vector2D.h"
#include "GISData.generated.h"
UENUM(BlueprintType)
enum ECornerCoordinateType
{
// Corner coordinates are WGS84 (lat,lon) values
LatLon UMETA(DisplayName = "LatLon"),
// Corner coordinates are in the projected coordinate system of the raster data
Projected UMETA(DisplayName = "Projected"),
};
USTRUCT(BlueprintType)
struct LANDSCAPEGENEDITOR_API FGISData
{
GENERATED_BODY()
// The buffer of raw heightmap values (in metres) and the heightmap raster dimensions
UPROPERTY(BlueprintReadWrite)
TArray<float> HeightBuffer;
uint32 HeightBufferX, HeightBufferY;
// The buffer of colour values and the colour raster dimensions
UPROPERTY(BlueprintReadWrite)
TArray<uint8> ColorBuffer;
uint32 ColorBufferX, ColorBufferY;
UPROPERTY(BlueprintReadWrite)
TEnumAsByte<EPixelFormat> PixelFormat = EPixelFormat::PF_B8G8R8A8;
// The Well-Known Text (WKT) representation of the projected coordinate system used by the raster data
UPROPERTY(BlueprintReadWrite)
FString ProjectionWKT;
// Specifies whether the corner coordinates are WGS84 (lat,lon) or projected coordinates
UPROPERTY(BlueprintReadWrite)
TEnumAsByte<ECornerCoordinateType> CornerType = ECornerCoordinateType::LatLon;
// The coordinate of the upper-left corner of the raster data
UPROPERTY(BlueprintReadWrite)
FVector2D UpperLeft;
// The coordinate of the lower-right corner of the raster data
UPROPERTY(BlueprintReadWrite)
FVector2D LowerRight;
};