QtPositioning QML Type

The QtPositioning global object provides useful functions for working with location-based types in QML. 更多...

import 语句: import QtPositioning

方法

详细描述

import QtPositioning
Item {
    property var coordinate: QtPositioning.coordinate(-27.5, 153.1)
}
					

方法文档编制

geocircle circle ()

Constructs an invalid geocircle.

另请参阅 geocircle .

geocircle circle ( coordinate center , real radius )

Constructs a geocircle centered at center with a radius of radius meters.

point coordToMercator ( coordinate coord )

Converts a coordinate coord into a mercator coordinate and returns it.

另请参阅 mercatorToCoord .

coordinate coordinate ()

Constructs an invalid coordinate.

coordinate coordinate ( real latitude , real longitude , real altitude )

Constructs a coordinate with the specified latitude , longitude 和可选 altitude . Both latitude and longitude must be valid, otherwise an invalid coordinate is returned.

另请参阅 coordinate .

coordinate mercatorToCoord ( point mercator )

转换 mercator coordinate into a latitude-longitude coordinate.

另请参阅 coordToMercator .

geopath path ()

Constructs an empty geopath.

另请参阅 geopath .

geopath path ( list < coordinate > coordinates , real width )

Constructs a geopath from coordinates and width.

另请参阅 geopath .

geopolygon polygon ()

Constructs an empty polygon.

另请参阅 geopolygon .

geopolygon polygon ( list < coordinate > coordinates )

Constructs a polygon from coordinates.

另请参阅 geopolygon .

geopolygon polygon ( list < coordinate > perimeter , list < list < coordinate >> holes )

Constructs a polygon from coordinates for perimeter and inner holes.

另请参阅 geopolygon .

georectangle rectangle ()

Constructs an invalid georectangle.

另请参阅 georectangle .

georectangle rectangle ( coordinate center , real width , real height )

Constructs a georectangle centered at center with a width of width degrees and a hight of height 度。

另请参阅 georectangle .

georectangle rectangle ( coordinate topLeft , coordinate bottomRight )

Constructs a georectangle with its top left corner positioned at topLeft and its bottom right corner positioned at bottomRight .

另请参阅 georectangle .

georectangle rectangle ( list < coordinate > coordinates )

Constructs a georectangle from the list of coordinates, the returned list is the smallest possible containing all the coordinates.

另请参阅 georectangle .

geoshape shape ()

Constructs an invalid geoshape.

另请参阅 geoshape .

geocircle shapeToCircle ( geoshape shape )

转换 shape to a geocircle.

另请参阅 geocircle .

geopath shapeToPath ( geoshape shape )

转换 shape to a geopath.

另请参阅 geopath .

geopolygon shapeToPolygon ( geoshape shape )

转换 shape to a polygon.

另请参阅 geopolygon .

georectangle shapeToRectangle ( geoshape shape )

转换 shape to a georectangle.

另请参阅 georectangle .