User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layerwms.locateex_tgis_point_tgis_color_tgis_doublearray_boolean_double

Table of Contents

TGIS_LayerWMS.LocateEx method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerWMS.LocateEx | Constructors | Fields | Methods | Properties

If a given point is located in the image area, returns true and sets variables.

Available also on: Delphi | Java.

Syntax

Overrides TGIS_LayerPixel.LocateEx.

// C#
public bool LocateEx(
  TGIS_Point _ptg,
  ref TGIS_Color _rgbMapped,
  ref double[] _nativesVals,
  ref bool _transparency,
  double _pixelsize
);
' VisualBasic
Public Function LocateEx(
  ByVal _ptg As TGIS_Point,
  ByRef _rgbMapped As TGIS_Color,
  ByRef _nativesVals As Double(),
  ByRef _transparency As Boolean,
  ByVal _pixelsize As Double
) As Boolean
// Oxygene
public
  function LocateEx(
    _ptg : TGIS_Point;
    var _rgbMapped : TGIS_Color;
    var _nativesVals : TGIS_DoubleArray;
    var _transparency : Boolean;
    _pixelsize : Double
  ) : Boolean; override;

Parameters

Name Type Description
_ptg TGIS_Point reference point /searching point/; if the layer has been attached to the Viewer then expected _ptg units are in a Viewer coordinate space; otherwise expected _ptg units are in a Layer coordinate space
_rgbMapped TGIS_Color color in _ptg point after mapping (the same as _nativesVals if no mapping, in this case _rgbMapped and $FF = Byte(_nativesVals[0] and so on).
_nativesVals double[]
TGIS_DoubleArray
dynamic array of double with original values in _ptg point (for example R, G, B), Length(_nativesVals) is equal to number of bands
_transparency bool
Boolean
set on True if point is transparent
_pixelsize double
Double
requested size of image pixel; by providing 0 an actual viewer scale should be used to calculate am optimal pixel size; >0 - pixel size is expressed in map units; <0 - pixels is expressed in layer units

Result

Type Description
bool
Boolean
True if success

Remarks

If _pixelsize=0 then meaning same as Locate().

2020/12/17 01:16

Page Tools