User Tools

Site Tools


api:dk11:delphi:gisutils.tgis_utils.gisiscommonextent_tgis_extent_tgis_extent

Table of Contents



TGIS_Utils.GisIsCommonExtent method

DK for Delphi | GisUtils.TGIS_Utils.GisIsCommonExtent | Methods | Properties

Tests whether two 2D extents share a common area.

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

Syntax

// Delphi
public
  class function GisIsCommonExtent(
    const _extent1 : TGIS_Extent;
    const _extent2 : TGIS_Extent
  ) : Boolean; static; inline;
// C++ Builder
public:
  static bool GisIsCommonExtent(
    TGIS_Extent* const _extent1,
    TGIS_Extent* const _extent2
  );

Parameters

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

Result

Type Description
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:49

Page Tools