pdal / prc Goto Github PK
View Code? Open in Web Editor NEWPRC Writer
License: GNU Lesser General Public License v3.0
PRC Writer
License: GNU Lesser General Public License v3.0
No more hard-coded nastiness
There exist geospatial extensions to PRC (although all of the original links to Adobe documentation now appear to be dead). The hope would be that these should provide the PDF reader with enough detail to properly display coordinates.
A former colleague put together the following notes on what it would take to implement the geospatial extensions.
oPRCFile file(filenameout.c_str()/*, ***MM_PER_COORD_FACTOR***, ***NUM_FILE_STRUCTURES*** */);
PRCCoordinateSystem *coords = new PRCCoordinateSystem(std::string("name_for_coord_system"));
//coords->setAxisSet();
uint32_t coord_id = file.addCoordinateSystem(coords);
PRCAttribute &po_attribs = product_occurrence->newAttribute();
PRCSingleAttribute *const geoAttrib = new PRCSingleAttribute(std::string("insert PRC Geo XML file"));
//possibly __PRC_RESERVED_ATTRIBUTE_GeoMasterProj instead
geoAttrib->title_text = std::string("__PRC_RESERVED_ATTRIBUTE_GeoMasterKey");
po_attribs.addAttribute(*geoAttrib);
//on the part definitions (or something like that), set this (doing the whole rigamarole like above - getting PRCAttribute, adding it to that, etc.):
PRCSingleAttribute *const georefAttrib = new PRCSingleAttribute(std::string("<StoreCS=\"1\"/>")); //number should match the Label ID used in the "geo master proj/key" above
georefAttrib->title_text = std::string("__PRC_RESERVED_ATTRIBUTE_GeoRefProj");
//point_set is pointer to PointSet
point_set->index_local_coordinate_system = coord_id;
//part_def is pointer to part definition
part_def->addPointSet(point_set);
<AdobeGeoInfo Version="1.0">
<GCS>
<GeogCS>
<Label ID="1" />
<Origin X="" Y="" Z="" />
<EPSG>4326</EPSG>
<WKT>wkt string</WKT>
</GeogCS>
<ProjCS>
<Label ID="1" />
<Origin X="" Y="" Z="" />
<EPSG>4326</EPSG>
<WKT>wkt string</WKT>
</ProjCS>
</GCS>
</AdobeGeoInfo>
This will require us to add points on a per point basis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.