Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

geo2france/refine-wfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wfs-data-provider

Important

Le fournisseur est maintenant intégré dans le projet https://github.com/geo2france/g2f-dashboard/

WFS data provider for refine.

Tested with WFS 2.0.0 and geoserver.

Installation

npm install https://github.com/geo2france/refine-wfs.git
import {dataProvider as wfsDataProvider} from "refine-wfs";

Example : https://github.com/geo2france/odema-dashboard/blob/main/src/App.tsx

CRUD

Only read operations are supported (pagination, sorters, getlist, getone, getmany).

Supported filters operators

  • ne
  • gte
  • gt
  • lte
  • lt
  • eq
  • contains
  • startswith
  • endswith
  • containss
  • startswiths
  • endswiths
  • ncontains
  • nstartswith
  • nendswith
  • ncontainss
  • nstartswiths
  • nendswiths
  • in

In combination with geometry field, the in operator is used to specify the bounding box. Otherwith, it is used to check if field is included in array.

Meta

  • srsname : specify coordinates systeme (e.g. : EPSG:2154)
  • propertyname : return only given list of properties (e.g. : ['name','annee']). Useful for avoid fetching large geometries.

See WFS Reference for details.