<< Click to Display Table of Contents >>

 

new.sg.geometry.Geometry()

 

 

Description

create a geometry object.

 

Position

Geometry.js

 

 

Properties

 

Properties

Type

Description

extent

sg.geometry.Extent

Geometry extent

type

String

Geometry type

 

 

Methods

 

Methods

Type

Description

fromWKT(wkt)

Object

wkt: String

convert WKT to geometry

Name

Type

Description

Geometry

sg.geometry.Geometry

Result geometry

type

String

result geometry type string

Return :

Type

Description

Object

Name

Type

Description

Geometry

sg.geometry.Geomtry

geometry

type

String

the type of geometry

toWkt(geom)

String

geom:sg.geometry.Geometry

turn Well Know Text into Geometry

Name

Type

Description

Geometry

sg.geometry.Geomtry

geometr

Returns:

Type

Description

String

WKT String

getExtent()

sg.geometry.Extent

return geometry extent

Returns:

Type

Description

sg.geometry.EXtent

geometry extent

 

 

Example

 

 

<script type="text/javascript" src="scripts/Geometry.js"></script>

 

var wkt ="POINT (1461784 5416536)";

var geo = new sg.geometry.Geometry.fromWKT(wkt);

var geometry = geo.geometry;

 

 

See live demo

 


©2015 Supergeo Technologies Inc.