Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 2.3 KB

features.md

File metadata and controls

58 lines (45 loc) · 2.3 KB

Feature Data

using ArchGDAL

In this section, we revisit the data/point.geojson dataset.

dataset = ArchGDAL.read("data/point.geojson")

Feature Layers

Retrieve a layer from a dataset using ArchGDAL.getlayer

layer = ArchGDAL.getlayer(dataset, 0)

The display provides

  • the name of the feature layer (point)
  • the geometries in the dataset, and their brief summary.
  • the fields in the dataset, and their brief summary.

You can also programmatically retrieve them using

Field Definitions

Each fielddefn defines an attribute of a feature, and supports the following:

Each geomdefn defines an attribute of a geometry, and supports the following:

Individual Features

We can examine an individual feature

ArchGDAL.getfeature(layer, 2) do feature
    print(feature)
end

You can programmatically retrieve the information using

More information on geometries can be found in Geometric Operations.