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

LIBKML: dump feature when its geometry cannot be written #10832

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rouault
Copy link
Member

@rouault rouault commented Sep 18, 2024

Fixes #10829

Example

$ ogr2ogr -f LIBKML test.kml test.csv || echo "==> failed"
Warning 1: Self-intersection at or near point 0.5 0.5
ERROR 6: Invalid polygon
ERROR 1: Cannot translate feature: OGRFeature(test):-1
  id (Integer) = 1
  i (Integer) = -21121
  WKT (String) = POLYGON((0 0,1 1,1 0,0 1,0 0))
  POLYGON ((0 0,1 1,1 0,0 1,0 0))

ERROR 1: Unable to write feature 1 from layer test.
ERROR 1: Terminating translation prematurely after failed
translation of layer test (use -skipfailures to skip errors)
==> failed

Fixes OSGeo#10829

Example
```
$ ogr2ogr -f LIBKML test.kml test.csv || echo "==> failed"
Warning 1: Self-intersection at or near point 0.5 0.5
ERROR 6: Invalid polygon
ERROR 1: Cannot translate feature: OGRFeature(test):-1
  id (Integer) = 1
  i (Integer) = -21121
  WKT (String) = POLYGON((0 0,1 1,1 0,0 1,0 0))
  POLYGON ((0 0,1 1,1 0,0 1,0 0))

ERROR 1: Unable to write feature 1 from layer test.
ERROR 1: Terminating translation prematurely after failed
translation of layer test (use -skipfailures to skip errors)
==> failed
```
@rouault rouault added this to the 3.10.0 milestone Sep 18, 2024
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 69.373% (+0.001%) from 69.372%
when pulling ce8b294 on rouault:fix_10829
into c8a0113 on OSGeo:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Say which polygon had the problem
2 participants