Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
GeoPDF |
Post Reply
|
| Author | |
mingoal
Beginner
Joined: 24 Jan 10 Location: China Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: GeoPDFPosted: 24 Jan 10 at 3:43AM |
|
I tried to use this lib to generate a GeoPDF, but i don't know how to call 'AddLGIDictToPage'. There is not too much infomation about this function also others. So I don't know how to pass the parameter. Hope there is an example or some hints for me.
Thanks!
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 Jan 10 at 6:34AM |
|
Hi!
I think your problem is the structure of the needed string... The AddLGIDictToPage depends on the OGC 08-139r2 specifications. You can read all about this specs here: http://www.opengeospatial.org/standards/bp ...in this document: "GeoPDF Encoding Best Practice Version 2.2" http://portal.opengeospatial.org/files/?artifact_id=33332 Cheers and welcome here, Ingo |
|
![]() |
|
mingoal
Beginner
Joined: 24 Jan 10 Location: China Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 Jan 10 at 8:44AM |
|
Hi Indo
Thanks for you reply, I really appreciate it. I have read the specifications, and I got someting. I'm going to pass a whole PDF-Dictionray-Formatted string to the function offered. Hope it works.
Best Regards!
Mingoal
|
|
![]() |
|
jvonbokel
Beginner
Joined: 16 Apr 10 Location: St Louis, MO Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 Apr 10 at 9:12PM |
|
Did you have any success with that? I'm trying to do the same, and I'm not even sure where to start. I have an idea of the format just by opening a GeoPDF in a text editor, but I can't get even GetPageLGIDictContent or GetPageLGIDictCount to work, so I don't know how I'm going to use AddLGIDictToPage.
|
|
![]() |
|
mingoal
Beginner
Joined: 24 Jan 10 Location: China Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 Apr 10 at 3:10AM |
|
Hi jvonbokel
I succeed in outputing a GeoPDF, below are the formatted-LGIDictContent , what you need to do is passing the whole text as a string to AddLGIDictToPage function.
<<
/Type /LGIDict /Version (2.1) /CTM [ (3524.5004673001) (0.0000000000) (0.0000000000) (3524.5004673001) (-2493370.4940219196) (-1538087.6795059151) ] /Projection << /Type /Projection /ProjectionType (AC) /StandardParallelOne (20.00000) /StandardParallelTwo (60.00000) /FalseNorthing (0.00000) /Datum (NAR) /OriginLatitude (40.00000) /CentralMeridian (-96.00000) /FalseEasting (0.00000) >> /Display << /Type /Projection /ProjectionType (AC) /StandardParallelOne (20.00000) /StandardParallelTwo (60.00000) /FalseNorthing (0.00000) /OriginLatitude (40.00000) /CentralMeridian (-96.00000) /Units (M) /FalseEasting (0.00000) /Datum (NAR) >> /Description (Southwestern United States) /Registration [[ (53.5103998492) (124.5528002880) (-2304773.0647479948) (-1099101.2766873206) ] [ (725.0183996828) (560.4984001800) (61957.1944612906) (437389.1938494640) ]] /Neatline [ (53.5103998492) (124.5528002880) (53.5103998492) (560.4984001800) (725.0183996828) (560.4984001800) (725.0183996828)(124.5528002880) ] >> The LGIDict format is specified by <<GeoPDF Encoding Best Practice Version 2.2>> ,you can find it at http://www.opengeospatial.org/standards/bp.
I also used GetPageLGIDictContent and GetPageLGIDictCount, they all work correctly, maybe you pdf file is not a correct GeoPDF file.
Hope this may help you.
Mingoal
|
|
![]() |
|
jvonbokel
Beginner
Joined: 16 Apr 10 Location: St Louis, MO Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 Apr 10 at 4:13PM |
|
Thanks, that's working beautifully.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store