Skip to content
Discussion options

You must be logged in to vote

Hi @Didymograptus, good question, here's a snippet that should help:

from fudgeo import MemoryGeoPackage, GeoPackage
from fudgeo.enumeration import GPKGFlavors

# open an existing geopackage
gpkg = GeoPackage('../data/example.gpkg')
input_fc = gpkg['detail_l']

# create a new memory geopackage, the path argument is completely ignored
mem_epsg = MemoryGeoPackage.create(flavor=GPKGFlavors.epsg)

# a second memory geopackage, each memory geopackage is isolated / independent of one another 
mem_esri = MemoryGeoPackage.create(flavor=GPKGFlavors.esri)

fc = input_fc.copy(name='copied_detail_l', geopackage=mem_esri, where_clause='FID <= 500')
assert fc.exists

# use the connection property of th…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jlhumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion Questions, proposals and info that requires discussion.
2 participants