Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!ncar!groucho!steve From: steve@groucho.ucar.edu (Steve Emmerson) Newsgroups: comp.graphics Subject: Re: GKS Message-ID: <11981@ncar.ucar.edu> Date: 29 Jun 91 03:47:14 GMT References: <1991Jun28.223326.28405@milton.u.washington.edu> Sender: news@ncar.ucar.edu Organization: University Corporation for Atmospheric Research (UCAR) Lines: 21 In <1991Jun28.223326.28405@milton.u.washington.edu> pramodmm@milton.u.washington.edu (Pramod Mahadev) writes: >Hello GKS Xperts >I have a small problem with the coordinate systems . >When my program reads the locator position instead >of the position i.e x and y coordinates being in >world coordinates ; they are in device coordinates. >Please enlighten me as to how to get the program output >world coordinates instead of either DC or NDC coordinates >I am using the subroutine GRQLC(wkid,lcdnr,stat,tnr,px,py) >where px and py are supposed to be in world coordinates but >my program returns device coordinates. If GRQLC() is returning OK rather than NONE, then the response should be in world co-ordinates, and not normalized device co-ordinates. I believe anything else indicates a bug in your GKS implementation. Credentials: I maintain XGKS. (That and 35 cents gets me a cup of coffee. ;-) Steve Emmerson steve@unidata.ucar.edu ...!ncar!unidata!steve