User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_utils.gisiscommonextent_tgis_extent_tgis_extent

Table of Contents

TGIS_Utils.GisIsCommonExtent method

DK for .NET | TatukGIS.NDK.TGIS_Utils.GisIsCommonExtent | Methods | Properties

Tests whether two 2D extents share a common area.

Available also on: Delphi | Java | ActiveX | Python.

Syntax

// C#
public static static bool GisIsCommonExtent(
  TGIS_Extent _extent1,
  TGIS_Extent _extent2
);
' VisualBasic
Public Static Shared Function GisIsCommonExtent(
  ByVal _extent1 As TGIS_Extent,
  ByVal _extent2 As TGIS_Extent
) As Boolean
// Oxygene
public
  class function GisIsCommonExtent(
    _extent1 : TGIS_Extent;
    _extent2 : TGIS_Extent
  ) : Boolean;

Parameters

Name Type Description
_extent1 TGIS_Extent First extent to test.
_extent2 TGIS_Extent Second extent to test.

Result

Type Description
bool
Boolean
True if the extents overlap; False if they are disjoint.

Remarks

USAGE: Tests whether two 2D extents overlap. Use for spatial filtering and intersection detection.

viewport = TGIS_Utils.GisExtent(0.0, 0.0, 100.0, 100.0)
tile = TGIS_Utils.GisExtent(80.0, 80.0, 120.0, 120.0)
overlaps = TGIS_Utils.GisIsCommonExtent(viewport, tile)

2026/09/20 23:54

Page Tools