Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Internal Representation

DamonOehlman edited this page · 1 revision
Clone this wiki locally

While geofilter's default format looks most similar to a URL format, it's internal format is essentially JSON. In it's simplest form an internal representation of a Geofilter looks like so:

{
    "type":"filterType",
    "args": {
        "key1":"val1",
        "key2":"val2"
    }
}

This internal format has been written in such a way that it should be fairly easy to be able to map the internal representation from it's url equivalent.

Bounding Box

{
    "type":"bbox",
    "args":{
        "property":"the_geom",
        "min":"-29.89217616017851 135.04394531250003",
        "max": "-8.331726297398703 160.13671875000003"
    }
}

One thing that is worth noting that the property attribute specified in the arguments is not usually explicitly stated in the url parameters (e.g. /BBOX/MINLAT,MINLON,MAXLAT,MAXLON) and is actually configured in the geofilter initialization step.

Something went wrong with that request. Please try again.