Changelog¶
All notable changes to this project are documented here. The format follows Keep a Changelog.
0.3.2 - 2026-12-01¶
Added¶
geodetic_engine.cataloglists what the active PROJ database holds (#3):crs(),operations(),datums(),ellipsoids(),prime_meridians(),units(),methods(),coordinate_systems()andgrids(), withauthorities()anddatabase()for provenance. Every listing takes the sameauthority,name(substring, alias or pattern),code,deprecated,limitandoffsetfilters, the located ones alsoarea_of_interest,containsandarea_name, decided exactly as PROJ’s own CRS search decides them, and each its own: CRS kind, datum, unit and projection method; source and target CRS, method, accuracy, grid use, grid availability and supersession; ensembles, dynamic frames and members; ellipsoid axes; and more. A filter is checked at the call, and a reference that names nothing of its kind, such as a CRS code given as a datum, is an error. Listings are lazy, read through pyproj wherever pyproj answers and fromproj.dbotherwise, once per database, and export as DataFrames or as JSON. Each entry’sto_json_dict()is the object’s official PROJJSON; a listing’s JSON wraps PROJJSON-shaped items, with deprecation, replacements, OSDU record ids and grid availability beside them, in an envelope described bylisting_schema(). Deprecated operations, which PROJ never offers, can now be listed.Horizontal and vertical operations can be combined in one transformation (#42) between compound CRSs (including compound CRSs with a
BoundCRShorizontal part), 3D geographic/projected CRSs, and geocentric CRSs, whether named, stated, deprecated, or spanning an intermediate hub datum. Chains compile to a single peephole-optimized PROJ pipeline executing in one C call.AppliedOperation.parts(andoperation.partsin JSON) lists each constituent operation in execution order with its code, accuracy, andexecution_direction.
Changed¶
Chained transformations now compile into a single peephole-optimized PROJ pipeline (
Transformer.from_pipeline) rather than executing multipleTransformerinstances in Python.Helmert transformations between compound CRSs with depth or non-metre vertical axes now pass the height in metres counted upwards rather than the raw depth/unit value.
Fixed¶
Worked around a PROJ cache mutation where identifying a PROJJSON CRS on a datum ensemble caused subsequent registry lookups on that ensemble to return a plain datum without members.
fully_requestednow recognizes conversion parts (map projections, height/depth conversions, ensemble-realisation bridges) and normalized outer bookkeeping in PROJ’s fused compound candidates._crs_tools.compound()now stores PROJJSON (rather than the display name) asdefinition, preventing cache collisions intransform()for compound CRSs that share a display name but differ in vertical unit.Two-dimensional positions transformed through a chained pipeline whose core operates on three-dimensional geocentric CRSs (such as a time-dependent Helmert supplied as a
pyproj.crs.CoordinateOperation) no longer lose their latitude to0.0(#46). Multi-step pipelines now carry all three spatial components between steps, matching a single PROJ pipeline.CRS URNs and URIs read from GeoJSON 2008
crsand JSON-FGcoordRefSysmembers now restrict authority, version and code tokens (with codes matching[\w.-]+), rejecting trailing text such as injected PROJ strings withInvalidGeoJsonErrornaming the JSON path (#46). Document CRS members in GeoJSON, JSON-FG and AnyCrs now resolve strictly by authority and code (CoordinateReferenceSystem.from_authority), OSDU record id or persistableReference rather thanfrom_user_input.Converting an AnyCrs document that states a vertical CRS (or a compound source CRS) to a two-dimensional target with
output="anycrs"now carries the heights in their vertical CRS instead of raisingAmbiguousOperationError, writespersistableReferenceVerticalCrsfor that vertical CRS and appliestarget_unit_z(#46). GeoJSON and JSON-FG outputs continue to require an explicit vertical operation or three-dimensional target.
0.3.1 - 2026-11-09¶
Fixed¶
geodetic-projdb buildno longer fails as a whole when a register’s concatenated operation uses an operationproj.dbalready defines, such as an EPSG transformation, thatproj.dbruns between other CRSs than the register declares for it. EPSG v13.102 restatedEPSG:10854from ETRS89 (EPSG:4258), where v12.029 ran it from ETRS89-NOR [EUREF89] (EPSG:10875), so a register on an earlier EPSG version that chains it defines a chain PROJ 9.9.0 cannot build, and PROJ’s validation of the finished database refused the whole build. Such an operation now fails validation on its own: it is skipped, logged as a warning and listed in the build report with both pairs of CRSs, and the rest of the register is imported.scripts/build_organisation_projdb.pycould not add the official OSDU catalogue to a register’s database: it ran the OSDU build in the directory holding the register’sproj.db, which pyproj, withPROJ_DATAunset, takes for its data directory, so the build found no official database to start from. Both builds now run in a directory of their own.
0.3.0 - 2026-11-09¶
Added¶
An installed distribution can provide the database PROJ reads in place of the shipped OSDU one, by naming a directory that holds a
proj.dbunder the entry point groupgeodetic_engine.proj_data. The import’s rules,use_bundled_database()andactive_database()treat it as the bundled database, and the reason names the distribution. It is passed over, with a warning, if it was built for another PROJ release than pyproj links, if PROJ would refuse its database layout, judged by theproj.dbthat came with that PROJ rather than the one PROJ reads, if more than one distribution provides one, or if it cannot be loaded, its module raising an exception or callingsys.exit(); and every one is if the installed distributions’ entry points cannot be read, so that a malformedentry_points.txtin any of them fails no import.GEODETIC_ENGINE_OSDU_DB=0keeps the import from loading any. It is found, its module imported and its directory made absolute, before the search path lock is taken.scripts/build_organisation_projdb.pybuilds a Georepository register once, as a wheel its userspip installfrom a private package index, with no Georepository URL, authorities or credentials of their own. It builds the register, the official OSDU catalogue and the grid filename patches into the pinned pyproj wheel’s ownproj.db, in a new environment holding the dependency versionsuv.lockpins; on Windows, where the grid patch cannot run, it refuses to start without--skip-grid-patch. Every process it starts,ensurepip, uv andgitincluded, gets only what it needs of the caller’s environment to run and to reach the network, and the register import alone also the two credentials. It refuses a database that does not open read-only, carries other metadata than the wheel’sproj.db, or holds nothing of an authority it imported. The wheel is versioned as the PROJ release and the minute of the build, so<name>==<PROJ release>.*installs the newest build for that release, and holds the database alone in its directory, the build reports, and a manifest naming the PROJ release, EPSG version and database layout it is for. The new page Sharing a built database explains why it belongs in a private index and not a public one, how to avoid dependency confusion with uv and pip, extra indexes in pip’s configuration included, and gives a workflow that builds and uploads it.
Changed¶
scripts/build_bundled_osdudb.pyandscripts/check_installed_wheel.pypass their processes only what they need of the caller’s environment:PATH,HOME, the temporary directories, the locale, proxies and certificate bundles, and pip alone also itsPIP_settings. They passed every variable butPROJ_andGEODETIC_ENGINE_ones, andvenvpassed every one to theensurepipit runs, so a secret such as an upload token reached pip, the builds and the check.ensurepipis now run asvenvruns it, with the narrower environment.
Fixed¶
scripts/check_package_dist.py, and with itscripts/build_bundled_osdudb.pyandscripts/check_installed_wheel.py, could not read a database on a UNC path, such as one in a temporary directory on a network share:Path.as_uri()made the server the URI’s authority, which SQLite refuses. They now open a database asgeodetic_enginedoes.
0.2.0 - 2026-11-04¶
Added¶
Geometries (#23).
Transformation.transform_geometry()andtransform_geometries()transform vector geometries read from WKT, WKB and hex WKB, PostGIS EWKT and EWKB, GeoJSON geometry objects, Esri JSON geometries, Shapely geometries and anything with a__geo_interface__; a batch may be a sequence, a numpy array, a pandas Series or a GeoPandas GeoSeries, and its encodings come back in the same container. Every coordinate goes throughtransform_arrays()in one call per number of values per position, so the operation, grids, epoch and range checks are those of points, and the coordinates are bit for bit the same. A position that fails fails the batch, naming its geometry, part, ring and vertex. Z is transformed where the CRSs have a height and carried through otherwise; M is carried through. An SRID or EsrispatialReferencemust state the source CRS;srid_authoritysays which authority an SRID is a code of.axis_order="crs"reads and writes a CRS’s declared order,densifyinserts vertices before transforming, along straight segments in source CRS units or, withsegments="geodesic", along geodesics on the source CRS’s ellipsoid in metres, andorientwinds rings, which are otherwise kept as transformed. In a geographic target CRS, a part crossing the antimeridian is cut there into parts of a multipart geometry, as RFC 7946 has it (antimeridian="split";"unwrap"carries its longitudes on past ±180° instead), and a ring round a pole is closed through it. The new modulegeodesy.geometryhasread_geometry,write_geometryandround_geometry:decimalsrounds half up by each value’s shortest decimal form (2.675is2.68,-0.125is-0.13), before encoding, so every encoding holds the same numbers, and reports a polygon it made invalid withGeometryValidityWarning;grid_sizesnaps to a grid instead. WKB is written ISO, EWKB extended, and WKT with the shortest form of each number that reads back the same.geodesy.GeometryErroris raised for geometries that cannot be read or written. Shapely 2.2 is a new dependency;import geodetic_engine.geodesydoes not load it.geodetic_engine.geojson.convert_geojson(#21) converts RFC 7946 GeoJSON, OGC JSON-FG 1.0 and OSDU AnyCrs GeoJSON documents, with aFeatureCollection, aFeatureor a geometry at the root, to another CRS, keeping structure,id,properties, foreign members and key order, and computing everybboxagain. JSON-FGplaceis read in the nearestcoordRefSys, in its declared axis order and with its epoch, and an ad hoc compoundcoordRefSystransforms heights between vertical datums; a GeoJSON 2008crsmember is read too. Plain GeoJSON in a CRS other than WGS 84 is written as JSON-FG (output="auto"), and"geojson","anycrs","jsonfg"and"jsonfg-plus"choose the flavour. An AnyCrs vertical CRS makes heights compound rather than only scaled;target_unit_zconverts heights, andpersistableReferenceUnitZis always written for them.on_errorraises naming the position’s JSON path, withdraws the feature’s geometry, or writes NaN as the OSDU service does.decimalsandorientround and wind as for geometries, anddensifyandsegmentsinsert vertices along straight segments or geodesics as for them, which are converted and counted with the others. In a geographic target CRS, a line or polygon crossing the antimeridian is cut there as for geometries, itstyperenamed to the multipart one, and a ring round a pole is closed through it (antimeridian="split";"unwrap"or None as for geometries); abboxthen crosses the antimeridian, its west bound east of its east one, as RFC 7946 (5.2) has it, where that box is the narrower and no wider than half a turn.convert_geojson_requesttakes and returns the OSDU service’sconvertGeoJsonrequest and response, its positions never cut.geodetic_engine.units: one reader for the length and angle units the package takes, from a symbol or name, an OSDUUnitOfMeasurerecord id, URL-encoded or not, or an OSDU unit persistableReference,USOor aUADthat reduces to a scale.length_unitandangle_unitreturn aUnit, with its symbol, quantity and scale,to_si,from_si, andreference(), which gives back the payload it was read from or writes one. A unit that cannot be read raisesunits.UnitError, aValueError. The tables of symbols and of the ancestries each quantity accepts now exist only here:welltrajectory.length_factorandangle_factorread units through it, and the GeoJSON groundwork no longer importswelltrajectory(#30).The PROJ, proj-data and pyproj releases, their checksums and the pyproj wheel index are stated in one file,
.devcontainer/pins.env, parsed strictly and never sourced.install-proj.sh, the Dockerfile, the workflows, the release scripts and the tests read it, and the wheel ships a copy thatgeodetic_enginereads on import.scripts/sync_pins.pyrewrites the copies that must stay literal text (thepyprojdependency, thenuv lock, and the install commands in the README, the docs and the example notebook), and--check, run by the lint workflow and the tests, fails on a stale one. The environment checks also fail when pyproj was compiled against another PROJ than it links, or when the installed proj-data is not the release the pinned PROJ’sproj.dbnames.runbooks/upgrading-proj-and-pyproj.mdis the maintainers’ procedure for moving the pins.The wheel ships the official OSDU catalogue already built into PROJ’s database, so OSDU CRSs, record ids and persistable references resolve right after
pip install, with no build step, on Linux, macOS and Windows. The wheel stayspy3-none-any; the database adds 2.8 MB to it (23.2 MB on disk).pypi_release.ymlbuilds it at release time withgeodetic-osdudb build --official, in a new environment with the pinned pyproj wheel, whose ownproj.dbis the base, so its EPSG content is exactly what users install.scripts/build_bundled_osdudb.pybuilds the same file for developers. It is generated and gitignored, and the build backend includes it in both the sdist and the wheel, asgeodetic_engine/osdudb/_data/proj_data/proj.db, alone in its directory.scripts/check_package_dist.pyrequires it, and checks that it opens read-only, carries the metadata of the pinned pyproj wheel’s ownproj.db(PROJ release, database layout, EPSG version), holds OSDU objects, ids and persistable references, and records the commit and SHA-256 of the bundled catalogue; the sdist must carry the same file. Nothing in these scripts or workflows states a version: the pins are read from.devcontainer/pins.env, in the checkout or as the copy in the built wheel. CI installs the built wheel into a clean environment on Linux and Windows and resolvesOSDU:2003001and an OSDU record id from it, also in a spawned child process, with no build step and noPROJ_variable set. The build and the check leave out everyPROJ_variable of the caller’s, not onlyPROJ_DATA: aPROJ_AUX_DBwould be attached to the base database, and could answer the check in the shipped one’s place.import geodetic_enginemakes the shipped database the one PROJ reads unless another was chosen, in the precedence of the project’s pyproj wheels. The first rule that matches decides:GEODETIC_ENGINE_OSDU_DB=0changes nothing; nor does apyproj.datadir.set_data_dir()orappend_data_dir()call made before the import; nor aPROJ_DATA, orPROJ_LIBwhenPROJ_DATAis unset, that names a directory holding aproj.db. PROJ then searches the variable’s directories, the one holding theproj.dbfirst; a value pyproj has not read, such as one set after pyproj was imported, is applied, with a warning, so a process reads the database a child started with its environment reads; but not if thatproj.dbrecords no database layout, or an older or another one than theproj.dbPROJ reads, which PROJ would refuse: then nothing changes, with a warning. Otherwise PROJ searches the shipped database’s directory first, then thePROJ_DATA/PROJ_LIBdirectories, then pyproj’s own, so grids andproj.iniare still found. The outcome is logged atINFO, with the reason when the shipped database is not used, such asPROJ_LIB=C:\OSGeo4W\share\proj holds a proj.db. A laterset_data_dir()still overrides it. The newgeodetic_engine.osdudb.active_database()reports whichproj.dbPROJ reads and why, anduse_bundled_database()switches the shipped one on or off. Another thread follows a switch the next time it callsactive_database()or resolves anything through the package, so what is reported is what that thread reads. pyproj’s installedproj.dbis never modified, provenance names the shipped file when it answered, and a spawned child process applies the same rules when it imports the package; a forked one inherits its parent’s choice, and a fork waits for a switch in progress to finish.geodetic-osdudb buildandgeodetic-projdb buildstill start from the stock database, andgeodetic-osdudb buildis still how to get a newer or a custom catalogue. The test suite runs withGEODETIC_ENGINE_OSDU_DB=0, against the stock database, and tests each rule in a fresh interpreter.Packaging.
pyproj-wheels.ymlbuilds pyproj with pyproj’s own release tooling against the pinned PROJ, read from.devcontainer/install-proj.sh, and releases the wheels on GitHub aspyproj 3.8.0+proj9.9.0. The documentation site serves them as a package index undersimple/.pypi_release.yml, run by hand, publishes the package to TestPyPI or PyPI, as chosen, with trusted publishing, and tags a PyPI releasev<version>with a GitHub release carrying its changelog section. It is published aspygeodetic-engine, since PyPI refusesgeodetic-engineas too close to the existinggeodeticengine; it is still imported asgeodetic_engine.geodetic_engine.__version__is read from the installed package’s metadata, so it reports the version that was published.Installed packages reject a pyproj linked to a different PROJ. The custom wheels honor
PROJ_DATAahead of their bundled database, and the documented installation commands select the exact pinned wheel even when another pyproj is already installed. The wheel includes the official OSDU catalogue;geodetic-osdudb build --officialverifies and builds it offline.The source-built test suite runs on CPython 3.15 as well as 3.13, and the pyproj wheel workflow also builds CPython 3.15 wheels, without changing the minimum supported Python version.
The pyproj wheel workflow caches native dependencies and PROJ per platform; wheels are still rebuilt and smoke-tested on every run. A manual clean rebuild can bypass the caches.
Transformation.transform_arrays()returns owned NumPy axis buffers with provenance, without allocating Python objects per output point.transform_batches()lazily processes numeric row batches without prefetch or retained history. Inputs are never modified; array execution uses private contiguous buffers in place through PROJ, vectorised validation and cached pipeline text. The existing tuple-based API and geodetic rules are preserved.ArrayTransformationResult.metadata_json_dict()exports provenance separately from coordinates for streaming adapters. An engine benchmark compares the numeric and legacy paths to raw pyproj and measures bounded-stream allocations.geodetic_engine.geodesy.projection_factors: grid convergence, point scale factor, meridional and areal scale and angular distortion at any point of a projected CRS, read through a bound CRS’s base and a compound CRS’s horizontal part, with the sign convention stated. Web Mercator’s scales are given on its ellipsoid rather than PROJ’s sphere.ProjectionFactors.conformalsays whether the projection preserves angles, and the helpers that turn azimuths between grid and true north refuse one that does not. A CRS with no map projection raises the newUnsupportedCRSError, which the bin grid module’s ownUnsupportedCRSErroralso is. Documented in the geodesy user guide.geodetic_engine.welltrajectory: well trajectories from directional surveys, by minimum curvature, georeferenced in a CRS on its own datum by one of four methods, with dogleg severity, interpolation along the arcs and 3D plots. A survey whose first station is not at MD 0 is tied in there, at the wellhead. Azimuths against grid north need a projection that preserves angles at the wellhead, as doesGridNorthLocal; azimuths against true north are placed in any geographic or projected CRS. LMP integrates from the surveyed stations, so points added between them never move them, and a step giving more than a million points is refused. The input is aTrajectoryInput, built from arrays, rows, a pandas DataFrame, a CSV survey file, or an OSDUconvertTrajectoryrequest body read as the service reads it, and the result aWellTrajectory. The CSV reader finds the survey columns by their usual names or by name given as an argument, ignores other columns, detects the delimiter, takes the unit from a name such asMD (ft), and reads the wellhead and the settings from a header under their usual names; a unit it cannot read, or one that disagrees with a column’s own, is refused, never defaulted. It also reads a survey report as it is: free text above a table lined up with spaces, with a line of units, in UTF-8 or Latin-1, taking only the name and the north reference from the free text. A synthetic survey file and the survey report of Volve F-1, a real well, ship inexample_data. Plotting needs the newplotextra, which thedocsextra includes;open_in_browserserves a figure at an unguessable local address. Documented in a user guide section of its own, the API reference and an example notebook.Documentation site built with Sphinx and published to GitHub Pages: getting started, a user guide for every module, executed examples, a generated API and command-line reference, background, and a list of known issues and workarounds (#1).
AppliedOperation.bound_operations: the operations the CRSs themselves declared when the route isbound, so a pair of bound CRSs reports both codes instead of none.operation=accepts apyproj.crs.CoordinateOperationas the operation itself, applied as stated.A longitude beyond a full turn is refused with
CoordinateOutOfRangeError, as an impossible latitude already was.geodetic_engine.bingrid: seismic bin grids. P6 bin grid to map grid conversion, run as PROJ’s affine operation with the coefficients PROJ gives EPSG methods 9666 and 1049, four-corner QC and squaring, outlines, and conversion to another CRS throughgeodesy. The bin grid scale factor is PROJ’s point scale factor at the grid centre.geodetic_engine.bingrid.matchingassigns a legacy dataset to a stored grid. The defects of the OSDU Java service’s bin grid computation are not reproduced; each has a test markedjava_defectstating the correct behaviour.OSDU record ids, such as
opendes:reference-data--CoordinateReferenceSystem:BoundProjected:EPSG::23031_EPSG::1133oropendes:reference-data--CoordinateTransformation:EPSG::1612, resolve wherever an authority code does: CRS inputs,operation=, and the newCoordinateReferenceSystem.from_osdu_id, which also takes a baredata.ID.geodetic-osdudb buildrecords the id of every catalogue record against the object it names, including EPSG objects the baseproj.dbalready defines, in a newgeodetic_engine_osdu_object_identifiertable keyed by scheme and id. The data partition and any version separator are ignored. Lookup is exact and table-only: an id is never decoded from its spelling or matched approximately, so a mistyped id is refused rather than resolved to a near miss. A bound CRS’s id resolves to the bound CRS. Ids that name nothing are listed in the report with the reason, an id published for two objects is recorded for neither, an append that would move an id to another object, or publish an earlier id for more than one object, is refused without--overwrite-rows, which moves or removes it, and validation checks every id still names an object. Each id is also written as a PROJ alias (sourceOSDU_ID) for tools reading the database through PROJ; PROJ matches aliases approximately, so--no-osdu-id-aliases/osdu_id_aliases = falseleaves them out.inspectcounts the ids by scheme. The OSDU user guide shows how to instantiate CRSs, bound CRSs and operations by id, and section 8 of the worked examples notebook runs those examples against a small database it builds first, since an id resolves only once its record is inproj.db.OSDU persistable references:
geodetic-osdudb buildrecords thePersistableReferenceevery catalogue record publishes, verbatim, against the record’s id, including for EPSG objects the baseproj.dbalready defines, in a newgeodetic_engine_osdu_persistable_referencetable. The table is keyed by record id with a foreign key to the identifier table, and a view joins each reference to its object. Each row also records the kind, stated name,authCode, version and SHA-256. A record that states no reference (every geocentric CRS), or one that cannot be read or states the wrong kind of object, never fails the build: it is not recorded, and it is listed in the report’s newpersistable_referencessection with the reason. A reference that disagrees with its record, such as anauthCodenaming another code, is recorded as published with a warning. An append that would change a recorded reference is refused without--overwrite-rows, and one whose catalogue no longer states a usable reference keeps the recorded one, with a warning, unless--overwrite-rowsremoves it. Validation checks every digest and kind.--no-persistable-references/osdu_persistable_references = falseleaves the references out.geodetic_engine.persistablereferencegainspersistable_reference_from_catalog,persistable_references_from_catalog,export_persistable_references_from_catalog(JSON, JSONL or CSV),missing_reference_reason,pretty_persistable_reference(indented JSON, optionally with the ESRI WKT laid out over lines for reading),CatalogPersistableReferenceandAmbiguousCatalogReferenceError.CoordinateReferenceSystem.persistable_reference_from_catalog()andAppliedOperation.persistable_reference_from_catalog()look up the reference for a CRS or for the operation applied.esriwkt.prettylays ESRI WKT out, changing whitespace only. There is a newgeodetic-osdudb referencescommand, andinspectcounts the references by kind.The official OSDU catalogue is committed and installed by default in the devcontainer. OSDU’s public
CRS_CT.json(Apache 2.0) is committed byte for byte ascatalogs/osdu/CRS_CT_osdu_official_crs_catalog.json, with the OSDU commit and SHA-256 it came from inCRS_CT_osdu_official_crs_catalog.source.jsonand an entry inNOTICE. The newscripts/install-osdu-projdb.shbuilds it intobuild/proj.db, recording that commit as the report’ssource_version, and linkslocal/proj-data/proj.dbto it; nothing is downloaded. The devcontainer runs it on creation and putslocal/proj-datafirst onPROJ_DATA, so OSDU CRSs, bound CRSs, transformations, record ids and persistable references resolve out of the box, and the documentation build runs it too. A committed catalogue changed by a pull is imported again on the next run, and--check, run on every start, says when it has not been yet. A failure never fails container creation: it prints a warning saying why and keeps an earlierbuild/proj.dbin use, or, without one, says that no OSDU objects are available and links the stock database instead;--strictmakes it exit non-zero. Abuild/proj.dbbuilt for another PROJ release or database layout, which PROJ cannot open, is never linked: it is moved tobuild/proj.db.staleand the official catalogue is built from scratch.--updatefirst replaces the committed catalogue with the newest OSDU publishes, for the change to be reviewed and committed, through the newgeodetic-osdudb downloadandgeodetic_engine.osdudb.download_official_catalog. These read it through GitLab’s API, atmasteror any--ref, and write nothing unless it arrived whole, matches the digest the server states and reads as a manifest; otherwise the newCatalogDownloadErroris raised and the committed copy is left as it was. The installedproj.dbis still never modified, and the tests still run against it alone in CI.Custom OSDU catalogues on top of the official one. Appended with
--overwrite-rows, a catalogue’s own CRSs and transformations are added, a record it states differently replaces the earlier definition, and one it states identically is left untouched. Every replacement is named: the build summary lists each replaced definition with the columns that changed, each OSDU id now naming another object, and each persistableReference replaced or removed as aWARNING, and the report records them underoverrides, with the countsobjects_replaced,identifiers_movedandpersistable_references_replaced. A collision refused without--overwrite-rowsnow says how to let the source replace the earlier definition.scripts/install-osdu-projdb.shbuilds every catalogue inlocal/catalogs/custom/, and each--custom, on top of the official one on every run, importing each code space it publishes records under except EPSG, so they stay on top when the official catalogue is imported again; one that cannot be built is a warning, or an error with--strict. The console names the first 25 replacements of each kind, and the log file and report every one.TransformationFailedError.pointand.detail: the index of the point a transformation failed for, counted in the batch or stream, and what is wrong with it, without thepoint Nits message starts with. When the failure is not one point’s,pointis None anddetailis the whole message.
Changed¶
geodesyandpersistablereferenceno longer import each other (#29). proj.db access, OSDU record ids, the PROJJSON inspection payloads need, thexyaxis-order model, the Helmert algebra, andGeodesyError,UnembeddableOperationErrorandNotCollapsibleErrormoved to a private lower layer,geodetic_engine._referencing. Every public import path still works, re-exporting the same objects, soexceptclauses match as before; onlygeodetic_engine.geodesy.utils.helmertand.abridged, never documented, are gone, with their names still ingeodesy.utils. A traceback names the three moved exceptions by their new module. Importingpersistablereferenceno longer loadsgeodesy, and importinggeodesynow loadspersistablereferenceup front, about 20 ms of a 1.2 s import.persistable_reference_from_catalogandmissing_reference_reasonaccept anyResolvedCrs, an object with thedefinitionit was resolved from and its pyprojcrs, as aCoordinateReferenceSystemis.lint-imports(import-linter) now runs in the lint workflow and enforces the layering, thatwelltrajectory,bingridandgeojsondo not import each other, and thatunitsimports neithergeodesynor a domain package.welltrajectory.UnitErroris also aunits.UnitError, and so aValueError; it is still aWellTrajectoryError. Some of its messages for a unit persistableReference are worded differently, and a unit that is not a string is refused as one rather than read as its text. A unit payload is URL-decoded aspersistablereferencedecodes any payload, at most twice and+as a space, so one encoded three times, or with only its quotes encoded, is no longer read.geodetic-osdudb buildlogs a bound CRS it cannot import, such as the NTF (Paris) ones in the official catalogue, as a warning rather than an error. It is still skipped and listed in the build report.The default base database of a build skips a database this package built, so a build still starts from the official
proj.dbwhen an enriched one is ahead of it on PROJ’s search path. That includes the OSDU database the wheel ships.An OSDU id the active
proj.dbcannot answer, because it records no OSDU ids, is refused with a message that namesactive_database()anduse_bundled_database().PROJ 9.9.0 with EPSG v13.102 and proj-data 1.25, up from PROJ 9.8.1 with EPSG v12.029 and proj-data 1.24; pyproj stays at 3.8.0. PROJ 9.9.0 refuses a
proj.dbwith database layout 1.6, so a database built on PROJ 9.8.1 must be rebuilt. Every workaround on the known-issues page was re-checked and is still needed.Examples, docs and tests name
EPSG:11559instead ofEPSG:9484, which EPSG v13.102 deprecated and restated from ETRS89. The test dataset follows the v13.102 changes toEPSG:28991,EPSG:2180and four deprecated vertical operations; no expected coordinate changed.available_operationscan list many more candidates for a pair whose datums have no area of use in common: PROJ 9.9.0 no longer drops chains whose steps do not overlap when extents are ignored (OSGeo/PROJ#4699). Such a candidate has noarea_of_use.
Fixed¶
A unit persistableReference as the OSDU unit catalogue publishes it, a
UADwhosebaseMeasurementancestry is the Energistics dimension,Lfor a length orAfor an angle, is read. It was refused as not a length or not an angle, so a survey or a height unit given by such a payload failed.A
proj.dbwhose path holds#,?or%, as one installed under a directory such asC#does, is read as the file PROJ reads. The package’s read-only lookups, and the Python fallback inscripts/install-osdu-projdb.sh, put the path into a SQLitefile:URI as it was, which reads those characters as a fragment, a query and an escape, so they opened another file: OSDU record ids, bound CRSs, skip reasons, grid names and persistable references were not found there,default_base_proj_db()found the search path ambiguous, and builds failed. After a#or?,mode=rowas lost as well, so SQLite could create an empty database named after the path up to that character.geodetic-osdudb buildandgeodetic-projdb buildwork on Windows. Validation stages the database asproj.dbin the calling process, so the temporary copy is removed only after the validation process, in which PROJ holds it open, has exited. Publication syncs the staged database through a writable handle and skips the directory sync Windows does not have. A database that cannot be replaced, most often because another process such as a notebook has it open through PROJ, now raisesProjDbBuildErrorwith the cause and is left unchanged. The tests now also run on Windows, against the pinned pyproj wheel, with a build of the official OSDU catalogue.The pyproj wheel build installs macOS dependencies in a writable runner directory and builds curl with OpenSSL. Its Windows smoke test closes the temporary SQLite database before cleanup.
Engineering CRSs now honour the
xyvalue order. PROJ’salways_xynever normalises an engineering CRS, and PROJ reads the origin of a Similarity transformation stated in a northing-first projected CRS in declared order even where the authority stated it easting-first (EPSG’s ownEPSG:1035does); both transposed coordinates silently. The package now adds the missing swap and settles the ordinate convention from the operation’s area of use, refusing the operation when it cannot. Documented as a workaround intransformation.pyand on the known-issues page.A grid the compiled pipeline must read is checked on disk, so a stated operation (OSDU payload) or a bound-CRS chain whose grid is absent raises
MissingGridErrorat construction rather than failing at the first point or being reported as an unavailable operation.to_dataframe()no longer produces duplicate column labels for a CRS whose axes share an abbreviation (EPSG:3388).The devcontainer no longer patches the installed
proj.dbin place or links grids into the installed data directory; local grids are read fromlocal/grids/throughPROJ_DATA, and a patched database is written only under the repository.tests/test_environment.pyguards this.
Security¶
certifi 2026.10.19 or later is required, and the lock file takes certifi 2026.10.23, up from 2026.7.22. httpx, through which the Georepository client and the OSDU catalogue download connect, and PROJ’s network access through pyproj verify TLS against certifi’s roots unless an environment variable such as
SSL_CERT_FILEnames another bundle. Releases before 2026.10.18 trust emSign ECC Root CA - G3, under which intermediate CA keys were compromised (GHSA-6q48-6c7w-9gw2); 2026.10.18 also dropped emSign’s unaffected roots, which 2026.10.19 restored.filelock 4.2.1 or later is required, and the lock file takes filelock 4.2.9, up from 3.32.6. The OSDU database writer locks its output with
FileLock, which on Linux isUnixFileLock; before 4.2.1 that truncates and changes the mode of a file another user renames onto the lock path (GHSA-69hj-f68j-2879), and twelve further advisories cover filelock’s other lock types.The lock file takes Pillow 13.0.0, up from 12.3.0, for 41 advisories in image decoders and encoders. Pillow comes in only through matplotlib in the
devextra; the package does not use it.
0.1.0¶
First version.