Feature Data

Feature Data

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

ArchGDAL.registerdrivers() do
    ArchGDAL.read(filepath) do dataset
        print(dataset)
    end
end

Feature Layers

ArchGDAL.registerdrivers() do
    ArchGDAL.read(filepath) do dataset
        layer = ArchGDAL.getlayer(dataset, 0)
        print(layer)
    end
end

The display provides

You can also programmatically retrieve them using

Field Definitions

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

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

Individual Features

We can examine an individual feature

ArchGDAL.registerdrivers() do
    ArchGDAL.read(filepath) do dataset
        layer = ArchGDAL.getlayer(dataset, 0)
        ArchGDAL.getfeature(layer, 2) do feature
            print(feature)
        end
    end
end

You can programmatically retrieve the information using

More information on geometries can be found in Geometric Operations.