mapscript.lineObj

class mapscript.lineObj

A lineObj is composed of one or more pointObj instances

Overview

The lineObj has the following relationships:

../../../_images/lineObj_pointObj.png

Attributes

numpoints

int immutable Number of points in the line

thisown

The membership flag

Methods

__init__()[source]

A lineObj is composed of one or more pointObj instances

add(p: mapscript.pointObj) int[source]

Add point p to the line. Returns MS_SUCCESS or MS_FAILURE

get(i: int) mapscript.pointObj[source]

Return reference to point at index i.

project(projin: mapscript.projectionObj, projout: mapscript.projectionObj) int[source]

Transform line in place from proj_in to proj_out. Returns MS_SUCCESS or MS_FAILURE

set(i: int, p: mapscript.pointObj) int[source]

Set the point at index i to point p. Returns MS_SUCCESS or MS_FAILURE