You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
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.
The text was updated successfully, but these errors were encountered: