GeoData

The GEODATA entity is associated to the Modelspace object.

Subclass of

ezdxf.entities.DXFObject

DXF type

'GEODATA'

Factory function

ezdxf.layouts.Modelspace.new_geodata()

Required DXF version

R2010 ('AC1024')

See also

using_geodata.py

Warning

Do not instantiate object classes by yourself - always use the provided factory functions!

class ezdxf.entities.GeoData
dxf.version

1

R2009

2

R2010

dxf.coordinate_type

0

unknown

1

local grid

2

projected grid

3

geographic (latitude/longitude)

dxf.block_record_handle

Handle of host BLOCK_RECORD table entry, in general the Modelspace.

Changed in version 0.10: renamed from dxf.block_record

dxf.design_point

Reference point in WCS coordinates.

dxf.reference_point

Reference point in coordinate system coordinates, valid only when coordinate type is local grid.

dxf.north_direction

North direction as 2D vector.

dxf.horizontal_unit_scale

Horizontal unit scale, factor which converts horizontal design coordinates to meters by multiplication.

dxf.vertical_unit_scale

Vertical unit scale, factor which converts vertical design coordinates to meters by multiplication.

dxf.horizontal_units

Horizontal units per UnitsValue enumeration. Will be kUnitsUndefined if units specified by horizontal unit scale is not supported by AutoCAD enumeration.

dxf.vertical_units

Vertical units per UnitsValue enumeration. Will be kUnitsUndefined if units specified by vertical unit scale is not supported by AutoCAD enumeration.

dxf.up_direction

Up direction as 3D vector.

dxf.scale_estimation_method

1

none

2

user specified scale factor

3

grid scale at reference point

4

prismoidal

dxf.sea_level_correction

Bool flag specifying whether to do sea level correction.

dxf.user_scale_factor
dxf.sea_level_elevation
dxf.coordinate_projection_radius
dxf.geo_rss_tag
dxf.observation_from_tag
dxf.observation_to_tag
dxf.mesh_faces_count
source_vertices

2D source vertices as VertexArray.

target_vertices

2D target vertices as VertexArray.

faces

List of face definition tuples, each face entry is a 3-tuple of vertex indices (0-based).

coordinate_system_definition

The coordinate system definition string. (Always a XML string?)