You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/geotypes/README.md
+51-14Lines changed: 51 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,14 @@ Geographic data types and spatial functions for PostgreSQL.
16
16
17
17
## Overview
18
18
19
-
`@pgpm/geotypes` provides PostgreSQL domain types for geographic data, built on top of PostGIS geometry types. This package enables type-safe storage and validation of geographic coordinates and polygons with proper SRID (Spatial Reference System Identifier) enforcement.
19
+
`@pgpm/geotypes` provides PostgreSQL domain types for geographic data, built on top of PostGIS geometry and geography types. This package enables type-safe storage and validation of geographic coordinates and polygons with proper SRID (Spatial Reference System Identifier) enforcement.
20
20
21
21
## Features
22
22
23
-
-**geolocation**: A domain type for geographic points (latitude/longitude) using WGS84 (SRID 4326)
24
-
-**geopolygon**: A domain type for geographic polygons using WGS84 (SRID 4326)
23
+
-**geo_point**: A geometry domain for geographic points (latitude/longitude) using WGS84 (SRID 4326) — planar coordinates, fast computation
24
+
-**geo_polygon**: A geometry domain for geographic polygons using WGS84 (SRID 4326) — planar coordinates
25
+
-**geography_point**: A geography domain for geographic points using WGS84 (SRID 4326) — geodetic calculations on the sphere, distances in meters
26
+
-**geography_polygon**: A geography domain for geographic polygons using WGS84 (SRID 4326) — geodetic calculations on the sphere
25
27
- Automatic SRID validation to ensure coordinate system consistency
0 commit comments