How to get the area of a polygon

Dears,
I want to use distance tool to get the area of a drawn polygon, how to do so using mapviewer javascript API version 2 and/or version 1.
Does the mapviewer javascript API version 2 works with JSP/ASP or it is just for HTML5?
Many thanks in advance

I suggest to take a look at examples F01 and F06 ( Oracle Maps Demo ).
The answer to your second question is yes. As oracle maps api is a client side (javascript) api you can use it with any server side programming languages like ASP or JSP.

Similar Messages

  • How to get the area of a selected rectangle?

    Hi:
    I want to use the selected area in a automation plugin. In my case, the area is rectangle. i can't get the top,left,bottom and right position.
    Is there anyone can help me?

    I'm petty you sure can extract the details you want using a script. I think the method is called Selection Bounds, and it return an array of the unitValue of the rectangle.
    If you look at the scriptlistener code for creating a rectangle, it does record the data you want. So you should be able to extract it using Javascript, Apple Script or VB
    This is what the scriptlistener code looks like,
    // =======================================================
    var id5 = charIDToTypeID( "setd" );
    var desc3 = new ActionDescriptor();
    var id6 = charIDToTypeID( "null" );
    var ref1 = new ActionReference();
    var id7 = charIDToTypeID( "Chnl" );
    var id8 = charIDToTypeID( "fsel" );
    ref1.putProperty( id7, id8 );
    desc3.putReference( id6, ref1 );
    var id9 = charIDToTypeID( "T " );
    var desc4 = new ActionDescriptor();
    var id10 = charIDToTypeID( "Top " );
    var id11 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id10, id11, 210.000000 );
    var id12 = charIDToTypeID( "Left" );
    var id13 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id12, id13, 276.000000 );
    var id14 = charIDToTypeID( "Btom" );
    var id15 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id14, id15, 455.000000 );
    var id16 = charIDToTypeID( "Rght" );
    var id17 = charIDToTypeID( "#Pxl" );
    desc4.putUnitDouble( id16, id17, 613.000000 );
    var id18 = charIDToTypeID( "Rctn" );
    desc3.putObject( id9, id18, desc4 );
    executeAction( id5, desc3, DialogModes.NO );

  • Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    You can use some third party software to copy the music from your old iPod back to computer first, and then import the music into iTunes and re-sync them to yournew iPod. Here is a guide about how to transfer iPod music to computer. Hope it helps. Feel free to email me if you need further help.

  • How to get the depreciation areas for an asset in particular period

    Hi frndz,
      how to get the depreciation areas for an asset in a particular period for writeup or manual depreciation method.
    Thanks and regards.
    Harisumanth.Ch

    Try table ANLB, then read ANLC.
    Regards.

  • How to get the search option when we are creating new view

    Hi,
    How to get the search functionality when we are creating new view.
    Ex:- if we see the standard component BT112S_SC. Under this
    AdvancedSP  is the view,
    same kind of view if i want to create new view with same bol entity in my new component. I am unable to get that search functionality.
    for search functionality,,i think view should inherit the super class CL_BTSRV_ADVS_CNTRL, but in my new view controller class, i am unable to find this class.
    Can anybody give me some inputs on this.
    Thanks,
    neelam

    In case you are still not able to proceed please refer the following blog.
    http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view
    Regards,
    Harshit

  • When importing from my camera or file in Lightroom 5 my pictures are over-exposed by 1-2 stops, while they are well exposed on the camera-screen. How to get the 'right-exposed pictures on the screen?

    When importing from my camera or file in Lightroom 5 my pictures are over-exposed by 1-2 stops, while they are well exposed on the camera-screen. How to get the 'right-exposed pictures on the screen?

    There is an option in your Lightroom preferences on the General tab, "Treat JPEG files next to raw files as separate images". If you have that option checked then Lightroom will import and display both your raw and JPEG files. Are you using active D-lighting on your camera? If you are then you need to turn off that feature.

  • I just installed ios7 on my iPhone 4s.  It seems to be working fine but all of the apps I had previously installed are gone.  They show up in my app store as purchased, but the shortcuts are gone.  Does anyone know how to get the shortcuts back?  Thanks!

    I just installed ios7 on my iPhone 4s.  It seems to be working fine but all of the apps I had previously installed are gone.  They show up in my app store as purchased, but the shortcuts are gone.  Does anyone know how to get the shortcuts back?  Thanks!

    I updated via my iPhone 4s.  The apps were on my iPhone 4s.  That's all the information that I have.  The update to ios7 seems to have gone smoothly - everything else is working, phone texting, email, internet, etc.  But all of the apps I had installed over the past year are no longer showing up as shortcuts.  No facebook, no twitter, no espn, etc.  They are all still listed in my app store as purchased, but the shortcuts and my folders are gone.  Thanks.

  • How to get the  Checked box which are clicked

    for(int k=0;.....
    jsp code
    <input type=checkbox name=checkbox value='<%=k%>' >
    how to get the particular Checkbox which are checked???

    String[] checkedValues = request.getParameterValues("checkbox");You'll get an array filled with the values only for the checked boxes. In other words, if no boxes are checked, checkedValues will be null or checkedValues.length == 0, not sure, going from memory.
    Hope this helps!
    Patrick

  • Some of thy images are appearing pixelated.  any idea on how to get the issue fixed

    some of my images in Aperture/iPhoto are appearing pixelated.  any idea on how to get the issue fixed

    Where can I find a copy of that? Like if I were to completely delete everything on my ipod, what would I do to go about restoring my songs?
    Also I have a theory that one of the videos on my ipod is causing all the other stuff. However, I can't delete videos off my ipod (see https://discussions.apple.com/message/20313736?ac_cid=tw123456#20313736). Is there any way i can get the music from the backup but not the videos?

  • How can i buil labview program to get the area and curvatures at top with video analyis?

    labview program building...
    Solved!
    Go to Solution.

    Please stick to your original thread:  http://forums.ni.com/t5/LabVIEW/how-can-i-get-the-area-of-a-ball-with-video-analyis/td-p/1630034
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • I'm trying to transfer data (docs, emails) from G4 iMac running os 10.3.9 to brand new iMac on 10.8.1  I'm stuck, any help greatly appreciated.  (Ethernet or wifi networking are both options if I can figure out how to get the machines to communicate.)

    I'm trying to transfer data (docs, emails) from an old G4 iMac running OS 10.3.9 to brand new iMac on 10.8.1  I'm stuck, any help greatly appreciated.  (Ethernet or wifi networking are both options if I can figure out how to get the machines to communicate.)

    AMoriyama wrote:
    I have the old machine backed up onto an external firewire disk but can't hook that up to the new imac as I'm waiting for delivery of a firewire 400/800 adaptor - therefore starting the old machine up as a slave is also subject to the same delay.
    I was hoping there might be some way to create a network between the 2 machines (and 2 different versions of the OS) to be able to transfer data across immediately but perhaps I'll just have to wait for my firewire adaptor to arrive.
    I don't understand why you're buying a Firewire adaptor, since AFAIK both of your computers have Firewire already built in.
    All you need is a firewire cable. Connect the Firewire socket on the old machine to the Firewire socket on your new iMac.
    Then start the old machine in Target Mode (i.e. by holding down the T key on its keyboard, while it's starting up, until you see the three-legged T icon hopping around the screen of the old machine.)
    At that point you will also see a new icon on the screen of your new iMac. This is the hard drive of your old machine.  By clicking on it you can navigate through it any way you like, just as you would normally.
    Just drag across whatever you want from the old computer to the new one. This will leave everything on the old computer untouched.
    - or use Migration Assistant but in my experience, Migration Assistant isn't very reliable and fails to migrate large amounts of stuff.

  • I have been charged 274.55 from 8-23-2013 - 8-26-2013. These are not my charges. I need to know how to get the charges reversed and put back on my account ASAP. Please confirm!

    I have been charged 274.55 from 8-23-2013 - 8-26-2013. These are not my charges. I need to know how to get the charges reversed and put back on my account ASAP. Please confirm!

    You can contact iTunes Support via this page (we are fellow users here on these forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to get the details of Transports which are yet to be imported

    Hi Experts,
    Kindly let me know how to get the Transport request details which were not yet imported.
    For example:
    We have two client in development system 300 and 400, The transports which are created in 300 and imported to 400 (in SCC1).
    I need to know the details of transport requests related to 300 which are yet be to moved to 400.
    Where can i get these details.
    Thanks,
    Narasimhan Krishna

    Narasimhan,
    Take a closer look at Yves KERVADEC's approach. The issue here is that typically SCC1 is used to move transports which have not yet been closed.  You can see the details of any transport via se01/se09/se10, whether open or closed, but my interpretation of your question is that the customer wants to know which transports have been imported into the unit test client (400) via SCC1, which transports have been brought in by the transport system (after they were closed), and which transports have not yet been sent to either the unit test or QA system (i.e. are still open).
    My guess is that you are trying to track down why things work in the unit test client and not in the QA client. That is actually a different question with a different approach, but if that's what you really want to answer, go ahead and ask that question in a separate thread and you'll get a ton of techniques.
    Back to the question you actually asked: By writing a query, you can get a list of transports which have been brought in to the unit test client via SCC1. You can also get this information from SCC1 --> Goto --> Log Display. Then click All Transport Requests and doubleclick on the client. This will give you the import log of your unit test client with date/time stamp. Analysis of that data indicates to me that perhaps you may want to look at CC0_RSCCPROT03_ALV, but I'm not an ABAPer so the previously mentioned tables are probably better.
    Anyway, once you have a list of transports which have been imported, you can subtract out the ones that have been closed and transported downstream (and back into the unit test client.. your transport path does re-import the final version of the transports into the unit test client... right?). You can get that information from another query or you can get the list from STMS as suggested by Aparajit Banik.Then you'll have a list of transports which have been imported into the unit test client via SCC1 but have not yet been released and made it downstream. This will give you a "hit list" of transports which might be causing a mismatch between your unit test and QAS clients. You would then inspect them more closely with SE09/SE10/SE01 (I prefer se01, but different folks prefer different version of the transaction).
    Again, there are better ways to deal with client mismatches, but I'm answering the question you asked in case I misunderstood the underlying subtext.
    I hope this helps!
    Best regards,
    --Tom

  • The dates my photos were taken are now incorrect.  Any suggestions on how to get the correct dates back?

    The dates my photos were taken are not incorrect.  Any suggestions on how to get the correct dates back?

    Thank you Winston.  This works and I can adjust several photos at the same time.

  • How to get the approver from a wf notification in case there are multiple approvers ?

    I created an ad hoc role to store mutliple approvers for a wf notification.
    My question is how to get the user_name of the first responder so I can stamp the record I need to update with it.
    I''m assuming it would be using wf_notifications.GetAttrText but I don't know what that attribute name would be.
    Please help.

    Hello,
    I think you can try with script to capture the duplicate booking on presave action. Just try to give a shot to this solution:
    http://aleemsheikh.wordpress.com/2011/08/08/warn-users-of-double-booking-in-sharepoint-calendar-in-real-time/
    http://social.msdn.microsoft.com/Forums/en-US/9a10a110-a18b-4b5b-a15f-b563322ca0a6/how-to-prevent-duplicate-calendar-list-items-sharepoint-2010
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Incompatible image size error

    Hi, I had a program that was working, and then made a copy of it to make some changes.  The main change was to be able to put a BCG correction on the subtracted image.  Now for some strange reason I get an Incompatible image size error.  Can anyone h

  • Adobe Lightroom 5_ Sharpening Panel

    Hi, With reference to Adobe Lightroom 5, under the Sharpening Panel , when operated while pressing Option(Alt) we get the Visualization Feedback real time on the image ..Black White/Grey.Is there any way to save this image in Jpeg format ? Thanx Saur

  • Scrolling solution needed for pdf imported to Cp 8 Responsive on the iPad

    Using Cp 8, Responsive Projects, I imported a pdf (through the library import button) and placed it on a slide.  When published (for devices), the pdf can be viewed on a computer and an iPad (if the Acrobat Reader app is installed).  However, it can

  • I can't insall itunes in windows 7-32bit

    I can't in sall itunes in windows 7-3bit.

  • Removing unwanted email storage from icloud

    how, emptying trash and junk does not work. nothing else is turned on, other than locate.