Reading layersΒΆ
from girs.feat.layers import LayersReader
lrs = LayersReader('D:/tmp/DEU_adm_shp/DEU_adm4.shp')
Ambiguous suffixes require the parameter drivername
from girs.feat.layers import LayersReader
lrs = LayersReader('D:/tmp/DEU_adm.mdb', drivername='PGeo')
Available methods in LayersReader:
from girs.feat.layers import LayersReader
lrs = LayersReader('D:/tmp/DEU_adm_shp/DEU_adm4.shp')
for m in dir(lrs):
if not m.startswith('__'):
print m
Output:
buffer
centroid
convex_hull
copy
create_feature
data_frame
dataset
dissolve
fields
generate_field_name
geometries_export
get_convex_hull_as_wkb
get_coordinate_system
get_description
get_extent
get_features_count
get_field_count
get_field_definition
get_field_definitions
get_field_definitions_data_frame
get_field_names
get_field_numbers
get_field_values
get_geometries
get_geometries_and_field_values
get_geometries_areas
get_geometries_boundaries
get_geometries_centroids
get_geometries_coordinate_dimensions
get_geometries_count
get_geometries_curve
get_geometries_dimensions
get_geometries_envelopes
get_geometries_envelopes_3d
get_geometries_linear
get_geometries_m
get_geometries_names
get_geometries_point_count
get_geometries_points
get_geometries_points_2d
get_geometries_points_zm
get_geometries_spatial_references
get_geometries_types
get_geometries_wkb_size
get_geometries_x
get_geometries_y
get_geometries_z
get_geometry_type
get_geometry_union_as_wkb
get_layer
get_layer_count
get_layer_definition
get_layer_name
get_source
has_field_names
is_geometry_3d
is_geometry_empty
is_geometry_measured
is_geometry_point
is_geometry_polygon
is_geometry_ring
is_geometry_simple
is_geometry_valid
join
layers
layers_definitions
rename_fields
set_attribute_filter
set_spatial_filter
show
spatial_filter
spatial_filter_to_layer
transform