Print Page | Close Window

GeoPDF

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1321
Printed Date: 11 Jan 26 at 7:07PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: GeoPDF
Posted By: mingoal
Subject: GeoPDF
Date Posted: 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!



Replies:
Posted By: Ingo
Date 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:
" http://portal.opengeospatial.org/files/?artifact_id=33332 - GeoPDF Encoding Best Practice Version 2.2 "
http://portal.opengeospatial.org/files/?artifact_id=33332

Cheers and welcome here,
Ingo



Posted By: mingoal
Date 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


Posted By: jvonbokel
Date 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.


Posted By: mingoal
Date 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 - 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


Posted By: jvonbokel
Date Posted: 29 Apr 10 at 4:13PM
Thanks, that's working beautifully.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk