Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/achapkowski/pygeopackage
/ functions
Functions
116 in github.com/achapkowski/pygeopackage
⨍
Functions
116
◇
Types & classes
8
↓ 37 callers
Method
values
returns the row values
src/geopackage/_geopackage.py:347
↓ 30 callers
Function
as_bin_str
(a_list)
src/geopackage/_utils.py:62
↓ 28 callers
Function
take
Return first n items of the iterable as a list Copied shamelessly from http://docs.python.org/2/library/itertools.html#recipes.
src/geopackage/_utils.py:52
↓ 24 callers
Method
create
The `create` method generates a new table or feature class in the geopackage. =============== ==========================
src/geopackage/_geopackage.py:189
↓ 17 callers
Method
insert
Inserts a new row via dictionary =============== =============================================== **Arguements** **D
src/geopackage/_geopackage.py:622
↓ 15 callers
Method
keys
returns the column names in the dataset
src/geopackage/_geopackage.py:331
↓ 12 callers
Function
dumps
Dump a EsriJSON-like `dict` to a WKB string. :param dict obj: GeoJson-like `dict` object. :param bool big_endian: Defaul
src/geopackage/_wkb.py:167
↓ 11 callers
Method
get
Returns a table if it exists in the geopackage. =============== =============================================== **Arguem
src/geopackage/_geopackage.py:135
↓ 9 callers
Method
rows
Search/update cursor like iterator =============== =============================================== **Arguements** *
src/geopackage/_geopackage.py:583
↓ 7 callers
Function
_header_bytefmt_byteorder
Utility function to get the WKB header (endian byte + type header), byte format string, and byte order string.
src/geopackage/_wkb.py:265
↓ 6 callers
Function
_insert_values
inserts multiple values into a table
src/geopackage/_gpkg.py:77
↓ 6 callers
Function
_strip_header
removes the GP header
src/geopackage/_rtree.py:14
↓ 3 callers
Method
_refresh
internal method that refreshes the table information
src/geopackage/_geopackage.py:745
↓ 3 callers
Function
block_splitter
Creates a generator by slicing ``data`` into chunks of ``block_size``. >>> data = range(10) >>> list(block_splitter(data, 2)) [[0, 1
src/geopackage/_utils.py:11
↓ 3 callers
Method
exists
Returns boolean if the table exists :returns: boolean
src/geopackage/_geopackage.py:120
↓ 2 callers
Function
_check_dimensionality
(geom, num_dims)
src/geopackage/_wkb.py:802
↓ 2 callers
Method
_flag_to_bytes
converts single integer to bytes
src/geopackage/_geopackage.py:841
↓ 2 callers
Function
_load_data
loads the coordinate information into memory
src/geopackage/_coord.py:14
↓ 2 callers
Function
_unsupported_geom_type
(geom_type)
src/geopackage/_wkb.py:260
↓ 2 callers
Method
_update
updates the current row
src/geopackage/_geopackage.py:352
↓ 2 callers
Method
add_field
Adds a new column to the table. =============== =============================================== **Arguements** **D
src/geopackage/_geopackage.py:473
↓ 2 callers
Function
loads
Construct a EsriJSON `dict` from WKB (`string`). :param str string: WKB string. :param int wkid: The srid of the coordi
src/geopackage/_wkb.py:203
↓ 2 callers
Method
to_pandas
Exports a table to a Pandas' DataFrame. =============== =============================================== **Arguements**
src/geopackage/_geopackage.py:657
↓ 1 callers
Method
__getattr__
(self, name)
src/geopackage/_geopackage.py:317
↓ 1 callers
Method
__setattr__
(self, name, value)
src/geopackage/_geopackage.py:301
↓ 1 callers
Method
__str__
(self)
src/geopackage/_geopackage.py:293
↓ 1 callers
Method
__str__
(self)
src/geopackage/_geopackage.py:445
↓ 1 callers
Method
__str__
(self)
src/geopackage/_geopackage.py:761
↓ 1 callers
Method
_build_gp_header
assembles the GP header for WKB geometry
src/geopackage/_geopackage.py:851
↓ 1 callers
Function
_create_feature_class
Creates a spatial table ============== ==================================================== **Argument** **Description** -
src/geopackage/_gpkg.py:217
↓ 1 callers
Function
_create_gpkg
Creates an empty geopackage
src/geopackage/_gpkg.py:119
↓ 1 callers
Function
_create_table
creates an attribute table
src/geopackage/_gpkg.py:184
↓ 1 callers
Function
_get_geom_type
Get the GeoJSON geometry type label from a WKB type byte string. :param type_bytes: 4 byte string in big endian byte order containing a W
src/geopackage/_wkb.py:100
↓ 1 callers
Method
_setup
sets up the registration for the GeoPackage
src/geopackage/_geopackage.py:78
↓ 1 callers
Method
_srid_to_bytes
converst WKID values to bytes
src/geopackage/_geopackage.py:846
↓ 1 callers
Method
delete_field
Drops a Field from a Table =============== =============================================== **Arguements** **Descrip
src/geopackage/_geopackage.py:557
↓ 1 callers
Function
lookup_coordinate_system
Looks up the wkt and name of the wkid coordinate system ================ ========================================= ** Arguement **
src/geopackage/_coord.py:28
↓ 1 callers
Function
lu_geom
(ks)
src/geopackage/_wkb.py:181
↓ 1 callers
Function
read_file
(file)
src/setup.py:40
Function
ST_IsEmpty
returns 1 if geometry value is empoty 0 if not empty, NULL if geometry is NULL
src/geopackage/_rtree.py:53
Function
ST_MaxX
Returns the maximum X value of the bounding envelope of a geometry
src/geopackage/_rtree.py:86
Function
ST_MaxY
Returns the maximum Y value of the bounding envelope of a geometry
src/geopackage/_rtree.py:95
Function
ST_MinX
Returns the minimum X value of the bounding envelope of a geometry
src/geopackage/_rtree.py:66
Function
ST_MinY
Returns the minimum Y value of the bounding envelope of a geometry
src/geopackage/_rtree.py:77
Method
__enter__
(self)
src/geopackage/_geopackage.py:109
Method
__exit__
(self, type, value, traceback)
src/geopackage/_geopackage.py:115
Method
__getitem__
(self, name)
src/geopackage/_geopackage.py:323
Method
__init__
Constructor
src/geopackage/_geopackage.py:50
Method
__init__
Constructor
src/geopackage/_geopackage.py:285
Method
__init__
Constructor
src/geopackage/_geopackage.py:433
Method
__init__
Constructor
src/geopackage/_geopackage.py:738
Method
__iter__
(self)
src/geopackage/_geopackage.py:453
Method
__len__
returns the number of registered tables
src/geopackage/_geopackage.py:99
Method
__repr__
(self)
src/geopackage/_geopackage.py:297
Method
__repr__
(self)
src/geopackage/_geopackage.py:449
Method
__repr__
(self)
src/geopackage/_geopackage.py:767
Method
__setitem__
(self, name, value)
src/geopackage/_geopackage.py:327
Function
_adapt_wkb
ensures the wkb values are bytes, not bytearrays
src/geopackage/_geopackage.py:33
Function
_copy_table_schema
copies a table's schema to a new table
src/geopackage/_gpkg.py:97
Function
_dump_geometrycollection
(obj, big_endian, meta)
src/geopackage/_wkb.py:488
Function
_dump_linestring
Dump a GeoJSON-like `dict` to a linestring WKB string. Input parameters and output are similar to :func:`_dump_point`.
src/geopackage/_wkb.py:340
Function
_dump_multilinestring
Dump a GeoJSON-like `dict` to a multilinestring WKB string. Input parameters and output are similar to :funct:`_dump_point`.
src/geopackage/_wkb.py:418
Function
_dump_multipoint
Dump a GeoJSON-like `dict` to a multipoint WKB string. Input parameters and output are similar to :funct:`_dump_point`.
src/geopackage/_wkb.py:389
Function
_dump_multipolygon
Dump a GeoJSON-like `dict` to a multipolygon WKB string. Input parameters and output are similar to :funct:`_dump_point`.
src/geopackage/_wkb.py:451
Function
_dump_point
Dump a EsriJSON-like `dict` to a point WKB string. :param dict obj: EsriJSON-like `dict` object. :param bool big_endian:
src/geopackage/_wkb.py:305
Function
_dump_polygon
Dump a GeoJSON-like `dict` to a polygon WKB string. Input parameters and output are similar to :funct:`_dump_point`.
src/geopackage/_wkb.py:363
Function
_extent
gets the extent value from the geometry
src/geopackage/_rtree.py:37
Function
_flatten_list
moves all x,y pairs into two lists
src/geopackage/_rtree.py:21
Method
_gpheader
internal only, builds the geopackage binary header
src/geopackage/_geopackage.py:862
Function
_handle_wkb
handles the insert convertion for the custom geometry types
src/geopackage/_geopackage.py:25
Function
_load_geometrycollection
(big_endian, type_bytes, data_bytes)
src/geopackage/_wkb.py:821
Function
_load_linestring_esri
converts wkb to esri json
src/geopackage/_wkb.py:561
Function
_load_multilinestring_esri
converts wkb to esri json
src/geopackage/_wkb.py:687
Function
_load_multipoint_esri
converts wkb to esri json
src/geopackage/_wkb.py:637
Function
_load_multipolygon_esri
converts wkb to esri json
src/geopackage/_wkb.py:742
Function
_load_point_esri
Convert byte data for a Point to a EsriJSON `dict`. :param bool big_endian: If `True`, interpret the ``data_bytes`` in big endian or
src/geopackage/_wkb.py:521
Function
_load_polygon_esri
converts wkb to esri json
src/geopackage/_wkb.py:595
Method
as_dict
returns the row as a dictionary
src/geopackage/_geopackage.py:342
Method
delete
Deletes the current row :returns: Boolean
src/geopackage/_geopackage.py:394
Method
dtype
returns the table type
src/geopackage/_geopackage.py:440
Method
dtype
Returns the table type :returns: String
src/geopackage/_geopackage.py:779
Function
dump
Dump GeoJSON-like `dict` to WKB and write it to the `dest_file`. :param dict obj: A GeoJSON-like dictionary. It must at least the ke
src/geopackage/_wkb.py:140
Method
enable
enables the sqlite database to be a geopackage :returns: Boolean
src/geopackage/_geopackage.py:175
Method
fields
returns the field names in the dataset
src/geopackage/_geopackage.py:337
Method
fields
returns the field information for a table :returns: Dictionary
src/geopackage/_geopackage.py:459
Function
first_geom
(gc)
src/geopackage/_wkb.py:803
Function
flatten_multi_dim
Flatten a multi-dimensional array-like to a single dimensional sequence (as a generator).
src/geopackage/_utils.py:107
Method
geometry_type
(self)
src/geopackage/_geopackage.py:772
Function
info
Returns all the support projections :returns: pd.DataFrame
src/geopackage/_coord.py:67
Method
insert
Inserts a new row via dictionary =============== =============================================== **Arguements** **D
src/geopackage/_geopackage.py:869
Function
load
Load a EsriJSON `dict` object from a ``source_file`` containing WKB (as a byte string). :param source_file: Open and readable fi
src/geopackage/_wkb.py:153
Function
requires_dependency
Decorator to declare required dependencies for tests. Examples -------- :: from gammapy.utils.testing import requires_dependenc
src/tests.py:71
Function
round_geom
Round coordinates of a geometric object to given precision.
src/geopackage/_utils.py:69
Method
rows
Search/update cursor like iterator =============== =============================================== **Arguements** *
src/geopackage/_geopackage.py:801
Method
tables
Gets a list of registered table names with the geopackage :returns: iterator
src/geopackage/_geopackage.py:159
Method
test_add_field
tests adding a field on a table
src/tests.py:230
Method
test_create_overwrite
tests creation gpkg patterns
src/tests.py:111
Method
test_create_spatial_table_fields_test
Creates a spatial tables with multiple table field combinations
src/tests.py:199
Method
test_create_table_fields_test
Creates a tables with multiple table field combinations
src/tests.py:177
Method
test_exists
tests the table exists function
src/tests.py:146
next →
1–100 of 116, ranked by callers