wblong / GeoReference

UE4 Plugin to provide a spatial reference between geo-coordinates and game-coordinates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GeoReference - UE4 Plugin

This plugin provides a reference between game coordinates and geo-coordinates. The core of the concept is the GeoRegion which defines latitude and longitude of the world origin. Additionally a map size in meter is given to calculate border coordinates in WSG84 and UTM. This information can be used to get georeferenced objects to the correct position or to define a region of interest (ROI) for ressource acquisition.

GeoReferenceActor

Has to be placed in the world to define the GeoReference. Is used by GeoLocatedActors to calculate game-coordinates.

GeoLocatedActor

Can be used to derive child blueprints which can be placed at a geo-coordinate which is automatically translated to game-coordinates. Needs a GeoReferenceActor placed in the world.

Building

This plugin uses UnrealGDAL, ue4cli and conan-ue4cli to build and manage the required GDAL libraries.

  • Download a Release of UnrealGDAL and place it in the Plugins directory or clone and follow instructions to build UnrealGDAL from source.

Usage

Add GeoReference to .uproject or .uplugin

"Plugins": [
  {
    "Name": "GeoReference",
    "Enabled": true
  }
]

Add build dependencies to your modules

PublicDependencyModuleNames.AddRange(
  new string[]
  {
    "GeoReference"
  }
);

Attribution

Contains two functions for UTM Zone calculation originally written by Chuck Gantz which he posted in an answer on the newsgroups sci.geo.geology and sci.geo.satellite-nav in 1998 (Archived conversation)

About

UE4 Plugin to provide a spatial reference between geo-coordinates and game-coordinates

License:MIT License


Languages

Language:C++ 97.1%Language:C# 2.9%