Hello,
could you please give me some support to create a working geospatial measure
dictionary as it is described in the ISO 32000 Supplement on page 50?
I start with my dictonary...
PdfDictionary dicMeasure = new PdfDictionary(new PdfName("Measure"));
dicMeasure.put(PdfName.SUBTYPE,new PdfName("GEO"));
and add it to the PDF body...
PdfIndirectObject indObjMeasure = writer.addToBody(dicMeasure);
Just for my test, I add a viewport entry into the PdfPage class which refers
to the measure dialog.
When I open the PDF in Acrobat9 the area of the viewport has other
measure units by using the measurement tool and this just works when I put
the subtype /GEO!
So I'm on the right way, aren't I? I think the following entries I tried to
set are uncorrect.
I analysed some georeferenced PDFs and get those sample pdfsource:
1) /Type /Measure
/Subtype /GEO
/Bounds [0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0]
/PDU [M, SQMI, DEG]
/GPTS [62.01908823, -148.5592757, 61.70916419, -148.0732501]
/LPTS [0.0, 1.0, 1.0, 0.0]/PDU [M, SQMI, DEG]
/GCS 25 0 R
/EPSG 24 0 R
/Type /PROJCS
/WKT PROJCS["NAD_1927_UTM_Zone_6N",GEOGCS["GCS_North_American_1927",
DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],
PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],
PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-147.0],
PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],
UNIT["Meter",1.0]]
2) /Type /Measure
/Subtype /GEO
/Bounds [0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0]
/PDU [M, SQM, DEG]
/GPTS [41.8542633915, -87.6461669659, 41.8541355913, -87.6251297546,
41.854003938,
-87.6040926815, 41.8751675042, -87.6459430942, 41.8750396107,
-87.6248990306,
41.8749078614, -87.6038551054, 41.8960715387, -87.6457189854,
41.895943552,
-87.6246680623, 41.8958117066, -87.6036172776]
/LPTS [0.25, 0.25, 0.5, 0.25, 0.75, 0.25, 0.25, 0.5, 0.5,
0.5, 0.75, 0.5, 0.25, 0.75, 0.5, 0.75, 0.75, 0.75]
/GCS 16 0 R
/EPSG 15 0 R
/Type /PROJCS
/WKT
ROJCS["NAD_1927_StatePlane_Illinois_East_FIPS_1201",GEOGCS["GCS_North_American_1927",
DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],
PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],
PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-88.33333333333333],
PARAMETER["Scale_Factor",0.999975],
PARAMETER["Latitude_Of_Origin",36.66666666666666],
UNIT["Foot_US",0.3048006096012192]]
My Problem is to understand which of these keys are necessary for a
successful dictionary.
Required are just /GCS and /GPTS.
For Explanation: I'm studying geoinformatic and surveying and do a practical
training
in a gis company which offers a free gis-desktop software. That's why
I want to know these things. I hope not to bore you with my questions!
Thanks a lot,
Matthias
--
View this message in context:
http://www.nabble.com/how-to-construct-a-geospatial-measure-dictionary--tp20703775p20703775.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php