Products / SDKs / Query tools

Query tools

Find the features in a layer that cross, contain, touch or lie near another shape, or read them by ID and column value. Queries use the spatial index your data format already has, so they stay fast on millions of features.

Querying GIS data

Queries

Every layer has these queries, and each runs against the whole layer. To compare one shape with another, use the geometric operations.

Each card links to working sample code on GitLab. WPF is the ThinkGeo 15 gallery; WPF Classic is the gallery that also builds for .NET Framework. A grayed-out platform has no sample for that yet.

Polygons crossed by a line

Crossing

Features that a line or set of points crosses: roads that pass over each other at a bridge instead of meeting at an intersection, or a route that enters an area it should avoid.

Polygons that intersect a polygon

Intersecting

Features that share any space with a shape: inside it, overlapping it or sharing a border. The most inclusive query, for example every road in the current map extent.

Polygons within a distance of a point

Within distance

Features any part of which lies within a distance of a shape: customers within a few miles of a store, or gas stations near your GPS position.

Polygons disjoint from a polygon

Disjoint

The inverse of intersecting: features that share no space with a shape. Paired with a distance query, it finds the households between two and three miles out.

A polygon equal to another

Equals

Features with the same geometry, whatever their attributes: duplicates in a dataset you bought, or a check before adding a new feature.

Highlighted polygons

Feature data

Read features without a shape: all of a layer's features, one by its ID, those matching a column value, or just the count.