Overlapping polygon and how to determine the points

I have a larger footprint polygon/table called A and a sub-polygon/table called B.
I need to identify which is polygon A and which is polygon B because they overlap with each other.
And I need to identify all the point that falls within A and B.
which means A = A and B = A+B and the other points that do notfall within A and B will be null.
How do I start this assignment?
I was thinking
alter table A
add  (ID varchar( 50 BYTE)) ;
update A
set ID = 'larger';
--TO do a point in Polygon
PROCEDURE point_polyA
IS
     proc_name varchar2(50);
BEGIN
     proc_name := 'point_polyA';
     add_log(proc_name,'Start processingpolyA');
     COMMIT;
     FOR x IN (SELECT id, geoloc
                   FROM A)
     LOOP     
          FOR y IN (SELECT a.*
                        FROM point
                       WHERE sdo_filter (A.geoloc, x.geoloc) = 'TRUE')
          LOOP               
               IF sdo_geom.relate(y.geoloc, 'ANYINTERACT', x.geoloc, 5) = 'TRUE' THEN
                    INSERT INTO point_polyA ( id)
                         VALUES ( x.id);
               END IF;          
          END LOOP;
          COMMIT;
     END LOOP;
     add_log(proc_name,'Finish!');
     COMMIT;
     EXCEPTION
             WHEN OTHERS THEN
                add_log(proc_name, substr(SQLCODE||' '||SQLERRM, 1, 199));
     COMMIT;Do the same for B then
select ID
from A,B
where sdo_relate(A.geoloc,B.geoloc,'mask = contains') = 'TRUE';Message was edited by:
CrackerJack

Hi,
this
rownum<2
making sure that only the one clicked polygon is rendered/displayed
(pls see the [image of the screen |http://bp0.blogger.com/_8PXbvmaOB6M/SEe0rNCz4nI/AAAAAAAAAWo/lOHcLjbIz-U/s1600-h/verschneiden_snap3.png] )
i.e. you click on the polygon of the area (county) and get the FOI as per Parameter 1 (which are the records/FOI contained in the first table "DEKUNDEN" = customers)
in ur above code you will need to say:
(b.geoloc, :1)
recommend to firstly try to achieve a result with the delivered MVDEMO data.
Then the SQL of the theme will look as follows:
select a.location, a.name,
a.city, a.sales from customers a where sdo_relate(a.location, (select
geom from counties b where sdo_contains(b.geom, :1)='TRUE' and
rownum&lt;2), 'mask=ANYINTERACT')='TRUE'
re) attributes for both points and polygon
--> for the points (customer table/theme) usually you get an Infowindow automatically for the theme "customers" for the "Info columns" you have defined in the ADVANCED Tab of the theme in the Mapbuilder.
--> for the polygon you'll have to assign an info window on "mouse_right_cklick" as the "mouse-click" (left) has already been used for selelcting the polygon.
and lastly I am not dealing with a webservice - just 2 tables: "customers" (with the POI - points) and "counties" (the polygon - area) from the MVDEMO example data.
Hope that helped and I did not make more complicated - sorry - but it is quite complex (;-).
Bernhard
Edited by: BernhardFW on Aug 25, 2008 1:30 PM

Similar Messages

  • How to determine the mount point for directory /tmp ?

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I am installing Grid infrastructure. I am on step 7 of 10 (verify Grid installation enviroment) and get this error:
    "Free Space: Rac2: /tmp"
    Cause: Could not determine mount point for location specified.
    Action: Ensure location specified is available.
    Expected value: n/a
    Actual value: n/a
    I have checked the free space using the command:
    [root@Rac2 /]# df -k /tmp
    Output:
    Filesystem     1k-blocks     used     Available     Use%     Mounted on
    /dev/sda1     30470144     7826952     21070432     28%     /
    As you see above, the free space is enough, but could not determine mount point for /tmp.
    Do any folk understand how to determine the mount point for directory /tmp ?
    Thanks.

    I have just checked "/home/oracle/.bash_profile". But in my computer, there is no "oracle" under /home directory.Is this your first time Linux and Oracle installation? I had a brief look at your referenced link. The reason why you do not find a "oracle" user is because the instructions use "ora11g" instead, which, btw, is not standard. The directories of your installation and your installation source can be somewhat different from known standards and you will have to adjust it to your system.
    My best guess is that you have either missed something in the instructions or you need to ask the author of the blog what is wrong. The chance to find someone here who has experience with these custom instructions is probably unlikely.
    I suggest you try to locate the cluster verification tool, which should be in the bin directory of your grid installation. Alternatively you might want to check the RAC, ASM & Clusterware Installation forum: RAC, ASM & Clusterware Installation

  • EEWB :  how to determine the business object and the extension type ?

    Hi,
    I ask myself how to determine the business object and the extension type to use to add new fields in a new tab of a specific transaction ? what means each business object, does that correspond to a specific transaction ?
    I need to add a new tab in the ‘BaMI’ business activity in transaction CRMD_ORDER just after the tab 'Actions' at header level.
    Could you help me please to determine which business object and extension type I have to select during creation of the project and which business object category I have to select during creation of the extension (wizard) ?
    Thanks for your help,
    Marie

    Marie,
    In order to determine what type of transaction you are extending, you will need to look at the customizing for the transaction.
    In the IMG:
    Goto:
    Customer Relationship Management->Transactions->Basic Settings->Define Transaction Types.
    You will then choose the transaction defined that you want to extend.  If you display the details of the transaction you will find an attribute called:
    "Leading Transaction Category".  This tells you the general context in which the transaction is used.  The other item to view is the assignment of business transaction categories found in the maintenance screen.
    This information general corresponds to one of the options that the EEWB will give you on the transaction type.
    As far as extensions go, my recommendation is the following:
    - Use CUSTOMER_H Customer Header Extensions for any new fields at the header level.
    - Use CUSTOMER_I Customer Item Extensions for any new fields at the item level.
    Unless you have a specific requirement to extend a segment of the transaction, I recommend placing all new fields in these segments.  The CUSTOMER_H & CUSTOMER_I segments are considered "standard" segments, that are already built into all the necessary API structures. 
    Let me know if you have any further questions.
    Good luck,
    Stephen

  • HT1338 trying to download mountain lion OS, but whenever the net connection is broken it restarts from zero, how to prevent this and start downloading from the point it was disconnected

    trying to download mountain lion OS, but whenever the net connection is broken it restarts from zero, how to prevent this and start downloading from the point it was disconnected

    Disable anti virus software and try turning off the Firewall in System Preferences > Security & Privacy > Firewall.
    Quit then relaunch the App Store. From the menu bar click Store > Sign In
    Then click Store > Check for Unfinished Downloads

  • How to determine a point(or a path)  inside a closed path?

    I came across such a problem:
          My client requires add a number marks inside a closed path ,and such a closed path is irregular,
    My question is, how to ensure a point(or a path) is inside another closed path,and how to calculate this point?
    Is there any suite in the SDK to accomplish this function?

    haha ,I found a good way to solve this problem,We can use AIPathfinderSuite::DoFrontMinusBackEffect  to determine  whether a path  inside another closed path.

  • How to determine the IPS throughput using Cisco ASA 5500 IPS Solution?

    Hello there!
    I´ve been desinging a solution to protect de Server Farm and I intend to use the ASA 5500 series with AIP-SSM module. There´s any tool to determine the real throughput that I need? I mean, how to determine the performance (Firewall + IPS  throughput), what main points I should consinder?

    If the server farm is running production levels of traffic today you can get statistics off a variety of networking devices passing the existing traffic. Switches, routers and firewalls all count every byte of traffic they pass. There are plenty of tools that can gather this traffic into tables via SNMP too, such as MRTG.
    Do not average your traffic over too great a time peroid, you will miss busy hour peaks. At most, use 5 min averages.
    - Bob

  • How to determine termination point of call

    We're using UCCE 7.2 and are moving to 9.0 in a few weeks.  One of the questions that we have had is how to determine the termination point of a call.  I'm looking for a way to report through either the HDS or call manager whether the agent or the caller disconnected the call.
    Does anyone know if there is a way to identify this in any of the reporting databases available?
    Thanks,
    Randy Black

    I should probably provide a bit more detail about what I'm trying to determine.  We have two different situations:
    1: Customer reports that a call was disconnected.  Agent reports that they did not hang up on the customer and we need to determine if the call was terminated by the agent or the customer.
    2: We offer a post-call survey using a custom CVP application.  Customers opt in to the survey at the beginning of the CVP call flow, the customer makes their IVR selections and are routed to an agent.  Once the agent disconnects, the customer is routed back to CVP to take the post-call survey.  We have quite a few customers that opt in for the survey, but never complete the survey.  We know that some number of these are not taken because the customer forgets or changes their mind, but suspect that number of these are not completed because the agent does not disconnect the call so the customer is never routed to the survey.  We have a policy in place that requires the agent to disconnect the call after the call is completed, but want to determine what agents are not disconnecting the calls.
    I'm looking to determine agent vs. customer termination on all calls so we can confirm who disconnected.
    I've looked at the records in the Termination Call Detail on the HDS, but have been told that this is not a great way to identify this information so I'm looking for any alternatives that are more accurate for this reporting.
    Thanks,
    Randy

  • How to determine some points?

    Hallo,
    i need to calculate the bandwidth of a filter. so i need to determine the point (nr1) and then the corresponding point (nr2) to determine the bandwidth.
    How can i find firstly the value of the point (nr1) and then the corresponding point (nr2) as it shown in the attached file?
    thanks
    Attachments:
    Untitled-1 copy.jpg ‏67 KB

    Well, the problem is that your x-axis is lograrithmic and the values are not equally spaced.
     I assume you want the point where the line first drops below a certain db and then get the x-value there.
    I would multiply the Y data by -1 and take the log of x and use threshold 1D array. For the array input make an array of clusters, each element containing [-Y, log(x)]. Search for "(-1)* threshold" and youl'll get the corresponding log(x) from which you can calculate the desired x.
    Check the online help for "threshold array" for the allowed inputs.
    Please attach some data if you want more detailed help.
    (If you have significanlty more noise, you might want to fit the data to a mathematical model using e.g. levenberg-Marquardt.)
    LabVIEW Champion . Do more with less code and in less time .

  • How to determine the ROWNUM in a Master Detail Form

    Hello,
    I am working in a Master Detail Form with Orders and Order Items Information; and I created a process that allows the users to select a Product ID on a tabular form, and the next column is populated automatically with the Product Description.
    To achieve that, I followed some instructions by Denes Kubicek (http://apex.oracle.com/pls/otn/f?p=31517:241), but my case is slightly different:
    <ul>I am using a wizard-created tabular form, instead of a manual tabular form; and </ul>
    <ul>Instead of using another page as a Popup to pass the parameter of the ROWNUM, I am using a plug-in called “Tabular Form Super LOV” which is a modified version of the SkillBuilders’ Super LOV that works on Tabular Forms. </ul>
    The Product ID is returned in the correct row by the plug-in; but in the case of the Product Description, it is always returned into the first row; and my problem is that I don't know how to determine the row where the user clicked to call the plug-in.
    I set up an example in apex.oracle.com in case someone would like to look at it:
    Workspace: ediazjorge
    Username: test
    Password: test
    App Name: Sample App
    App Number: 1550
    BTW, I am using Apex 4.1.1.00.23 and Oracle DB 10.3.2.
    Thanks in advance,
    Erick

    Hello VC,
    Thank you for your time and help.
    Unfortunately, it is still not working properly:
    1. When the Popup LOV opens, the first row of the tabular form is 0, the second row is 1, and so on. How can I assign the values starting with 1 and in the format *0001* ? (I am still a novice on Apex and new to JavaScript :-), sorry about that).
    --2. Also, when I close the Popup LOV, the value of P1_ROWNUM is ‘undefined’ again so I'm not sure if the Product Name column will be populated.--
    3. And finally, you are using the jQuery Selector uPopupLOVIcon, which is an attribute of the Cloudy Theme. In my real application (Apex 4.1.1.00.26), my element looks like: *<img src="/i/lov_16x16.gif" width="16" height="16" alt="Popup Lov" alt="List" style="vertical-align:middle;" align="middle" />*. What do you recommend me to use as a jQuery Selector?
    Again, I really appreciate your help and time. I think you solved the most difficult part.
    Thank you so much,
    Erick
    Update: I just found out that the problem with my comment 2 is because I didn’t delete the previous dynamic action that set the value to P1_ROWNUM.
    Edited by: ediazjorge on Sep 18, 2012 11:20 AM

  • How to determine the field size

    I am going to make a multiplatform application that hopefully
    will run on linux and windows 2000.If the os is 2000, then I will use
    vb.net/aspx else I'll use java servlets. I make the connection
    to the web server ( through HTTP) not directly to database server.
    So, the resultset will be stored in the String object. The columns
    will be separated by delimeter. Our problem is how to determine
    the size and type of the fields of mssql,oracle and postgres database
    so that we can include it in the String object.
    Ex.
    String sResultSet=new String();
    ResultSet rs=statement.executeQuery(sSQL);
    while(rs.next()){
    sResultset=sResultSet + rs.getString(field1) + "||" + rs.getString(field2) + "||";
    vertical bars acts as delimeter
    supposedly this is the code:
    sResultset=sResultSet + rs.getString(field1) +"_" + rs.getFieldType() + "_"+
    rs.getFieldSize() + "||" + rs.getString(field2) +"_" + rs.getFieldType() + "_"+
    rs.getFieldSize() + "||";
    supposedly this is the code if rs.getFieldType() and rs.getFieldSize() methods are existing
    Anyone can give me an idea how to get the field type and field size of the database?
    thanks in advance

    Yes, but I dont know how to do it.
    Can you give me an example of using it.
    Thanks in advance

  • How to determine the cost center

    Dear experts:
    Could you give me some suggestions about how to determine the cost center depending on the different
    storage location when we use the t-cdoe MI07
    Thanks in advance.
    Rong

    Hello experts!!!
    how have you resolved this issue???
    I have the same situation, and i dont know how to manage this.
    Thank you very much in advance.
    Best regards,
    M. Cecilia Vacatello.

  • How to determine the type of the jobject... similar to instanceof

    hi,
    I would like to know how to determine the jobject reference of an instance is of which class.
    this is something similar to instanceof we use in java.
    is there any thing like 'instanceof' in JNI. if there how to use it?
    i got this as objective question for which answers were(i do not remember exactly)
    1.instanceof
    2.assignedto
    i could nt het much help in googling.
    thanks in advance

    Hi
    The JNI provides a native version to the java instanceof operator, this function takes two arguments
    an object refrence and a class refrence and reports JNI_TRUE.
    jclass myclass = env->FindClass("your class name");
    if(env->IsInstanceOf(obj,myclass) == JNI_TRUE)
    // obj is of type myclass
    }Regards
    pradish

  • How to determine the solution's ID in absl?

    Hello Community,
    I have a simple question yet I fear there is no simple answer (possibly no answer at all).
    The question is:
    Does any body know ways how to determine the ID (e.g. Y123ABCDY_) of the solution the code is running in?
    My use case is the following:
    We have a solution template which will be deployed in different customer tenant.
    Thus, each deployment will have a different solution ID.
    Now, somewhere in code, we generat PDFs using the OutputManagementUtilities.GetPDF reuse library.
    This method requires the form template code of the pdf to be generated as a parameter.
    However, this PDF form template code is composed of the solution ID and a fixed suffix.
    Thus, currently I need to modify the absl code in each customer installation to manually modify the form template code prefix to the solutions solution ID.
    Therefore I'd like to construct the form template code in absl but for this I need a way to determine the solution's ID.
    Any ideas?
    Best regards,
    Ludger

    Hi Fernando.
    After reading your post I initially thought "what is the ObjectTypeCode" supposed to do any good to determine the solution ID"?
    Using the Object Type code of a custom bo is indeed a way to solve this problem.
    With a little additional code I can extract the relevant solution ID part from there.
    Thanks for the hint, that was really useful.
    Best reegards,
    Ludger

  • How to determine the length of a curved path in illustrator CS2

    how to determine the length of a curved path in illustrator CS2?

    bornfree,
    The free Patharea/Pathlength Filters from Telegraphics is your friend (the former gives you both area and length, both in different units):
    Telegraphics - Free plugins for Photoshop & Illustrator...and other software

  • How to determine the maximum allowable length of a filename for Window ?

    Hi all,
    Could I know how to determine the allowable file length (the length of the absolute path) for a file in Window environment?
    Due to some reason, I generated a zip file with a very long filename ( > 170) and put in a folder(the length of the folder path around 90). The length of the absolute path is around 260.
    I used FileOutputStream with the ZipOutputStream to write out the zip file. Everything is working fine while i generating the zip file.
    However, while i try to extract some files from the zip file i just created, i encountered the error
    java.util.zip.ZipException The filename is too long.
    I am using the class ZipFile to extract the files from the zip file like the following
    String absPath = "A very long filepath which exceed 260";
    ZipFile zipF = new ZipFile(absPath);  //<-- here is the root causeIs it possible to pre-determine the maximum allowable filepath length prior i generate the zip file ? This is weird since i got no error while i created the zip file, but have problem in extracting the zip file ......
    Thanks

    Assuming you could determine the max, what would you do about it? I'd say you should just assume it will be successful, but accommodate (handle) the possible exception gracefully. Either way you're going to have to handle it as an "exception", whether you "catch" an actual "Exception" object and deal with that, or manually deal with the length exceeding the max.

Maybe you are looking for

  • New to Solaris - Installing on Blade 100, Various Issues

    I have recently purchased a Blade 100 to use as a workstation/server/faffing-about machine to basically learn how Solaris works! After working out all the different editions, I downloaded b76 for SPARC and installed. As I don't have enough RAM (yet)

  • ICal invitation responds not automatically updated in iCal

    I have to click the file in the mail message to have the iCal event update the acceptance or denial of an invitation. Worked perfectly in Tiger.

  • How to check whether a char string is in uppercase or not

    Hi, I know how to convert strings to change strings to uppercase or lowercase, but is there any function to check, beforehand, if the field is in uppercase, for instance ? The intention here is simply to spare processing in situations where the strin

  • Issue in maintaining view

    Hi all When I'm trying to maintain the view T554S_WEB  through SM30 I'm getting an Error message saying "<b>Create data processing function module</b>" When I double clicked on the Error message I'm getting Create data processing function module Mess

  • Re:bapi

    Hi All, can u pls help me out in the following issue? iam very new to using bapi, i got the requirement to upload time data into sap using standard bapi BAPI_CATIMESHEETMGR_INSERT . in this bapi the data import table have the fileds similar to the fi