vyperdatum.drivers.gparq

Attributes

logger

Classes

GeoParquet

Helper class that provides a standard way to create an ABC using

Module Contents

vyperdatum.drivers.gparq.logger
class vyperdatum.drivers.gparq.GeoParquet(input_file: str, invalid_error: bool = True)

Bases: vyperdatum.drivers.base.Driver

Helper class that provides a standard way to create an ABC using inheritance.

input_file
is_gparq
get_points() bool

Extract the coordinate points from geoparquet file. The input file should be in the geoparquet format and should only contain points.

Returns:

True if the coordinates are found successfully; otherwise False.

Return type:

bool

wkt() str

Return the WKT string.

Returns:

WKT associated with file’s CRS.

Return type:

str

transform(transformer_instance, output_file: str, pre_post_checks: bool, vdatum_check: bool) bool

Apply point transformation on the geoparquet point data according to the transformer_instance.

Parameters:
  • transformer_instance (vyperdatum.transformer.Transform) – Instance of the transformer class.

  • output_file (str) – Path to the output geoparquet file.

Returns:

True if successful, otherwise False.

Return type:

bool

property is_valid