MapWinGIS:AxMap ShapeLayerPointType

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

ShapeLayerPointType

Gets or sets the line point type for the specified layer. Only works on shapefiles.
See also tkPointType


VB.NET Usage

Property set_ShapeLayerPointType(LayerHandle As Integer, param0 as MapWinGIS.tkPointType
)
            Parameters

LayerHandle

Handle of the layer for which the point type is to be set.

param0

Point type for the shapefile.

Property get_ShapeLayerPointType(LayerHandle As Integer) As MapWinGIS.tkPointType
            Parameters

LayerHandle

Handle of the layer for which the point type is required.

Return Value

Point type for the shapefile.

Sample Code

    Private Sub PointType()
        Dim hnd As Integer
        Dim t As MapWinGIS.tkPointType
        'Get the handle for the layer at position 0
        hnd = Map1.get_LayerHandle(0)
        'Get the point type for layer 0 in Map1
        t = Map1.get_ShapeLayerPointType(hnd)
        'Set the point type for layer 0 in Map1 to circle
        Map1.set_ShapeLayerPointType(hnd, MapWinGIS.tkPointType.ptCircle)
    End Sub
  

VB 6 Usage

Property ShapeLayerPointType(LayerHandle As Long) As tkPointType


            Parameters

LayerHandle Handle of the layer.
Return Value Point type for the layer

Sample Code

    Private Sub PointType()
        Dim hnd As Long
        Dim t As MapWinGIS.tkPointType
        'Get the handle for the layer at position 0
        hnd = Map1.LayerHandle(0)
        'Get the point type for layer 0 in Map1
        t = Map1.ShapeLayerPointType(hnd)
        'Set the point type for layer 0 in Map1 to circle
        Map1.ShapeLayerPointType(hnd) = ptCircle
    End Sub

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:AxMap_ShapeLayerPointType"

This page has been accessed 1,631 times. This page was last modified on 9 November 2005, at 18:59.