-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
GeoPDF handling texts with doughnots wrong. #1932
Comments
I'm a bit confused. How did you generate this PNG file ? With gdal_translate ? |
Sorry, I tried using ogr2ogr and make a sqlite database, ogr2ogr -f sqlite out.sqlite 20150203_Afvanding_revP.pdf 20150203_Afvanding_revP.pdf |
ok, I reproduce the problem (levels_nsf___tekst layer). It is more general that the single instance pointed in the above description. It is likely related to the parsing of drawing instructions of polygons with holes such as a stroked 6 or 9 |
Thanks for reproducing.
Yes I agree. But it was easy to see there.
Can anything be done to it?
Also, when converting geopdf to vector, would it be possible to add
layername and display parameteres like color as attributes in to the
features?
…On Tue, Oct 15, 2019 at 9:50 AM Even Rouault ***@***.***> wrote:
ok, I reproduce the problem (levels_nsf___tekst layer). It is more general
that the single instance pointed in the above description. It is likely
related to the parsing of drawing instructions of polygons with holes such
as a stroked 6 or 9
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1932?email_source=notifications&email_token=AHZADKEOTXH5WYFIUK47AYLQOVY5PA5CNFSM4JAYNLI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBHZH4A#issuecomment-542086128>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZADKHQYSHD2AIGJNWRIALQOVY5PANCNFSM4JAYNLIQ>
.
--
Venlig hilsen
Ove Lindholt Hansen
GeoSite
T: 40916223
A: Stenbrinken 8, DK8420 Knebel
Nyhed: GIS4Mobile - ideelt til trafiksikkerhed og skilteregistrering, incl
skilteikoner på kortet.
Nyhed: DataSync <http://www.geosite.dk/datasync>kan anvendes til at holde
dine GIS data ajourført. Nu også GeoDanmark 6.0. Og BBR data implementeres
i juni.
|
Perhaps. Would require deeper investigation in GDAL source code. |
Thank you very much for helping. Can it be related this:
*PDF_LIB*=[POPPLER/PODOFO/PDFIUM]
Should I test with all 3? How do I set it in ogr2ogr and when connecting in
C#?
And is it available in the GDAL version I downloaded using nuget 2.3.1 from
22/6 2018?
…On Tue, Oct 15, 2019 at 10:38 AM Even Rouault ***@***.***> wrote:
Can anything be done to it?
Perhaps. Would require deeper investigation in GDAL source code.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1932?email_source=notifications&email_token=AHZADKHGQKUJJ2WQGBGZHP3QOV6RJA5CNFSM4JAYNLI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBH5VSI#issuecomment-542104265>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZADKGWEVW62GWHMJ2LF6TQOV6RJANCNFSM4JAYNLIQ>
.
--
Venlig hilsen
Ove Lindholt Hansen
GeoSite
T: 40916223
A: Stenbrinken 8, DK8420 Knebel
Nyhed: GIS4Mobile - ideelt til trafiksikkerhed og skilteregistrering, incl
skilteikoner på kortet.
Nyhed: DataSync <http://www.geosite.dk/datasync>kan anvendes til at holde
dine GIS data ajourført. Nu også GeoDanmark 6.0. Og BBR data implementeres
i juni.
|
No, this is purely in GDAL code. Switching PDF backend will have no effect for this |
Ok thanks - I struggled a lot with the library.
Can you give me a hint how to get the sourcecode - I might be able to fix
it myself.
In Visual studio, C#
…On Tue, Oct 15, 2019 at 11:48 AM Even Rouault ***@***.***> wrote:
Can it be related this:
No, this is purely in GDAL code. Switching PDF backend will have no effect
for this
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1932?email_source=notifications&email_token=AHZADKBTQPLN6JELM3H22KLQOWGVVA5CNFSM4JAYNLI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBIEOIY#issuecomment-542132003>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZADKFZBPF62EXKILGIQQDQOWGVVANCNFSM4JAYNLIQ>
.
--
Venlig hilsen
Ove Lindholt Hansen
GeoSite
T: 40916223
A: Stenbrinken 8, DK8420 Knebel
Nyhed: GIS4Mobile - ideelt til trafiksikkerhed og skilteregistrering, incl
skilteikoner på kortet.
Nyhed: DataSync <http://www.geosite.dk/datasync>kan anvendes til at holde
dine GIS data ajourført. Nu også GeoDanmark 6.0. Og BBR data implementeres
i juni.
|
Thanks. But maybe even better - do you know if someone can be payed to give
it attention?
…On Tue, Oct 15, 2019 at 2:13 PM Even Rouault ***@***.***> wrote:
somewhere in
https://github.com/OSGeo/gdal/blob/master/gdal/frmts/pdf/pdfreadvectors.cpp#L577
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1932?email_source=notifications&email_token=AHZADKA4CW4HKKK35AH7AUTQOWXWRA5CNFSM4JAYNLI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBIQQ6Q#issuecomment-542181498>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZADKHDI6GJOGESZBCWMSDQOWXWRANCNFSM4JAYNLIQ>
.
--
Venlig hilsen
Ove Lindholt Hansen
GeoSite
T: 40916223
A: Stenbrinken 8, DK8420 Knebel
Nyhed: GIS4Mobile - ideelt til trafiksikkerhed og skilteregistrering, incl
skilteikoner på kortet.
Nyhed: DataSync <http://www.geosite.dk/datasync>kan anvendes til at holde
dine GIS data ajourført. Nu også GeoDanmark 6.0. Og BBR data implementeres
i juni.
|
PDF: fix reading polygon with holes and Bezier curves (fixes #1932)
I have a problem with the GeoPdf reading.
I am working in C#, and installed GDAL 2.4.2 as a nuget package.
I try to import a georeferenced PDF into PostGIS.
The problem is related to texts (see picture)
It looks like doughnuts are handle wrong. The text we look is really 136933
'6' and '9' has interior parts when drawn as polygons.
Please help. Any hint or assistance will be greatly appreciated.
I connect to PDF like this:
var dsInput = Ogr.Open(txtPdf.Text, 0);
The text was updated successfully, but these errors were encountered: