SimpleGeographicCoordinateSystem

Package: inet.common.geometry.common

simple module SimpleGeographicCoordinateSystem

Provides a very simple and less accurate geographic coordinate system. The Earth is modeled as a sphere so you may get inaccuracies if you compare it to other wgs84 coordinates. Scene coordinates are in meter and are relative to the scene anchor point. It doesn’t support rotation so the X axis always points east and the Y axis always points south (to have the same handedness as the scene coordinate system)!

Usage is discouraged because of these inaccuracies. Use Wgs84AnchoredGeographicCoordinateSystem instead.

inet.common.geometry.common.SimpleGeographicCoordinateSystemSimpleGeographicCoordinateSystemsimple

Inheritance diagram

Extends

Name

Type

Description

SimpleModule

simple module

Base module for all INET simple modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

sceneLatitude

double

Latitude coordinate of the scene origin

sceneLongitude

double

Longitude coordinate of the scene origin

sceneAltitude

double

0m

Altitude coordinate of the scene origin

Properties

Name

Value

Description

class

SimpleGeographicCoordinateSystem

display

i=block/table2

Source code

//
// Provides a very simple and less accurate geographic coordinate system.
// The Earth is modeled as a sphere so you may get inaccuracies if you compare
// it to other wgs84 coordinates. Scene coordinates are in meter and are relative
// to the scene anchor point. It doesn't support rotation so the X axis always points
// east and the Y axis always points south (to have the same handedness as the scene coordinate system)!
//
// Usage is discouraged because of these inaccuracies.
// Use ~Wgs84AnchoredGeographicCoordinateSystem instead.
//
simple SimpleGeographicCoordinateSystem extends SimpleModule like IGeographicCoordinateSystem
{
    parameters:
        @class(SimpleGeographicCoordinateSystem);
        @display("i=block/table2");
        double sceneLatitude @unit(deg); // Latitude coordinate of the scene origin
        double sceneLongitude @unit(deg); // Longitude coordinate of the scene origin
        double sceneAltitude @unit(m) = default(0m); // Altitude coordinate of the scene origin
}

File: src/inet/common/geometry/common/GeographicCoordinateSystem.ned