MapFish Protocol

This page describes the MapFish Protocol. The MapFish Protocol is a RESTFull protocol for creating/reading/updating/deleting features.

Representation

The representation format is GeoJSON.

Interface

Read one feature

Read features

  • Request parameters for filtering: lon, lat, tolerance, box, maxfeatures, and epsg
    • maxfeatures: limit the number of features in the response
    • lon: the x coordinate of the center of the search region, the projection system of this coordinate can be specified with the epsg parameter
    • lat: the y coordinate of the center of the search region, the projection system of this coordinate can be specified with the epsg parameter
    • tolerance: the tolerance around the center of the search region, it is expressed in the units associated with the projection system of the lon/lat coordinates
    • box: a list of coordinates representing a bounding box ([xmin, ymin, xmax, ymax]), the projection system of the coordinates can be specified with the epsg parameter
    • epsg: the EPSG code of the lon, lat or box values

Examples:

Create/Update features

Features with no ids ({id: null}) are created. Features with ids are updated.

Update a feature

Delete a feature

Features are deleted one by one.

Count features

  • Request parameters for filtering: same as the Read feaures action

Example:

Note:

If using pylons, routing has to be modified to enable access to the /count action:

map.connect('/:controller/count', action='count'
Cet article a été publié dans Uncategorized. Ajoutez ce permalien à vos favoris.

Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s