inst/htmlwidgets/lib/leaflet/r-tree-README.md

rTree Build Status

A non-recursive R-Tree library in pure JavaScript with no dependencies. Fork of Jon-Carlos Rivera's fantastic library which sadly seems not to be maintained. MIT Licensed.

So far:

API

Parameters:

Returns:

Usage:

rTree.insert

Parameters:

Returns:

Usage:

rTree.remove

Parameters:

Returns:

Usage:

rTree.geoJSON:

Parameters

Usage:

myRTree.geoJSON({
    "type":"FeatureCollection",
    "features":[
        {
            "type":"Feature",
            "geometry":{
                "type":"Point",
                "coordinates":[100,1]
            },
            "properties":{
                "prop0":"value0"
            }
        },
        {
            "type":"Feature",
            "geometry":{
                "type":"LineString",
                "coordinates":[
                    [100,0],
                    [101,1]
                ]
            },
            "properties":{
                "prop0":"value0"
            }
        }
    ]
});

rTree.bbox:

Parameters

Returns:

Usage:

rTree.search

Parameters:

Returns:

Usage:

Notes

1 Default max node width is currently 6.

3 A Rectangle is any object with public x, y, w, h properties. The object itself is not saved or used directly but copies are made of its x, y, w, h properties.



gisma/uavRmp documentation built on Sept. 12, 2023, 2:24 p.m.