Mapping from pixels to cm

hi all
does anybody know how can i map between pixels and cm?
taking into consideration i don't have the real picture's dimensions how can i tell the cm distance between 2 points on that picture but ofcourse i know the pixel distance between them?
thanks in advance

Run this test:
     public static void test4() {
          Toolkit t = Toolkit.getDefaultToolkit();
          Dimension d = t.getScreenSize();
          int res = t.getScreenResolution();
          System.out.println("pixels = " + d);
          System.out.println("res = " + res);
          System.out.println("size = " + (d.width / res));
     }then try changing your screen resolution. It changes the screen size, but not the resolution. Effectively, it reports a smaller screen.

Similar Messages

  • Mapping from 2d to 3d

    Hello
    Can someone please give me a link or explain to me how or the logic behind mapping from 2d to 3d. I was told that you have to create a perspective plane. How do you do this?
    Any input will be a help.
    Thanks.

    I don't think there's anything called a perspective plane. But here's how 3D graphics work. If you want to draw something that looks like an object that is sitting in 3D space some distance behind the screen, you have to figure out what part of it the user would see when looking through each individual pixel of the screen, and then set the pixel to that color. Essentially, you'd like to "flatten" the 3D object onto a 2D plane (the screen). This transformation is called a projection. One simple way to do it would be to drop a perpendicular from each point on the object to a point on the screen, and draw that bit of the object there. This is called orthogonal projection. However, this isn't realistic. In reality, people have eyes which are located at a particular point in space, close to the screen. (For simplicity, assume the user has 1 single, infinitesimally small eye). The rays from the eye to each point on the screen are not parallel, so you can't just "flatten" an object onto the surface, but rather you have to "push" it along a cone from the eye. (Try drawing a picture of an eye, a screen, and an object behind it). One effect of this is that an object will seem smaller the farther it is from the user. In fact, by knowing how far the user is from the screen and how far the object is from the screen, you can figure out exactly where each point in 3D space goes by using simple triangle similarity (again, draw a picture). This is called perspective projection, and in the end, after all the math, it basically amounts to dividing the x, y coordinates of a point by its z coordinate (if your screen is the (x,y) plane and its center is at (0,0,0)).
    Try to look for a book on computer graphics for a better explanation. There can be quite a bit of math involved if you want to make a full 3D system with non-fixed camera position and direction.

  • Printable Maps from MapViewer - 600dpi

    Hi -
    We would like to create print quality maps from MapViewer in the 600 DPI range. We've noticed that MapViewer will bomb out if we specify an image size over 2000 px in size, which means that at 600 dpi, the largest image would be about 3 inches square.
    Also, as larger images are created (larger meaning more pixels x pixels), the markers and text size get relatively smaller. I would think the size of these features would be based on the DPI setting when they are rendered. Is there any way to change the DPI for a request, or plans to support such a thing?
    Thanks,
    --ee                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Thanks to all for the replies.
    In response to the first reply, when importing the shapefile I select the default styling which I think is generally a red color for the content. Nothing out of the ordinary there.
    For the themes, I actually tried it both ways. First just importing without the theme creation and doing it manually. I also tried it using the flow generated by the utility and still no luck.
    The map renders beautifully in the MapBuilder tool. I can preview it and move around although the zoom in and out does cause some of the layers to drop. So everything is perfect until I try and view it in an AJAX enabled page.
    I thought that the scaling factor may be a source of the problem but my question is how do you know what to use for the minx and maxx parameters? The SRID that I used was the WGS84 which is something like 4326. This is actually selectable when doing the import with the MapBuilder tool.
    So is there a rule of thumb for chosing the minx and maxx parameters? Also, do you set the minx and maxx in the MapBuilder or are these properties for the mapviewer page?
    Tim

  • Unable to open Information Map from planning web Help menu

    Unable to open Information Map from planning web Help menu
    The error is :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.

    Hi,
    It should be accessing :- http://<planning server>:8300/HyperionPlanning/help/en/hp_information_map/hp_information_map.html
    Can you access that address on the machine hosting planning?
    The file structure on the web server depending on which app server you use should be something like \Hyperion\deployments\Tomcat5\HyperionPlanning\webapps\HyperionPlanning\help\en\hp_information_map\hp_information_map.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do I remove BlackBerry Maps from the OS?

    I have a Z10 running 10.3 it's a great update and so far love the BB Assistant.  There is one big sore point for me and that is your decision to deeply integrate BB Maps with 10.3 and Assistant. 
    Appologize upfront but I have to ask....Why would you integrate a lagging-edge Mapping App with an otherwise leading-edge OS in 10.3? 
    So long story short...BB Maps doesn't work for me.  (No Walking, Mass No Transit, No Satellite or Street View equivilants.)  The bottom line is that enterprise users need more than what BB Maps offers today and for the foresable future.  Just supremely frustrated about this situation and feel bad because 10.3 is great. 
    So the question is How do I remove BB Maps from 10.3 or completely disable it. I just want it gone at this point. Please help....I'm so totally frustrated that you can't easily remove it! 
    Thank you and please let me know as soon as possible how to accomplish this. 
    Solved!
    Go to Solution.

    Good news...Just to let you know I did find a way to remove BB Maps. 
    Even through  it's a core app  by reverting to a previous version  of BB Maps I was able to delete it from the OS.  iBest part is there was no impact to the OS and everything else works as normal.  Please Please ...if your going to make BB Maps a core app please make sure its a world class app and it works for all Enterprise users.  (Not just for drivers)  
    I can truely say my BB OS 10 experence is much better now without BB Maps.  If BB isn't going to invest in Maps then please don't make it a core app and tightly integrated into the OS.  I think at this point BB would be better off outsouring BB Maps to one of the leading Map providers such as Nokia, Mapquest, Bing/MS or even dare I say Google Maps.  I think the BB community would be much happier with any of the first three. 
    Thanks

  • How to remove a font file and its mapping from XML Publisher Administrator

    Hello,
    I am trying to remove a font file and its mapping from the XML Publisher Administrator. If this is not possible, is there a way to disable it?
    The reason why I am asking this is because we just got a new check printer, and I was able to print just fine. However, the MICR font was not coming up properly on the check, so I went ahead and configured the font with the XML Publisher Administrator. Now my check output is coming up blank after running the XML report publisher program. The only change I did was to upload the MICR font and mapped it.
    My template and rdf report file are working fine in another environment we have, so I know that's not the problem.
    Any help is appreciate it.
    Thanks.

    This is how you do it
    Font
    DELETE FROM xdo_lobs
    where lob_code like '<Font_name>';
    Font Mapping Set
    DELETE FROM xdo_font_mapping_sets_TL
    WHERE mapping_code like '<MAPPING_CODE>'

  • Invoking a mapping from another DB in a process flow

    Hi experts, have anyone try to invoke/execute an OWB mapping from another database in a process flow? Is it possible to do that?
    My process flow (in the Staging db) scenario is to execute several OWB mapping in the Staging db, then the final step is to execute an OWB mapping which is created in the warehouse db.
    Is that possible?
    Edited by: wwardana on Apr 5, 2009 9:09 PM

    Look at this thread
    [Calling WB_RT_API_EXEC.RUN_TASK over database link|http://forums.oracle.com/forums/thread.jspa?threadID=775938]
    Regards,
    Oleg

  • Mapping from nested to one table (sales order) XML to IDOC

    Hello,
    I have to map a xml file to the IDOC SALESORDER_CREATEFROMDAT2.SALESORDER_CREATEFROMDAT202.
    How I can map the the longtext from the XML file to the IDOC struktur.
    Part of the XML file, there could be n times BPosition with n times longtext. The longtext must be map with a table. I some case its a mapping from nested to mornal table.
        <BPosition>
             <lpos>1</lpos>
             <bbl_sap_nr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <longtext>
                <line>pos1 zeile1</line>
                <line>pos1 zeile 2</line>
             </longtext>
          </BPosition>
    thanks for your help.

    Hi, I have to map this 1 XML to 1 IDOC
    XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Milver xmlns:ns0="http://ccssap.bfi.admin.ch/milver">
       <bestellung>
          <besteller>
             <bestellnr/>
             <auftragdefit/>
             <wempfdebit/>
             <bestelldat/>
             <lieferdat/>
             <anzpos/>
             <language/>
             <adrzeile1/>
             <adrzeile2/>
             <adrzeile3/>
             <adrzeile4/>
          </besteller>
          <Kopf>
             <Lkopf>Kopf1 zeile1</Lkopf>
             <Lkopf>Kopf1 zeile2</Lkopf>
          </Kopf>
          <BPosition>
             <lpos>1</lpos>
             <matnr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <bemerkung>
                <line>pos1 zeile1</line>
                <line>pos1 zeile 2</line>
             </bemerkung>
          </BPosition>
          <BPosition>
             <lpos>2</lpos>
             <matnr/>
             <milvonr/>
             <kurztitel/>
             <anzbest/>
             <anzliefer/>
             <kostenpflichtig/>
             <bemerkung>
                <line>pos2 zeile1</line>
                <line>pos2 zeile 2</line>
             </bemerkung>
          </BPosition>
       </bestellung>
    </ns0:MT_Milver>
    IDOC:
    The Idoc have a segment for the longtext (table).I have to map, lpos, line into  E1BPSDTEXT from SALESORDER_CREATEFROMDAT2. Its now more clear?

  • Problem by transporting the message mapping from PI 7.0 to PI 7.1

    Hi Everyone,
    by transporting the message mapping from PI 7.0 to PI 7.1 i have got the following problem.
    "Source code has syntax error:
    K:\usr\sap\E71\DVEBMGS00\j2ee\cluster\serve......
    package udfpool does not exist
    import udfpool.*;
    i have used a UDF in my message mapping.
    This UDF calls for a method of a java class, which is imported as a .jar file with this message mapping.
    this message mapping works very well on PI 7.0,
    but doesn't work any more on PI 7.1 because of the problem described above.
    anyone can help me out of this problem?
    thanks!
    zc

    hi,
    but did you import the jar archive to 7.1 first?
    Regards,
    Michal Krawczyk
    http://mypigenie.com XI/PI FAQ

  • Upload infomation about mapping from say BW/BI system

    Hello Gurus,
             how can I upload infomation about mapping from say BW/BI system ? I want to use this uploaded mapping information to update my mapping sheet document.
    Many thanks

    Hi,
    Double click on Transformation Mapping -> Go to Extras -> Tabular Overview-> Right Click - > Export to Microsoft Excel.
    You can also save the transormation as JPG file (Click on Button -> Save as JPG -> from left ) and attach that in the mapping document.
    Hope this help!

  • Need help with Resource Mapping from Application Deployment to VC:virtualMachine

    Hi,
    I've built a number of vCO Workflows and hooked them up to Resource Actions in vRA. However, the Workflows I've built all take a VC:VirtualMachine as the input and therefore,they only "hookup" to VMs in the Machines list in the Items tab in vRA. Ideally, I want these actions to hookup to the Application Deployments in vRA since that is what my users are deploying - the VM that the App rides on is somewhat secondary. Plus, it's cumbersome for them to find the VM that corresponds to the App they want to run the action on.
    So, I looked into creating a new Resource Mapping, thinking I could map an Application Deployment to a VC:VirtualMachine so that I could create an Action for the Application. I was able to create a mapping from Application Deployment to VC:VM using the Map to VC:VM existing workflow and I could add that to the Actions menu for the Application Deployment but if I try to run it, it fails. I kind of expected this since I think the Map to VC:VM is expecting an input of IaaS VC:VM to map to vCO VC:VM. I think what I need to do is write a Workflow that will take in the Application Deployment "object" and find the VC:VM inside it but I don't know how to find out the structure of an Application Deployment such that I could parse it and get the VM.
    Does this make sense? Am I going about this the right way? Thanks for any help,
    Tom

    Hi,
    I've built a number of vCO Workflows and hooked them up to Resource Actions in vRA. However, the Workflows I've built all take a VC:VirtualMachine as the input and therefore,they only "hookup" to VMs in the Machines list in the Items tab in vRA. Ideally, I want these actions to hookup to the Application Deployments in vRA since that is what my users are deploying - the VM that the App rides on is somewhat secondary. Plus, it's cumbersome for them to find the VM that corresponds to the App they want to run the action on.
    So, I looked into creating a new Resource Mapping, thinking I could map an Application Deployment to a VC:VirtualMachine so that I could create an Action for the Application. I was able to create a mapping from Application Deployment to VC:VM using the Map to VC:VM existing workflow and I could add that to the Actions menu for the Application Deployment but if I try to run it, it fails. I kind of expected this since I think the Map to VC:VM is expecting an input of IaaS VC:VM to map to vCO VC:VM. I think what I need to do is write a Workflow that will take in the Application Deployment "object" and find the VC:VM inside it but I don't know how to find out the structure of an Application Deployment such that I could parse it and get the VM.
    Does this make sense? Am I going about this the right way? Thanks for any help,
    Tom

  • How do i map from file name to the device it resides on

    hi
    i need to find a way to map from a file name to the disk device it resides on( so i can do ioctl to that device ).
    i know that stat(2) returns a dev_t value, but i don't know how to translate from that dev_t to the device name( e.g. /dev/dsk/c0d0... )
    THANKS
    Gabriel

    thanks for the reply,
    i'm using a similar mechnisem on linux - using getmntent(3) to find the longest prefix of the filename realpath(3).
    i was actually looking for a mechnisem similar to the devname(2) syscall on the BSD os. with this call the kernel do all the work for you simply by mapping from dev_t( which the kernel stored in the indoe) to the device name by keeping a simple mapping table.
    if this mechinsem doesn't exists i will have to (eventually) duplicate the kernel work(namei) and create my own mapping.
    THX
    gabriel

  • Re-use message mapping from within java mapping?

    Hi there,                                                                               
    I have a question regarding java mapping. What I would like to do is to re-use an existing message mapping from within java mapping.
    Technicaly, message mapping is perfomed by com.sap.aii.mappingtool.tf3.AMappingProgram.execute, right? I would like to call that mapping program for a specifc message mapping from within my java mapping.
    Pseudo java code would look like this:
    public void execute(InputStream in, OutputStream out)
      throws StreamTransformationException {
    com.sap.aii.mappingtool.tf3.AMappingProgram.execute(in,out,'SomeMessageMapping');
    SomeMessageMapping is a message mapping that is defined in the integration repository.
    Is it possible? If so, could you provide me with some details?
    Thank you and best regards,
    Wolfgang

    Hi Wolfgang,
    very interesting idea?
    I would activa a dummy message mapping. than I would have a look in the file directory of the java-stack and try to find out the name of the *.class or *.jar file.
    On the other hand you could generate a tpz-transport-file an unpack this file, to explore the name of the *.class or *.jar
    Unfortunately I do not have access to the file system. So I can't explore the name.
    Regards Mario

  • Mapping from source in same DB as target

    We are running a warehouse where part of the data is pumped into a holding schema in the same database as the target schema resides.
    Using OWB3 we set the "schema property" of all objects in the mappings referring to the holding schema and generated the loads. This worked just fine.
    Now I am looking at upgrading to OWB92 but it seems the "schema property" is obsolete. Does that mean I HAVE to create a database link to the holding schema in the target schema using locations and connectors, or is there another way of directly referecing the holding schema in the mappings that load data from holding to target ?

    Nikolai -
    I just tried this as well. I went from source to staging area which is setup as a target schema. That worked fine.
    Then I tried to map from the staging target schema to another target schema on the same instance.
    The deployment correctly prefixed with the schema name rather than the database link, but my problem now is that it doesn't appear that the 2nd target schema has permissions to select from the table in the first target schema.
    Can this be fixed somewhere in configuration or do I have to manually grant select on any tables in this situation?
    Thanks,
    Dave

  • Advanced mapping from IDOC to SOAP with reversed 3 level context change

    Hi everyone.
    I am having a though time mapping the HRMD_A01 IDOC into a SOAP message. The reason is that the reciever expects an xml structure where the root node is cost center instead of employee which is the case in the IDOC.
    Mapping from:
    IDOC (1..1)
       E1PLOGI (1..unb)
         SEGMENT (String)
         OBJID (String)
         E1PITYP (1..unb)
           E1P0001 (1..unb)
             SEGMENT (String)
             KOSTL (String)
    To this structure:
    List (1..1)
      CostCenters (1..unb)
        KOSTL (String)   ----> Mapped against KOSTL above
        Employees (1..unb)
          OBJID (String)   ----> Mapped against OBJID above  
    I expect several occurances of E1PLOGI which states multiple employees sent in the IDOC. I also expect several occurences of E1P0001 containing cost centers.
    My conclusion is that I need an advanced mapping and I have created one which collects all KOSTL for the IDOC context, deletes duplicates, and creates the CostCenters segment. This is now working. But my problem is that I can't create the employees segment in the right place. They are only created once under the first CostCenters node.
    Here's the java-code for mapping between KOSTL and CostCenters/KOSTL:
    public void costCenters(String[] var1, ResultList result, Container container) throws StreamTransformationException{
      Set set = new HashSet(Arrays.asList(var1));
      String[] array2 = (String[])(set.toArray(new String[set.size()]));
      Arrays.sort(array2);
      for (int i = 0; i < array2.length; i++) {
        result.addValue(array2<i>);
    Any ideas on how to proceed?
    Best Regards

    Hi,
      Do the mapping like below.
      UDF should be select as context.
    List (1..1)
      CostCenters (1..unb)
        KOSTL (String)   ----> Mapped against KOSTL above
        Employees (1..unb)
          OBJID (String)   ----> Mapped against OBJID above
    Mapping:
    KOSTL(RightSelectChange the context to E1PITYP)--UDF--Removecontext--CostCenters
    KOSTL(RightSelectChange the context to E1PITYP)--UDF--SplitbyValue(Each Value)--KOSTL
    constant---Employees
    OBJID----------------------------------------------Use One As Many---SplitByValue (EachValue)----------OBJID
    KOSTL(RightSelectChange the context to E1PITYP)--UDF---
    KOSTL(RightSelectChange the context to E1PITYP)--UDF---
    Regards,
    Prakasu.M
    Edited by: prakasu on May 20, 2009 3:28 PM

Maybe you are looking for