Spatial view

Wiki / Explorer

Select Spatial after running a query that returns geometry, geography, or legacy point() values. Explorer finds spatial values in returned columns, lists, maps, paths, and node and relationship properties, with no conversion query needed. For example:

RETURN spatial.fromWKT('POLYGON((0 0,10 0,10 10,0 10,0 0),(2 2,2 4,4 4,4 2,2 2))') AS region,
       spatial.fromWKT('LINESTRING(-2 1,3 7,12 8)') AS route;

Points, lines, polygons with holes, every multipart type and nested geometry collections are drawn. Empty values stay selectable in the list. Click a shape or list entry to see its original coordinates and its domain, SRID and layout. Drag to pan, scroll or use + / − to zoom, and use Fit to show every shape. The focused canvas also takes the arrow keys, + / − and 0 (fit).

Coordinate systems

The coordinate selector separates domain, exact SRID and XY or XYZ layout, and never overlays unrelated coordinate systems. Geometry uses its own XY plane, including geometry with a geographic SRID. Geography uses a local azimuthal equidistant projection with great-circle edges sampled at most one degree apart, so it draws correctly across the dateline and near the poles, offline. Shapes that reach the projection's far side carry a warning; narrow the query to a smaller region to draw them. XYZ shapes draw in XY, with Z kept in the details and the JSON view.

The view is a shape preview for checking queries, so it has no basemap and does not measure. For distances and areas, use the spatial functions.

Sizes

The view draws up to 2,000 spatial values and 50,000 input coordinates, with a separate 200,000-coordinate projection budget. A malformed or oversized value shows a warning and the other values still draw. Table and JSON keep every value. Raw WKT strings, untyped coordinate maps and GeoJSON maps are drawn once you return a typed value from spatial.fromWKT or spatial.fromGeoJSON.

Geometry and geography · Spatial indexes · Write and run queries

Planning a deployment? Review compatibility and licence setup for your instance.