Bounding box for point and radius

I am using google maps and WGS 84 (4326).
I am trying to get the bounding box that contains a circle of a given radius in miles starting at a given lat/lon.
I saw SDO_GEOM.SDO_MBR, but I wasn't sure how to do the circle (or at the least get points m miles north, south, east, and west of a given point)

that works.
I am using PHP and OCI8 So, I also used SDO_UTIL.TO_WKTGEOMETRY to get a text version of the box that I then parsed in PHP. Otherwise, it would not give me the value of the box.
               SELECT SDO_UTIL.TO_WKTGEOMETRY(SDO_GEOM.SDO_MBR(
                    SDO_GEOM.SDO_BUFFER(
                         SDO_GEOMETRY
                                   (2001, -- SDO_GTYPE attribute: 2 = 2D, 1=point
                                        <SRID HERE>,
                                        SDO_POINT_TYPE(<LON HERE>, <LAT HERE>, NULL),
                                        NULL,
                                        NULL),
                         30, -- miles
                         .05,      -- tolerance
                         'unit=mile')
                        )) box
                    from dual

Similar Messages

  • Convert jpg to pdf with proper bounding box for LaTeX

    Hi,
    does anybody know how I can use Acrobat 8 Professional on my Mac to convert a jpg into a pdf that with a proper bounding box for LaTeX?
    When I import the jpg and save it as a pdf, then LaTeX cannot determine the correct size, and, therefore, the picture appears way too big in LaTeX's output.
    The LaTeX Error message is "Cannot determine size of graphic in myPic.pdf (no BoundingBox)"
    On my Mac I don't even know how to check the size of the bounding box.
    Thanks for your suggestions!
    Kurt

    Hi - thanks for all the answers.
    I have tried to use Graphics Converter but it has way too many options, and if I just use the default one's, the pdf quality is changed, so black does not appear as black anymore but slightly grey. And since Graphics Converter changed the pdf unexpectedly, I don't want to risk that it changes something else that I might miss now and only realize when the manuscript is in print.
    Currently, I cannot check if the correct Bounding Box would be set using Graphics Converter: My LaTeX implementation shows the pdf in the correct size, even without bounding box, but the LaTeX implementation of the journal I am submitting the graphics to does not, and since I already submitted the manuscript, I cannot check anymore. Using GhostView on a PC would help, but on a Mac I don't get GhostScript to do that.
    I cannot use jpg's directly, as the journal does not support jpg's.
    The figures were prepared using photoshop, so maybe I try exporting them directly from there, but as far as I remember, this did not set the bounding box correctly either. But since I am not sure I need to test it again.
    Is there a way to view the bounding box?
    I thought that the bounding box just gives the dimensions in pixels, so does the actual size really matter?
    Thanks a lot.
    Kurt

  • Tacacs+ for exec and radius for ppp on the same ras

    Hi, I'm going to implement tacacs+ for exec control and RADIUS for ppp control in a ras router, using the same ACS for tacacs+ and radius sessions.
    Is there any problem with this kind of configuration ?
    thank you in advance
    Renato

    Renato
    I have recently done something very similar at a customer site. On a remote access server we configured it to use TACACS for exec control and to use Radius for ppp. In our case we are using different servers but I do not think that would be an issue. We also are generating aaa accounting records for the ppp sessions and sending the accounting records to the TACACS server. I have not had any particular problems with getting this to work.
    HTH
    Rick

  • Why can't I see the bounding box for objects on the pasteboard?

    Adobe CC sucks. Why last week was I able to see the bounding box of objects that I had on the pasteboard in InDesign CC, including objects that didn't contain anything yet, and now suddenly this week I can't see them?
    It seems as though every week something inexplicably gets changed around. First Save As had no shortcut, then suddenly the shortcut is back, but it doesn't work.
    Get it together Adobe. I don't want to be paying a subscription for a product that feels as though it's still in Beta mode.

    Hi Steve,
    Yes thanks, I don't think I was clear in what I wrote. I knew that they could be turned back on, but why did I open InDesign this morning to find my workspace/preferences different than how I left them on Friday?
    And I know it isn't a case of my mistakenly turning off the frame edges, because the operator that sits next to me had the exact same thing happen to her copy of InDesign this morning also.
    I understand the requirement to update things, but it really does feel as though I'm using software that is still in testing.

  • Bounding box for text

    Howdy, I am looking for a way to get the bounding box of some text. I can do it with a graphics2d object, but there are some times when I want to get the bounding box without having access to a graphics objects. I have looked at several classes in the API and it seems that they either take a graphics object or one of their parameters takes a graphics object (Parameter A uses a graphics object of method A, for example). Is there a way to do it without one?
    Thanks.
    Message was edited by:
    dayrinni

    See the caution in paragraph four of the FontRenderContext comments.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.Rectangle2D;
    import javax.swing.*;
    public class NoGraphics {
        public static void main(String[] args) {
            String s = "Hello World";
            FontRenderContext frc = new FontRenderContext(null, false, false);
            Font font = new Font("dialog", Font.PLAIN, 36);
            GlyphVector gv = font.createGlyphVector(frc, s);
            Rectangle2D r1 = font.getStringBounds(s, frc);
            Rectangle2D r2 = new TextLayout(s, font, frc).getBounds();
            Rectangle2D r3 = gv.getLogicalBounds();
            Rectangle2D r4 = gv.getPixelBounds(frc, 0, 0);
            Rectangle2D r5 = gv.getVisualBounds();
            System.out.printf("%s%n%s%n%s%n%s%n%s%n", toString(r1, "string"),
                               toString(r2, "text"),  toString(r3, "logical"),
                               toString(r4, "pixel"), toString(r5, "visual"));
            final JLabel position = new JLabel("x = 0  y = 0", JLabel.CENTER);
            JLabel label = new JLabel(s, JLabel.CENTER);
            label.setFont(font);
            label.setText(s);
            label.setOpaque(true);
            label.setBackground(Color.pink);
            label.addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseMoved(MouseEvent e) {
                    position.setText("x = " + e.getX() + "  y = " + e.getY());
            JPanel panel = new JPanel(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.insets = new Insets(2,2,2,2);
            gbc.gridwidth = gbc.REMAINDER;
            panel.add(label, gbc);
            panel.add(position, gbc);
            JOptionPane.showMessageDialog(null, panel, "Compare",
                                          JOptionPane.PLAIN_MESSAGE);
        private static String toString(Rectangle2D r, String id) {
            return String.format("%8s [%.1f, %.1f]",
                                  id, r.getWidth(), r.getHeight());
    }

  • Authentication providers for TACACS+ and RADIUS

    Does anyone supply WLS 8.1 authentication providers for TACACS+ and/or
    RADIUS?
    Ben

    So in the ACS network config you add 2 NASes (or should that be NASi?)
    One is of type TACACS+, enter the device ip and secret. The other is RADIUS - unless you need to use some vendor specific trickery you could stick with IETF RADIUS to keep it simple. Again enter the IP and the secret.
    Assuming you a have at least 1 user in say, the default group (acs group 0) you then need to do some basic setup. In ACS a single group can have both RADIUS and TACACS+ config :-)
    RADIUS will pretty much default to PPP anyway, but you should still set the Service-Type to Framed and set session timeouts etc.
    With T+ you tick the boxes for the services that are allowed. For SSH login you might have to define a custom service first (under interface config)
    Suggest you first take time to scan through the ACS docs.

  • How about two SDN "blogspaces" : one FOR points  and 1 NOT FOR points ?

    I suggest that the current SDN logspace be divided into two subspaces:
    one for points: this is where technical and/or non-controversial messages would be posted and be rewarded according to the current rules
    one not for points: this is where folks would post "controversial" messages (technical or non-technical) that would not get any point reward.
    I would personally prefer to post in the "not for points" subspace, for several reasons.
    But I'd prefer to see what others have to say before saying what they are.
    By the way, there's a US expression "preaching to the choir".  The new blog (for no points) would be for those who are not necessarily "preaching to the choir".
    djh

    david,
    i think i do understand your intention and therefore agree with you.
    IMHO, the blogsphere here on SDN, as execellent as it is, is kind of a 'posing platform' rather than a discussion space. People do post their contributions, receive their points reward and expect some congratulations and cheering if anything at all. I happened to me that people got upset when I questioned the use or correctness or usefulness of some of the content of their blogs. When it did this with the intention to discuss matters, I recognized that people actually didn't want to discuss their contributions.
    Of course the things said above do not hold true for for a big number of contributors.
    The same thing thing in the forums. A lot of people do provide very valuable answers but often not discuss matters when points are already given.
    So having a discussion area, free of the rewards system's pressures might be a helpful addition. Something like a discussions corner. In Vienna we call this 'Kaffeehaus'
    A place where you post some free thought where you don't have to justify the minimum blog reward points, where you don't have to apply the care expected in drafting a blog, etc..
    Just freestyle discussion on useful or not so useful topics.
    regards,
    anton

  • Bounding box for selecting components

    Hi,
    in my application i have to implement a bounding box to select some displayed components (panels or icons). I have searched for a JAVA-technique for bounding boxes, but i did not found anything.
    Does anybody know a JAVA-API that supports bounding boxes ?
    Thanks for your help

    Hi,
    in my application i have to implement a bounding box to select some displayed components (panels or icons). I have searched for a JAVA-technique for bounding boxes, but i did not found anything.
    Does anybody know a JAVA-API that supports bounding boxes ?
    Thanks for your help

  • Can the Post Results box for name and email be resized?

    Depending on the size of the browser window the box that asks for name and email for posting quiz results can be very small.  Is there any way to resize it?  This is with Captivate 6 and Scalable HTML Content  turned on.

    Hi Judy,
    These are run time messages and you can change it by the below steps:
    If you want to modify specific labels that you can't modify through Captivate, you can do this with the file strings.txt, that is located in Adobe Captivate instalation folder >en_US
    1. Open file
    2. Modify whatever label you want
    3. Save.
    4. Rename to strings.zdct
    5. Replace original strings.zdct file
    6. Restart Captivate
    I suggest you backup original strings.txt and strings.zdct files - just in case.
    Regards,
    Mayank

  • External Firewire box for PATA and/or SATA I - SATA II HDDs

    Hi all,
    I'm looking for a weird thing, and I don't know whether it exists or not.
    I've got a bunch of PATA HDDs now on shelf, and I'm wondering how to use them as external backup.
    I googled to find a Firewire box for 4 or 5 PATA and/or SATA I - SATA II HDDs, I didn't find anything, do you know about something similar ?
    Thanks,
    Peloche,
    MacPro 2.66, 6GB, 1TB; Mini G4, 1.45, 1GB; iPod 60 GB; 30" & 20" ACD; Apple IIC   Mac OS X (10.4.8)   X1900XT

    Briefly,
    This item Stardom SOHOBANK U6-4S-S2 Backplane cost :
    220 euros +
    20 euros transport +
    10 euros eSATA cable +
    100 euros PCIe eSATA card =
    Roughly 350 euros and I have to supply HDDs.
    I investigate about my existing HDDs stock :
    1 x 250 Go +
    2 x 120 Go +
    1 x 80 Go =
    570 Go and the enclosure is full.
    I've had a look at French Apple Store they have a MiniMax 640 Go Iomega + hub FireWire / USB integrated for 399 euros (not available on US Apple Store).
    They have also Iomega 320 Go USB 2.2 for 149 euros.
    But I'm concerned about the next future, that means tomorrow, when Leopard starts to hunt beginning of 2007, a nice feature called "Time Machine" will be available.
    This real time backup (if I understood well this feature) will oblige the backup disk to be "on" permanently, that is to say more permanent noise if backup storage is external.
    I've had a look at my existing Mac Pro configuration, I've got:
    Bay 1 : free
    Bay 2 : 1 x 300 Go SATA II
    Bay 3 : 1 x 250 Go SATA II
    Bay 4 : 1 x 250 Go SATA II
    Port 6 : 1 x 150 Go SATA I (Motherboard)
    I'm considering buying a 500 Go Maxtor pro line for Bay 1 for backup purpose only, what do you think ?
    Thanks,
    Peloche,
    MacPro 2.66, 6GB, 1TB; Mini G4, 1.45, 1GB; iPod 60 GB; 30" & 20" ACD; Apple IIC   Mac OS X (10.4.8)   X1900XT

  • Save dialog box for text and pdf files

    Hi,
    I am using CRM UI framework for developing my components.
    Currently i have a hyperlink for a file. On click of the hyperlink i want the Save dialog box to appear with SAVE/OPEN/CANCEL options. For Word/Excel/PPT files, dialog box appears. However for txt/PDF files, dialog box does not appear.
    URL looks like the following:
    http://uxcia0g.wdf.sap.corp:50026/sap/bc/contentserver/000?get&pVersion=0045&contRep=RPS_DB_02&docId=80215A5C348E1DEE8A9EC8FFDED05E54&compId=chk.pdf&content_disposition=attachment.
    Could you please help me to resolve this issue?
    Regards,
    Vinay

    First of all, you need an app on the iPad that can read those files that you want to transfer. Adobe Reader and iBooks are two free apps that will read PDF files. Adobe Reader is much more robust than iBooks as it offers so many more features like renaming files, creating folders, annotating, highlights, etc.
    Download Adobe Reader in the App Store. Then read this about file sharing with iTunes.
    iOS: About File Sharing - Support - Apple
    There are other ways to get files to the iPad, like email, DropBox and some other apps that let you mount your iPad like a flash drive.
    This should be helpful as well.
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad

  • I have a macbook pro and have just updated my itunes to the 10.5, it has been sitting on the 'software update' box for 2 and a half hours and only has about 3mm of space left that is not blue. Is it normal to take this long downloading this update? Help!

    I have been sitting looking at the blue line almost finished for over 2 hours. It says Writing files... underneath and Installing 11 items above the blue box. What should i do? Is there a problem or is it just taking a long time?? Im trying to set up my new iphone 4S but cant until this itunes is updated!
    Please help.
    Cheers
    Meg

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • How to export photos with titles in chronological order. Checking box for title and keyword doesn't seem to work

    I want to export a group of JPEG photos including titles in the order in which they were taken.  Checking the box to include titles and key words seems not to work.

    You can not
    exporting creates files - files have no order - the order is set by the program you use to view them - for example in the finder you can view files by the date created, date modified, size, alpha, etc
    So to control the order when viewing in the finder you must have an attribute that the finder can sort on set - the most common way to export photos in a specific order is to make an album in iphoto in the order you want and then export the album using the sequential naming option of the export command - then view them in the finder using a alpha sort - Exporting From iPhoto
    However since you want to retain your existing title that will not work for you

  • Use check box for report and form

    Hi Expert,
    I try to use check box to select multiple rows in a report and then click on a button to go to a form on another page to choose some values from the form and then do a mass update for records selected in reports.
    I read the "How to Work with Check Boxes" in 2 Day Developer guide, it works fine to select mutiple rows in report and do update with process in that report page.
    However, if I click on a button to go to another page which contains a form, seems the values stored in the package array are cleared and not passed to that page.
    Do you know how I could make this work?
    Thanks a lot,
    Jessie

    Hello Sakti,
    I am also in ECC6.0 & if i see the definition of the BAdI BADI_TAX1_XTXIT_SET, "Multiple Use" checkbox is checked! What are you trying to do - trying to create an implementation?
    @Prabhu: Although the BAdI is "multiple-use", but there is not filter applied to it. Next time do your checks properly before replying
    BR,
    Suhas

  • Warning boxes for viruses and **** ads

    I bought a used mac from a reputable mac store two weeks ago.  I was told I didn't need virus protection.  But this morning when i turned on my computer, i got a bunch of warning boxes which now keep repeating in the corner telling me my mac in infected. 
    And sure enough starting this morning, i am now getting sites popping up for ****.  So i certainly have something going on.
    What should I do?  Do I need to buy virus protection software?  How do i get rid of these new ads for ****?
    Thank you

    It's malware, not a virus.
    Follow the instructions at both of these links.
    http://www.fixkb.com/2011/05/remove-mac-protector.html
    http://www.macrumors.com/2011/05/02/new-macdefender-malware-threat-for-mac-os-x/

Maybe you are looking for