Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC107 candidate implementation #11813

Merged
merged 2 commits into from
Feb 13, 2025
Merged

RFC107 candidate implementation #11813

merged 2 commits into from
Feb 13, 2025

Conversation

rouault
Copy link
Member

@rouault rouault commented Feb 6, 2025

(on top of PR #11794)

  • The OGRLayer::GetExtent(OGREnvelope*, int bForce) and
    OGRLayer::GetExtent(int iGeomField, OGREnvelope*, int bForce) methods are
    no longer virtual methods that are implemented by drivers. They are now
    user facing methods (with the change that the int bForce is now a
    bool bForce). Drivers must implement IGetExtent(int iGeomField, OGREnvelope*,
    bool bForce). The user-facing method checks that the iGeomField value is in range.
    Similarly for OGRLayer::GetExtent3D(int iGeomField, OGREnvelope3D*, int bForce)
    which is now a user facing method (with the change that the int bForce is now a
    bool bForce). Drivers must implement IGetExtent3D(int iGeomField, OGREnvelope3D*,
    bool bForce). The user-facing method checks that the iGeomField value is in range.

  • The OGRLayer::SetSpatialFilter() and SetSpatialFilterRect() methods are
    no longer virtual methods that are implemented by drivers. They are now
    user facing methods (with the change that they return OGRErr instead of void,
    and accept a const OGRGeometry*). Drivers must implement
    ISetSpatialFilter(int iGeomField, const OGRGeometry*). The user-facing methods
    check that the iGeomField value is in range.

@rouault rouault added this to the 3.11.0 milestone Feb 6, 2025
@rouault rouault force-pushed the rfc107 branch 2 times, most recently from cf8969e to 5d5ce4e Compare February 6, 2025 20:49
@rouault rouault added the funded through GSP Work funded through the GDAL Sponsorship Program label Feb 6, 2025
MIGRATION_GUIDE.TXT Outdated Show resolved Hide resolved
MIGRATION_GUIDE.TXT Outdated Show resolved Hide resolved
frmts/ogcapi/gdalogcapidataset.cpp Outdated Show resolved Hide resolved
ogr/ogrsf_frmts/sxf/ogr_sxf.h Outdated Show resolved Hide resolved
@rouault rouault force-pushed the rfc107 branch 2 times, most recently from 7858fb3 to 0d2a882 Compare February 12, 2025 21:07
@rouault rouault merged commit c0e4280 into OSGeo:master Feb 13, 2025
37 checks passed
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 76.367% (+6.3%) from 70.063%
when pulling 7858fb3 on rouault:rfc107
into 6332083 on OSGeo:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
funded through GSP Work funded through the GDAL Sponsorship Program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants