Coder Social home page Coder Social logo

prc's People

Contributors

abellgithub avatar chambbj avatar hobu avatar msmitherdc avatar rhinoman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prc's Issues

add geospatial extensions to the PRC model

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.