PostGIS Koop Provider

Transform PostgreSQL spatial data into Esri-compatible REST services

πŸ“–

API Documentation

Interactive API documentation with examples and schema definitions.

View Swagger Docs
🎯

Quick Test

Test the API with sample city data to get started quickly.

Try Sample Query
πŸ”§

Database Admin

Manage your PostgreSQL database with pgAdmin interface.

Open pgAdmin

URL Format

This API uses clean, simplified URLs that follow ArcGIS Server conventions:

🎯

URL Structure

All endpoints follow this simple pattern:

/arcgis/rest/services/{schema.table}/FeatureServer/{layer}/

Example: /arcgis/rest/services/public.cities/FeatureServer/0/

Available Endpoints

GET /arcgis/rest/info
GET /arcgis/rest/generateToken
GET /arcgis/rest/services/:id/FeatureServer
GET /arcgis/rest/services/:id/FeatureServer/layers
GET /arcgis/rest/services/:id/FeatureServer/:layer
GET /arcgis/rest/services/:id/FeatureServer/:layer/query
GET /arcgis/rest/services/:id/FeatureServer/:layer/generateRenderer
GET /arcgis/rest/services/:id/FeatureServer/:layer/queryRelatedRecords

πŸ”— Relationship Queries

This provider automatically detects PostgreSQL foreign key relationships and exposes them as ArcGIS-compatible relationship queries. Perfect for exploring related data like buildings at locations, infrastructure details, and points of interest.

🏒

Buildings Relationship

Get all buildings associated with specific locations

🚧

Infrastructure Relationship

Query infrastructure records related to locations

🌍

Land Use Relationship

Get land use information for specific locations

πŸ“

Points of Interest

Find points of interest related to locations

πŸ”

Filtered Relationships

Use definition expressions to filter related records

πŸ“Š

Relationship Discovery

Discover available relationships and their metadata

πŸ’‘

ArcGIS Client Integration

These relationship queries work seamlessly with ArcGIS clients:

  • βœ… ArcGIS Map Viewer - Use "Related Data" buttons in pop-ups
  • βœ… ArcGIS Pro - Right-click layers β†’ "View Related Data"
  • βœ… ArcGIS Desktop - Relationship queries in attribute tables
  • βœ… ArcGIS Enterprise - Full relationship support

Add your service URL to any ArcGIS client to automatically discover and use relationships!

FeatureServer Test URLs

🏒

Service Metadata

Get service information, layers, and capabilities

πŸ“Š

Layer Information

Layer schema, geometry type, and field definitions

πŸ”

Basic Queries

Simple feature queries with different parameters

🎯

WHERE Clause Queries

Filter features using SQL WHERE conditions

πŸ“

Spatial Queries

Query features using bounding box filters

πŸ“„

Pagination & Sorting

Control result sets with pagination and ordering

🎨

Rendering Info

Generate rendering information for the layer

πŸ”—

Field Operations

Work with specific fields and return formats

πŸ”

Authentication & Tokens

Test authentication and token generation endpoints

πŸ”„

Output Formats

Test different output formats supported by the service

⚑

Advanced Queries

Complex queries with multiple parameters and conditions

Vector Tile Server

GET /arcgis/rest/services/:id/VectorTileServer
GET /arcgis/rest/services/:id/VectorTileServer/:z/:x/:y.pbf
GET /arcgis/:id/VectorTileServer/tiles.json
GET /arcgis/:id/VectorTileServer/:z/:x/:y.pbf
πŸ—ΊοΈ

Vector Tile Service

Access vector tiles for high-performance mapping applications

🎯

Sample Tiles

Test vector tile endpoints with sample coordinates