geoCML / tabor

Tabor is a database modeling language for GIS
GNU General Public License v2.0
1 stars 0 forks source link

Implement "near" data constraint #19

Open TristanDamron opened 2 months ago

TristanDamron commented 2 months ago

Is your feature request related to a problem? Please describe. We need a data constraint that allows users to define a feature that is near another feature.

Describe the solution you'd like The implementation should look something like this:

tabor: 0.3.0

layers:
- name: feature_x
  schema: public
  owner: geocml
  geometry: point
  fields:
    - name: fid
       type: int
       pk: true

- name: feature_y
  schema: public
  owner: geocml
  geometry: point
  fields:
    - name: fid
       type: int
       pk: true

  constraints:
    - name: near
       layer: feature_x
       distance: 10

This Tabor file uses the "near" constraint which says that feature_y must be within 10 map units of feature_x