No Clocks

No Clocks

3835 bookmarks
Newest
PYRAMIDS Architecture, Power, and Mystery
PYRAMIDS Architecture, Power, and Mystery
Dami Lee / Nollistudio - PYRAMIDS - Architecture, Power, and Mystery
·right-objects-767128.framer.app·
PYRAMIDS Architecture, Power, and Mystery
Class encapsulating a vector layer in a GDAL dataset — GDALVector-class
Class encapsulating a vector layer in a GDAL dataset — GDALVector-class
GDALVector provides an interface for accessing a vector layer in a GDAL dataset and calling methods on the underlying OGRLayer object. An object of class GDALVector persists an open connection to the dataset, and exposes methods to: retrieve layer information set attribute and spatial filters set a list of ignored or selected columns traverse and read feature data by traditional row-based cursor, including an analog of DBI::dbFetch() read via column-oriented Arrow Array stream write new features in a layer edit/overwrite existing features upsert delete features perform data manipulation within transactions. GDALVector is a C++ class exposed directly to R (via RCPP_EXPOSED_CLASS). Fields and methods of the class are accessed using the $ operator. Note that all arguments to class methods are required and must be given in the order documented. Most GDALVector methods take zero or one argument, so this is usually not an issue. Class constructors are the main exception. Naming the arguments is optional but may be preferred for readability.
GDALVector provides an interface for accessing a vector layer in a GDAL dataset and calling methods on the underlying OGRLayer object. An object of class GDALVector persists an open connection to the dataset, and exposes methods to: retrieve layer information set attribute and spatial filters set a list of ignored or selected columns traverse and read feature data by traditional row-based cursor, including an analog of DBI::dbFetch() read via column-oriented Arrow Array stream write new features in a layer edit/overwrite existing features upsert delete features perform data manipulation within transactions.
GDALVector is a C++ class exposed directly to R (via RCPP_EXPOSED_CLASS). Fields and methods of the class are accessed using the $ operator. Note that all arguments to class methods are required and must be given in the order documented. Most GDALVector methods take zero or one argument, so this is usually not an issue. Class constructors are the main exception. Naming the arguments is optional but may be preferred for readability.
Arguments dsn Character string containing the data source name (DSN), usually a filename or database connection string. layer Character string containing the name of a layer within the data source. May also be given as an SQL SELECT statement to be executed against the data source, defining a layer as the result set. read_only Logical scalar. TRUE to open the layer read-only (the default), or FALSE to open with write access. open_options Optional character vector of NAME=VALUE pairs specifying dataset open options. spatial_filter Optional character string containing a geometry in Well Known Text (WKT) format which represents a spatial filter. dialect Optional character string to control the statement dialect when SQL is used to define the layer. By default, the OGR SQL engine will be used, except for RDBMS drivers that will use their dedicated SQL engine, unless "OGRSQL" is explicitly passed as the dialect. The "SQLITE" dialect can also be used.
Value An object of class GDALVector, which contains pointers to the opened layer and the GDAL dataset that owns it. Class methods that operate on the layer are described in Details, along with a set of writable fields for per-object settings. Values may be assigned to the class fields as needed during the lifetime of the object (i.e., by regular <- or = assignment).
## Constructors # for single-layer file formats such as shapefile lyr <- new(GDALVector, dsn) # specifying the layer name, or SQL statement defining the layer lyr <- new(GDALVector, dsn, layer) # for update access lyr <- new(GDALVector, dsn, layer, read_only = FALSE) # using dataset open options lyr <- new(GDALVector, dsn, layer, read_only, open_options) # setting a spatial filter and/or specifying the SQL dialect lyr <- new(GDALVector, dsn, layer, read_only, open_options, spatial_filter, dialect) ## Read/write fields (per-object settings) lyr$defaultGeomColName lyr$returnGeomAs lyr$promoteToMulti lyr$convertToLinear lyr$wkbByteOrder lyr$arrowStreamOptions lyr$quiet lyr$transactionsForce ## Methods lyr$open(read_only) lyr$isOpen() lyr$isReadOnly() lyr$getDsn() lyr$getFileList() lyr$info() lyr$getDriverShortName() lyr$getDriverLongName() lyr$getName() lyr$getFieldNames() lyr$testCapability() lyr$getFIDColumn() lyr$getGeomType() lyr$getGeometryColumn() lyr$getSpatialRef() lyr$bbox() lyr$getLayerDefn() lyr$getFieldDomain(domain_name) lyr$setAttributeFilter(query) lyr$getAttributeFilter() lyr$setIgnoredFields(fields) lyr$setSelectedFields(fields) lyr$getIgnoredFields() lyr$setSpatialFilter(wkt) lyr$setSpatialFilterRect(bbox) lyr$getSpatialFilter() lyr$clearSpatialFilter() lyr$getFeatureCount() lyr$getNextFeature() lyr$setNextByIndex(i) lyr$getFeature(fid) lyr$resetReading() lyr$fetch(n) lyr$getArrowStream() lyr$releaseArrowStream() lyr$setFeature(feature) lyr$createFeature(feature) lyr$batchCreateFeature(feature_set) lyr$upsertFeature(feature) lyr$getLastWriteFID() lyr$deleteFeature(fid) lyr$syncToDisk() lyr$startTransaction() lyr$commitTransaction() lyr$rollbackTransaction() lyr$getMetadata() lyr$setMetadata(metadata) lyr$getMetadataItem(mdi_name) lyr$close()
Constructors new(GDALVector, dsn) The first layer by index is assumed if the layer argument is omitted, so this form of the constructor might be used for single-layer formats like shapefile. new(GDALVector, dsn, layer) Constructor specifying the name of a layer to open. The layer argument may also be given as an SQL SELECT statement to define a layer as the result set. new(GDALVector, dsn, layer, read_only) Constructor specifying read/write access (read_only = TRUE|FALSE). The layer argument is required in this form of the constructor, but may be given as empty string (""), in which case the first layer by index will be assumed. new(GDALVector, dsn, layer, read_only, open_options) Constructor specifying dataset open options as a character vector of NAME=VALUE pairs. new(GDALVector, dsn, layer, read_only, open_options, spatial_filter, dialect)) Constructor to specify a spatial filter and/or SQL dialect. All arguments are required in this form of the constructor, but open_options may be NULL, and spatial_filter or dialect may be an empty string ("").
$defaultGeomColName Character string specifying a name to use for returned columns when the geometry column name in the source layer is empty, like with shapefiles etc. Defaults to "geom".
$returnGeomAs Character string specifying the return format of feature geometries. Must be one of WKB (the default), WKB_ISO, WKT, WKT_ISO, BBOX, or NONE. Using WKB/WKT exports as 99-402 extended dimension (Z) types for Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon and GeometryCollection. For other geometry types, it is equivalent to using WKB_ISO/WKT_ISO (see https://libgeos.org/specifications/wkb/). Using BBOX exports as a list of numeric vectors, each of length 4 with values xmin, ymin, xmax, ymax. If an empty geometry is encountered these values will be NA_real_ in the corresponding location. Using NONE will result in no geometry value being present in the feature returned.
$promoteToMulti A logical value specifying whether to automatically promote geometries from Polygon to MultiPolygon, Point to MultiPoint, or LineString to MultiLineString during read operations (i.e., with methods $getFeature(), $getNextFeature(), $fetch()). Defaults to FALSE. Setting to TRUE may be useful when reading from layers such as shapefiles that mix Polygons and MultiPolygons.
$wkbByteOrder Character string specifying the byte order for WKB geometries. Must be either LSB (Least Significant Byte first, the default) or MSB (Most Significant Byte first).
$arrowStreamOptions Character vector of "NAME=VALUE" pairs giving options used by the $getArrowStream() method (see below). The available options may be driver and GDAL version specific. Options available as of GDAL 3.8 are listed below. For more information about options for Arrow stream, see the GDAL API documentation for OGR_L_GetArrowStream(). INCLUDE_FID=YES/NO. Defaults to YES. MAX_FEATURES_IN_BATCH=integer. Maximum number of features to retrieve in an ArrowArray batch. Defaults to 65536. TIMEZONE=unknown/UTC/(+|:)HH:MM or any other value supported by Arrow (GDAL >= 3.8). GEOMETRY_METADATA_ENCODING=OGC/GEOARROW (GDAL >= 3.8). The GDAL default is OGC if not specified. GEOMETRY_ENCODING=WKB (Arrow/Parquet drivers). To force a fallback to the generic implementation when the native geometry encoding is not WKB. Otherwise the geometry will be returned with its native Arrow encoding (possibly using GeoArrow encoding).
$quiet A logical value, FALSE by default. Set to TRUE to suppress various messages and warnings.
$transactionsForce A logical value, FALSE by default. Affects the behavior of attempted transactions on the layer (see the $startTransaction() method below). By default, only "efficient" transactions will be attempted. Some drivers may offer an emulation of transactions, but sometimes with significant overhead, in which case the user must explicitly allow for such an emulation by first setting $transactionsForce <- TRUE.
$open(read_only) (Re-)opens the vector layer on the existing DSN. Use this method to open a layer that has been closed using $close(). May be used to re-open a layer with a different read/write access (read_only set to TRUE or FALSE). The method will first close an open dataset, so it is not required to call $close() explicitly in this case. No return value, called for side effects.
$isOpen() Returns a logical value indicating whether the vector dataset is open.
$getDsn() Returns a character string containing the dsn associated with this GDALVector object (dsn originally used to open the layer).
$isReadOnly()
Class encapsulating a vector layer in a GDAL dataset Source: R/gdalvector.R GDALVector provides an interface for accessing a vector layer in a GDAL dataset and calling methods on the underlying OGRLayer object. An object of class GDALVector persists an open connection to the dataset, and exposes methods to: retrieve layer information set attribute and spatial filters set a list of ignored or selected columns traverse and read feature data by traditional row-based cursor, including an analog of DBI::dbFetch() read via column-oriented Arrow Array stream write new features in a layer edit/overwrite existing features upsert delete features perform data manipulation within transactions. GDALVector is a C++ class exposed directly to R (via RCPP_EXPOSED_CLASS). Fields and methods of the class are accessed using the $ operator. Note that all arguments to class methods are required and must be given in the order documented. Most GDALVector methods take zero or one argument, so this is usually not an issue. Class constructors are the main exception. Naming the arguments is optional but may be preferred for readability. Arguments dsn Character string containing the data source name (DSN), usually a filename or database connection string. layer Character string containing the name of a layer within the data source. May also be given as an SQL SELECT statement to be executed against the data source, defining a layer as the result set. read_only Logical scalar. TRUE to open the layer read-only (the default), or FALSE to open with write access. open_options Optional character vector of NAME=VALUE pairs specifying dataset open options. spatial_filter Optional character string containing a geometry in Well Known Text (WKT) format which represents a spatial filter. dialect Optional character string to control the statement dialect when SQL is used to define the layer. By default, the OGR SQL engine will be used, except for RDBMS drivers that will use their dedicated SQL engine, unless "OGRSQL" is explicitly passed as the dialect. The "SQLITE" dialect can also be used. Value An object of class GDALVector, which contains pointers to the opened layer and the GDAL dataset that owns it. Class methods that operate on the layer are described in Details, along with a set of writable fields for per-object settings. Values may be assigned to the class fields as needed during the lifetime of the object (i.e., by regular <- or = assignment). Usage (see Details) ## Constructors # for single-layer file formats such as shapefile lyr <- new(GDALVector, dsn) # specifying the layer name, or SQL statement defining the layer lyr <- new(GDALVector, dsn, layer) # for update access lyr <- new(GDALVector, dsn, layer, read_only = FALSE) # using dataset open options lyr <- new(GDALVector, dsn, layer, read_only, open_options) # setting a spatial filter and/or specifying the SQL dialect lyr <- new(GDALVector, dsn, layer, read_only, open_options, spatial_filter, dialect) ## Read/write fields (per-object settings) lyr$defaultGeomColName lyr$returnGeomAs lyr$promoteToMulti lyr$convertToLinear lyr$wkbByteOrder lyr$arrowStreamOptions lyr$quiet lyr$transactionsForce ## Methods lyr$open(read_only) lyr$isOpen() lyr$isReadOnly() lyr$getDsn() lyr$getFileList() lyr$info() lyr$getDriverShortName() lyr$getDriverLongName() lyr$getName() lyr$getFieldNames() lyr$testCapability() lyr$getFIDColumn() lyr$getGeomType() lyr$getGeometryColumn() lyr$getSpatialRef() lyr$bbox() lyr$getLayerDefn() lyr$getFieldDomain(domain_name) lyr$setAttributeFilter(query) lyr$getAttributeFilter() lyr$setIgnoredFields(fields) lyr$setSelectedFields(fields) lyr$getIgnoredFields() lyr$setSpatialFilter(wkt) lyr$setSpatialFilterRect(bbox) lyr$getSpatialFilter() lyr$clearSpatialFilter() lyr$getFeatureCount() lyr$getNextFeature() lyr$setNextByIndex(i) lyr$getFeature(fid) lyr$resetReading() lyr$fetch(n) lyr$getArrowStream() lyr$releaseArrowStream() lyr$setFeature(feature) lyr$createFeature(feature) lyr$batchCreateFeature(feature_set) lyr$upsertFeature(feature) lyr$getLastWriteFID() lyr$deleteFeature(fid) lyr$syncToDisk() lyr$startTransaction() lyr$commitTransaction() lyr$rollbackTransaction() lyr$getMetadata() lyr$setMetadata(metadata) lyr$getMetadataItem(mdi_name) lyr$close() Details Constructors new(GDALVector, dsn) The first layer by index is assumed if the layer argument is omitted, so this form of the constructor might be used for single-layer formats like shapefile. new(GDALVector, dsn, layer) Constructor specifying the name of a layer to open. The layer argument may also be given as an SQL SELECT statement to define a layer as the result set. new(GDALVector, dsn, layer, read_only) Constructor specifying read/write access (read_only = TRUE|FALSE). The layer argument is required in this form of the constructor, but may be given as empty string (""), in which case the first layer by index will be assumed. new(GDALVector, dsn, layer, read_only, open_opti
$isReadOnly() Returns a logical value, TRUE if the vector dataset has read-only access or FALSE if it is writable.
$getFileList() Returns a character vector of files believed to be part of the data source. If it returns an empty string ("") it means there is believed to be no local file system files associated with the dataset (e.g., a virtual file system). The returned filenames will normally be relative or absolute paths depending on the path used to originally open the dataset.
$info() Prints information about the vector layer to the console (no return value, called for that side effect only). For non-SQL DSN/layer, calls ogrinfo() passing the command options cl_arg = c("-so", "-nomd"), and for layers open with a SQL statement, calls ogrinfo() passing the command options cl_arg = c("-so", "-nomd", "-sql", <statement>).
·firelab.github.io·
Class encapsulating a vector layer in a GDAL dataset — GDALVector-class
National Wetlands Inventory · Qiusheng Wu · Source Cooperative
National Wetlands Inventory · Qiusheng Wu · Source Cooperative
The US National Wetlands Inventory (NWI) is a publicly available resource that provides detailed information on the abundance, characteristics, and distribution of US wetlands. The US Fish and Wildlife Service (FWS) is the principal US Federal agency tasked with providing information to the public on the status and trends of our Nation's wetlands. Wetlands provide a multitude of ecological, economic and social benefits.
·source.coop·
National Wetlands Inventory · Qiusheng Wu · Source Cooperative
ArcGIS Spatial Analysis API Connector
ArcGIS Spatial Analysis API Connector
Build a ArcGIS Spatial Analysis-to-database pipeline in Python using dlt with AI Workbench support for Claude Code, Cursor, and Codex.
·dlthub.com·
ArcGIS Spatial Analysis API Connector
DB-AGENTS | Notion
DB-AGENTS | Notion
DB-AGENTS is a proposal for an AGENTS.md-style convention that embeds agent-readable semantics and guidance directly inside databases.
·notion.so·
DB-AGENTS | Notion
Source Cooperative
Source Cooperative
A data publishing utility for the open web.
·source.coop·
Source Cooperative
portolan-cli
portolan-cli
A CLI tool for managing cloud-native geospatial data
·portolan-sdi.org·
portolan-cli
LLM Multi-Agent Orchestrator Built on ellmer
LLM Multi-Agent Orchestrator Built on ellmer
Graph-based workflow engine for orchestrating multiple large language model (LLM) agents with different roles, tools, and providers. Built on ellmer, providing LangGraph-style directed graphs where node functions collaborate via shared typed state channels with reducer semantics. Supports checkpointing, termination conditions, visualization, and convenience workflow patterns (sequential, supervisor, debate).
·arnold-kakas.github.io·
LLM Multi-Agent Orchestrator Built on ellmer
Agentic Coding: Complete Guide to AI-Assisted D - TeamDay.ai
Agentic Coding: Complete Guide to AI-Assisted D - TeamDay.ai
Master agentic coding with this comprehensive guide. Learn the patterns, tools, and best practices for orchestrating AI agents to write production-quality code.
·teamday.ai·
Agentic Coding: Complete Guide to AI-Assisted D - TeamDay.ai
Tokio - An asynchronous Rust runtime
Tokio - An asynchronous Rust runtime
Tokio is a runtime for writing reliable asynchronous applications with Rust. It provides async I/O, networking, scheduling, timers, and more.
·tokio.rs·
Tokio - An asynchronous Rust runtime
A Guide to Geospatial Data Quality and Validation - Spatial Eye
A Guide to Geospatial Data Quality and Validation - Spatial Eye
Learn proven geospatial data validation techniques that prevent costly infrastructure failures. Complete framework for quality control automation and error prevention.
·spatial-eye.com·
A Guide to Geospatial Data Quality and Validation - Spatial Eye
Syllabus
Syllabus
·espm-288.carlboettiger.info·
Syllabus
Perform a specialized validation with a user-defined function — specially
Perform a specialized validation with a user-defined function — specially
The specially() validation function allows for custom validation with a function that you provide. The major proviso for the provided function is that it must either return a logical vector or a table where the final column is logical. The function will operate on the table object, or, because you can do whatever you like, it could also operate on other types of objects. To do this, you can transform the input table in preconditions or inject an entirely different object there. During interrogation, there won't be any checks to ensure that the data is a table object.
·rstudio.github.io·
Perform a specialized validation with a user-defined function — specially
PMTilesBR
PMTilesBR
Geospatial tiled datasets for spatial visualization and analysis in Brazil.
·pmtiles.com.br·
PMTilesBR
Immutables
Immutables
Monoid-annotated 2-3 finger trees for R
·oneilsh.github.io·
Immutables