How to get the real longtitude latitude of a pixel  from Mapviewer'spicture

I have application that will show a map returnning from MapViewer, and in my request I have :
1. MapSize:
2. MapHeight:
3. MapWidth:
4. CenterX:
5. CenterY:
when user click on the picture I receive X, Y in coordinate of PictureBox so How to change them to the real longtitue, langtitude.

Example: I have
MapSize=8
width=500
Height=500
Center X= -122.433 (longtitude)
Center Y= 37.7878 (latitude)
When I send a request I will receive a map reprented in my monitor with 500*500 pixel?
I click on a pixel in that picture and i get the X=350, Y=340 (compare with TopLeft pixel of map is (0,0)).
So how can i get the real longtitude, latitude of that pixel.
In document i see 1 inche =72dpi --> so a real height of my map = 500/72=6.94 Inches
And the problem is how i caculate the map scale.

Similar Messages

  • How to get the real table information of a structure from the trace file?

    I user the ST05 to trace a program to find the real table information of a structure in this program. But I found so many sql trace information in the trace file. So how can I find which information is useful for me to find the real table of a structure?

    Hi!
    If you don't recognize some tables, because they belong to same application, then it's difficult.
    Try to change interesting value. Afterwards you can search for 'INSERT', 'UPDATE' (and 'MODIFY'?) - that will leave only a small number of lines, which have to be analyzed in detail (e.g. have a look at them with SE16).
    Regards,
    Christian

  • HT201210 I had the ios 7 beta and now I cant figure out how to get the real update

    I have the IOS 7 beta currently on my phone however now I can't figure out how to get the real update

    Be sure to log into developer.apple.com using your developer ID. there should be support on these issues.

  • How to get the real reason of bdb's err?

    The application used some bdb's c-funcs, and get a err-log like below:
    PANIC: fatal region error detected; run recovery
    txn_checkpoint: log failed at LSN [1 6638626] DB_RUNRECOVERY: Fatal error, run database recovery
    How to get the real reason of the err?
    I tried to using db_printlog. But it print all the info of the log file. Another question is:
    How to get the info of exact place?

    The question is still there. Could someone help me?

  • How to get the real name of a user from WFSYST-AGENT

    Hi,
    I am retrieving the WFSYST-AGENT value (which correspond to the US<user_id> of the agent responsible of a task) in a container variable in my workflow.
    I would like to get the real name of the user represented by WFSYST-AGENT. How should I do that ?
    Thanks in advance for your help.
    Thibault

    Hi,
    Take the user name and write a select for database table USER_ADDR fetching fields NAME_FIRST and NAME_LAST by passing BNAME = username.
    Regards,
    Jayesh

  • How to get the real path of the xml file

    I have a java application
    following is the package structure
    com>>gts>>xml
    having file---------> MyXML.xml
    com>>gts>>java
    having java program to read the file
    Problem is if I use File file = new File("..\\xml\\MyXML.xml");
    java.io.FileNotFoundException: E:\LEARNING_WORK_SPACE\JavaXml\..\xml\MyXml.xml (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.io.FileInputStream.<init>(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
    How do I get the real path of the xml file.
    Edited by: shashiwagh on Jan 29, 2010 11:46 AM

    Hi,
    if your XML file is inside a package you can easily get it from the classloader.
    Note that your application maybe packaged inside a jar so it is not safe to use java.io.File for this purpose.
    You have an xml file in :
    com/gts/xml/MyXML.xml
    in a class of the same module (that will packaged in the same jar) for example com.gts.java.XmlLoader :
    // To get the stream :
    InputStream is = this.getClass().getResourceAsStream("/com/gts/xml/MyXML.xml");
    // Or the URL :
    URL xml = this.getClass().getResource("/com/gts/xml/MyXML.xml");Hope it helps.

  • How to get the real name of a sender ?

    When I receive a message under JavaMail, I want to get the real name of the sender but when I do a getFrom() I received a string like :
    =?iso-8859-1?q?Julien=20Dupont?= <[email protected]>
    But I only want the real name...
    How can I do to recover only "Julien Dupont" ?
    Thanks
    Ju

    javax.mail.Address[] addrs= m.getFrom();
    Address a = addrs[0];
    if (a instanceof InternetAddress &&
    ((pers = ((InternetAddress)a).getPersonal()) != null)) {
    String addr = ((InternetAddress)a).getPersonal();
    } else
    addr = a.toString();
    this 'getPersonal()' is the thing you need.

  • How to get the real client ip by the request header like asp/php,etc?

    I want to get the real client ip by request.getHeader("HTTP_X_FORWARDED_FOR"), who use the proxy server to access my site, the way asp/php using, however, I got nothing. Does jsp support the similar header from request, if yes, how to do?
    thanks for your tips.
    frederick

    I want to get the real client ip by request.getHeader("HTTP_X_FORWARDED_FOR"), who use the proxy server to access my site, the way asp/php using, however, I got nothing. Does jsp support the similar header from request, if yes, how to do?
    thanks for your tips.
    frederick

  • How to get the Real Path of a file which is accessed  by URL?

    iam using tomcat6.0.
    I have a file xyz.xml at the top of the webapplication HFUSE which i can able to access by URL
    http://localhost:8080/HFUSE/xyz.xml
    My problem is how to get the realpath of the file "xyz.xml" for reading and writing purposes.
    I tried various things but i could not able to successfully solved the problem?
    1) File f = new File("/xyz.xml");
    print(f.getAbsolutePath()) ============== it is not fetching the file @ http://localhost:8080/HFUSE/xyz.xml rather it is creating a file
    at the root of the drive where eclipse is running.
    2) File f = new File("xyz.xml");============> this is also not working , it is creating the file xyz.xml in the eclipse directory ..................
    Can anyone please guide on this problem?

    RevertInIslam wrote:
    If you want your context root(i.e HFUSE)
    use this:
    request.getContextPath() //where request is HttpServletRequest object to get the needful path.
    e.g:
    File f = new File(request.getContextPath()+"/xyz.xml");//it will create the file inside HFUSE.
    Hope this helps.
    Regards
    BWrong. The File constructor expects an absolute filesystem path. The HttpServletRequest#getContextPath() doesn't return the absolute filesystem path, it only returns the relative path from the current context root. Use ServletContext#getRealPath() instead, it returns the absolute filesystem path for the given relative path from the current context root.
    File file = new File(servletContext.getRealPath("/"), "xyz.xml");

  • How to get the real client ip from HttpClusterServlet?

    Hi All,
              WL 6.0 sp2 on Linux.
              When HttpClusterServlet is used, invoking HttpServletRequest.getServerName()
              will return the server name of the proxy server where HttpClusterServlet
              installed,
              rather than the actual client's ip which we are interested in.
              Anybody knows how to get the correct client ip through the proxy server? Any
              workaround? Or does a patch exist?
              Any help will be appreciated,
              Lynch
              

    Sorry I mean HTTPServlet.getRemoteAddr()
              "Lynch" <[email protected]> ¼¶¼g©ó¶l¥ó
              news:3baea0c5$[email protected]..
              > Hi All,
              >
              > WL 6.0 sp2 on Linux.
              >
              > When HttpClusterServlet is used, invoking
              HttpServletRequest.getServerName()
              > will return the server name of the proxy server where HttpClusterServlet
              > installed,
              > rather than the actual client's ip which we are interested in.
              >
              > Anybody knows how to get the correct client ip through the proxy server?
              Any
              > workaround? Or does a patch exist?
              >
              > Any help will be appreciated,
              > Lynch
              >
              >
              

  • How to get the Ship-To text for an Order from R/3 to CRM?

    Hi experts,
    how to get the Ship-to-Party text for an Order from R/3 to CRM?
    Here I used a Function Module CRM_ORDER_READ and its working in the Development server.
    After when this passed to the Stage Server for the Order i am maintaining the same Ship-to-Party for the order in the Stage server and I am no getting the text for that{Text maintained for the Ship-to-Party in the stage server}.
    Thanks in advance.

    Hello Nilaksha.
    You can use the following query. Modify the segment to be queried if you wish.
    SELECT cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4 "Account",
    nvl(sum(l.accounted_dr - l.accounted_cr),0) "Balance"
    FROM gl_code_combinations cc,
    gl_je_lines l
    WHERE cc.code_combination_id = l.code_combination_id
    AND l.set_of_books_id = <your set_of_books_id'
    AND cc.segment2 = 'your segment value'
    AND l.effective_date <= '30-nov-09'
    GROUP BY cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4
    Hope this helps.
    Octavio

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • How to get the real length of a 3D room

    Hi, I want to built a 3d room. When I import a obj file, the vector3f length does not equal to the real length(much longer than the real one), I know there must be relation between them, but how I can get the relation?
    for example:
    T3Droom.setTranslation(new Vector3f(0.7f,1f,0.5f));
    How many metres the 0.7f equals to?
    thanks a lot

    javax.mail.Address[] addrs= m.getFrom();
    Address a = addrs[0];
    if (a instanceof InternetAddress &&
    ((pers = ((InternetAddress)a).getPersonal()) != null)) {
    String addr = ((InternetAddress)a).getPersonal();
    } else
    addr = a.toString();
    this 'getPersonal()' is the thing you need.

  • How to get the real path of the application in a JavaBean?

    Hi everyone,
    I know this has been asked several times before, but I I am not really satisfied with the answers... :-)
    I am writing a webapp which uses XML files for storing information, the "business" logic is in JavaBeans. So far I just used hardcoded paths, now I will have to put the thing on a server and need a better solution.
    I understand I can use getServletContext().getRealpath() but that doesn't work in a Bean.
    One solution would be to fill a (hidden) field calling that and passing the field to the Bean, but I don't really like that solution.
    I am using Java Studio Creator 2 (Update 1), isn't there a way to access the ApplicationBean instance in my JavaBeans? As I understand it, I could get the path from there as well.
    Thanks!

    When you create the bean that contains the business logic you will have to pass in the real path either as a constructor parameter or by setting a property of the bean.

  • How to get the real SQL statement from a preparedstatement?

    Hi,
    I am trying to log the actual SQL sent to database by the preparedStatement. Since the original SQL I used to prepare the statement has a lot of "?" in it, after setting all the parameters in the preparedStatement, I want to get the final SQL statement executed. Is there a way to get it? Probably the SQL will depend on different drivers.
    Thanks in advance.

    Thanks, changhsu. I tried the tracing technique. But it only prints out the original SQL statement sent to the preparedStatement. The following is part of the log file:
    ======================================================================
    --------NetDirect JSQLConnect Version:2.2708--------
    2002-04-10 14:23:54.818 (1) Connection attempt number 1 Connection ID:1 for host:perseus
    2002-04-10 14:23:55.429 (1) JSQLConnect(2.2708) Trial license - expires on:Thu Apr 25 17:47:32 CDT 2002, unlimited connections
    2002-04-10 14:23:55.449 (2) Connection allocated from pool ID:2
    2002-04-10 14:23:55.72 (2) [Thread[Thread-6,5,main], IO:88cb4, Dbc:1346]] SELECT SHARED_DRIVES FROM EPM_PREFS WHERE PRODUCT='PE'
    2002-04-10 14:23:57.913 (2) Connection closed and returned to connection pool ID:2
    2002-04-10 14:23:58.193 (3) Connection attempt number 2 Connection ID:3 for host:perseus database:epm20 SQL6.5:false
    2002-04-10 14:23:58.203 (3) [Thread[Thread-6,5,main], IO:88cb3, Dbc:1347]] use epm20 set quoted_identifier,ansi_null_dflt_on,ansi_padding on set textsize 2147483647 set transaction isolation level read committed set implicit_transactions off
    2002-04-10 14:24:00.356 (4) Connection allocated from pool ID:4
    2002-04-10 14:24:01.168 (4) [Not Loged In@localhost, IO:88cb2, Dbc:1347]] PreparedStatement::prepare stmt:SELECT PASSWD FROM RESOURCE_INFO WHERE USER_ID=? AND DELETE_FLG IS NULL
    2002-04-10 14:24:01.448 (4) [Not Loged In@localhost, IO:88cb2, Dbc:1347]] RPC:sp_prepare
    2002-04-10 14:24:01.488 (4) [Not Loged In@localhost, IO:88cb2, Dbc:1347]] RPC:sp_execute
    =======================================================================
    I did not try to trace in SQL Server 7. I will have to find out how to do that first.
    Thanks again.

Maybe you are looking for