mapscript.pointObj¶
- class mapscript.pointObj(x: double = 0.0, y: double = 0.0, z: double = 0.0, m: double = -2e+38)¶
- A - pointObjhas an x, y, z and m values. A- pointObjinstance may be associated with a- lineObj.- Attributes - m- double The m (measure) of the point, used for linear referencing - thisown- The membership flag - x- double The x coordinate of the point - y- double The y coordinate of the point - z- double The z (height) coordinate of the point - Methods - __init__(x: double = 0.0, y: double = 0.0, z: double = 0.0, m: double = -2e+38)[sumber]¶
- Create new instance. Easting, northing, and measure arguments are optional. Java pointObj constructors are in java/javaextend.i See https://github.com/mapserver/mapserver/issues/1106 
 - distanceToSegment(a: pointObj, b: pointObj) double[sumber]¶
- Returns the minimum distance to a hypothetical line segment connecting point1 and point2. 
 - draw(map: mapObj, layer: layerObj, image: imageObj, classindex: int, text: char) int[sumber]¶
- Draw the point using the styles defined by the classindex class of layer and labelled with string text. Returns - MS_SUCCESSor- MS_FAILURE
 - project(*args) int[sumber]¶
- Overload 1: Reproject point from proj_in to proj_out. Transformation is done in place. Returns - MS_SUCCESSor- MS_FAILURE- Overload 2: Reproject point given a reprojection object. Transformation is done in place. Returns - MS_SUCCESSor- MS_FAILURE
 - setXY(x: double, y: double, m: double = -2e+38) int[sumber]¶
- Set spatial coordinate and, optionally, measure values simultaneously. The measure will be set only if the value of m is greater than the ESRI measure no-data value of -1e38. Returns - MS_SUCCESSor- MS_FAILURE
 - setXYZ(x: double, y: double, z: double, m: double = -2e+38) int[sumber]¶
- Set spatial coordinate and, optionally, measure values simultaneously. The measure will be set only if the value of m is greater than the ESRI measure no-data value of -1e38. Returns - MS_SUCCESSor- MS_FAILURE
 - setXYZM(x: double, y: double, z: double, m: double) int[sumber]¶
- Set spatial coordinate and, optionally, measure values simultaneously. The measure will be set only if the value of m is greater than the ESRI measure no-data value of -1e38. Returns - MS_SUCCESSor- MS_FAILURE
 - toString() char[sumber]¶
- Return a string formatted like: - { 'x': %f , 'y': %f, 'z': %f }with the coordinate values substituted appropriately. Python users can get the same effect via the pointObj __str__ method:- >>> p = mapscript.pointObj(1, 1) - >>> str(p) { 'x': 1.000000 , 'y': 1.000000, 'z': 1.000000 } 
 







 
        
          
            





