Spatial relations and geometry objects

hi guyes
is it possible to make a special relation between 2 geometries on the fly?
i.e:
select f.id from farms f,PUMP p where SDO_RELATE((SDO_GEOMETRY(3001, -1, SDO_POINT_TYPE(54.1506485714,23.02908,0), NULL, NULL)),f.geometry,'mask=ANYINTERSECTION')='TRUE' ;
i mean to give one of the geometries on the fly and the other from a database..
but the problem that the function SDO_RELATE works only for spatial indexed features
so is there any suggestions???
thanx
Toka

http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14255/sdo_objgeom.htm#i865398

Similar Messages

  • Migrating Relational Model to Object-Relational Model

    Hi,
    Can someone direct me to appropriate tutorial/examples in migrating spatial relational model to object-relatonal model.
    I have the following tables in the relational model:
    ROADS
    ROADS_SDODIM
    ROADS_SDOGEOM
    ROADS_SDOINDEX
    ROADS_SDOLAYER
    What tables would I need to create in the object-relational model?
    Can someone advice me on how to use this function sdo_migrate.to_current?
    Thanks in advance!

    There are a number of Object Oriented databases out there, with Gemstone perhaps the best known. Also, Oracle, and other RDBMS vendors are adding more object oriented features all the time.
    However, there are some downsides to OO databases. One of the biggest is that it is often really difficult to query the data directly. All interaction with the database needs some sort of mapping layer to instantiate the objects and get their attributes. It is also difficult, and sometimes impossible, to generate ad hoc queries that try to look at the data in a way that does not match the object model, something that is relatively easy in a well designed relational model.
    Finally, object oriented databases represent a more or less one to one mapping to a currently popular programming paradigm. What happens to the data when the next great programming paradigm (foo perspective) comes along? Will the foo prgrammer be able to easily read the objects in the OO database? Probably not. Will the foo programmer be able to easily read the relational data? Almost certainly.
    John

  • Relation between Roles and Course/Object ID

    hi
    Please tell me the HR-infotype having roles/position/job in relation with Course/object Id.
    HRP1000 have only courses .
    or please tell me how to make relation between two i.e. roles and course/object id
    S@chin

    all these
    Characterstic will available in differnt Infotypes   Check the tcode PP01
    and check with the help of the Objects
    for Course ID

  • Geometry objects and Applets

    hello,
    I'm writing a servlet which should pass a Geometry object to an applet. The problem is that the applet
    getParameter method doesn't seem to work with Geometry objects. Can anyone suggest anything please ?
    Here's the code I was using in the applet access the Geometry object:
    Geometry geom = (Geometry)getParameter("geomObject");
    Thanks in advance,
    Trish.

    What do you mean by this "PO number should open in workbench"?
    Do you want the PO transaction to open? Or what is this "workbench"?
    If you want to display the PO, you can try the following:
    - Most likely you have the PO business object BUS2012 in the workflow container (check this in SWDD)
    - Bind this object from the WF container to the user decision step/task (into the "_Adhoc_Objects" container element)
    -Now you will have the PO object as an attachment in the work item, and when you click it in business workplace, the purchasing document should open
    -Please make sure to start new workflow after your changes, since your changes will not have an effect to the old WF instances.
    Regards,
    Karri

  • Spatial index - invalid geometry

    Hello,
    I have a table with buildings, on that a spatial index and everything was working fine.
    Then, I added some more data (buildings) and the spatial queries (e.g., sdo_within_distance) didn't work anymore. I then dropped the spatial index and recreated it. That seemed to work fine (sqlplus told me "Index created"). When I go into the enterprise manager and check the spatial index it says this:
    Failed to initialize Related Segments Space Info: ORA-00600: internal error code, arguments: [ktsircinfo_num1], [0], [0], [0], [], [], [], [] ORA-06512: at "SYS.DBMS_SPACE", line 429 ORA-06512: at line 1
    Anyone knows what this might have to do with?
    I also checked the geometries using VALIDATE_GEOMETRY_WITH_CONTEXT and found that there are some geometries with redundant points and self-intersecting boundaries.
    Could this explain the above problem?
    Markus

    Hi, thanks, I decided to try an example word for word but I am still having the same problems.
    I am thinking this might be an OEM error but I don't know. If it is I can live with it, but I need to know what the problem is before I can ignore an error in my production system.
    This is what I am doing:
    Following the directions provided in the following doc:
    Doc ID: Note:146094.1
    Subject: 9i New Feature: SDO_GEOMETRY Objects in Function-Based Indexes
    Type: BULLETIN
    Status: PUBLISHED
    Content Type: TEXT/PLAIN
    Creation Date: 17-MAY-2001
    Last Revision Date: 21-APR-2004
    PURPOSE ------- This article shows how to create and use a function-based index where the function returns an SDO_GEOMETRY object.
    After I create the first index (LONG_LAT_TABLE_IDX) and then use OEM to find indexes for scott schema and click on LONG_LAT_TABLE_IDX entry I get the same exact error.
    I am using 10g.
    Are there "patches" for 10g that I need? If so, how do I figure out what I need?
    Thank you for your time.
    Les.

  • Ora-13033 Invalid data in the sdo_elem_info_array in sdo geometry object

    Hi,
    I am getting this error when I am creating spatial index on geometry.
    I suspect I have some problem with some rows of my geometry data. I have identified and fixed these problems so far. but I still getting error on spatial index creation.
    -emptry Gtype in some rows
    -wrong Gtype in some rows
    Complete Error.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: mdidxrbd
    ORA-13249: iError in Spatial Index: index build fialed
    ORA-13200: Internal error RowID:AAANZE/AAFAAALFaAAP..... in spatial indexing
    ORA-13206: internal error [] while creating the spatial index
    ORA-13033: Invalid data in the sdo_elem_info_array in sdo geometry object
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
    I have line data for this table and below is the sample data.
    GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    598520.994, 4837106.63, 598462.359, 4837164.63))
    SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    599229.43, 4837127.13, 599089.675, 4837264.62))
    SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    599280.002, 4837024.46, 599295.689, 4837048.09, 599296.21, 4837055.13, 599294.64
    5, 4837062.43, 599229.43, 4837127.13))
    SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    599089.675, 4837264.62, 599028.567, 4837324.34))
    SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
    595925.144, 4839146.42, 596002.765, 4839128.11, 596007.989, 4839126.85, 596013.5
    22, 4839123.09, 596056.926, 4839089.74, 596100.769, 4839065.62, 596106.694, 4839
    063.81, 596110.438, 4839064.27, 596115.548, 4839066.47, 596181.122, 4839135.22,
    596183.623, 4839140.59, 596183.706, 4839145.03, 596183.319, 4839148.15, 596181.1
    78, 4839152.64, 596174.794, 4839163.26, 596165.136, 4839174.75, 596143.191, 4839
    194.57))
    Please also note that I have correct dimension in "sdo user geom meta data" table and in my table.
    Any help is greatly appreciated.
    Rose

    Hi Rose
    If you take a look at the error message, you will find a line there that starts with ORA-13200
    ORA-13200: Internal error RowID:AAANZE/AAFAAALFaAAP
    This points to the ROW containing the geometry that triggers this error (described in the error message).
    So if you could post the geometry of that specific row that might help. Use the following sql statement:
    Select geometry from YOUR_TABLE_NAME WHERE ROWID = 'AAANZE/AAFAAALFaAAP';
    tx
    Luc

  • What time Oracle Spatial Can support text object

    Hi:
    I want know what time oracle spatial can support text object. it is very useful for
    GIS and LBS customer.
    null

    Hi,
    I think it is an interesting idea, but there are difficulties when implementing such objects in the database level. For one thing, the placement, orientation of text for a point geometry is often dependent on point geometries stored in other rows in order to acheive an optimal and non-overlapping placement. It also depends on the font and size of the text, as well as the scale and level of detail when visualizing the spatial data. Such contextual information is only available to an application. I hope I understood you correctly and if you have further comments I would like to hear them too.

  • What is the diffrence between BAPI and RFC and business object

    Hi Experts,
    Can anybody tel me what is the diffrence between RFC and BAPI , and also what is ther relation with business object?
    Thanx in advance.
    Nilesh Hiwale

    Hi,
    BAPI's are associated with Business Objects and also they are RFC enabled.
    But RFC's are the FM's which can be called from external systems, those FM's can be used in many places based on the applications..
    Check these Links
    whats the difference between BAPI and RFC??
    Diff. Between BAPI and RFC
    Regards
    Kiran

  • Infocubes and info objects

    Hi guys,
            i'm new to BI. can any one differentiate between Infocubes and info objects..
    please be a bit specific.....

    Hi,
    An InfoCube describes (from an analysis point of view) a self-contained dataset, for example, for a business-orientated area. You analyze this dataset in a BEx query.
    An InfoCube is a set of relational tables arranged according to the star schema: A large fact table in the middle surrounded by several dimension tables.
    Use
    InfoCubes are filled with data from one or more InfoSources or other InfoProviders. They are available as InfoProviders for analysis and reporting purposes.
    Structure
    The data is stored physically in an InfoCube. It consists of a number of InfoObjects that are filled with data from staging. It has the structure of a star schema.
    The real-time characteristic can be assigned to an InfoCube. Real-time InfoCubes are used differently to standard InfoCubes.
    ODS versus Info-cubes in a typical project scenario
    ODS
    why we use ods?
    why is psa  & ods nessasary
    InfoObject: Basic building block of BW.. ( Its like a field )
    Definition
    Business evaluation objects are known in BI as InfoObjects. They are divide into characteristics (for example, customers), key figures (for example, revenue), units (for example, currency, amount unit), time characteristics (for example, fiscal year) and technical characteristics (for example, request number).
    Use
    InfoObjects are the smallest units of BI. Using InfoObjects, information is mapped in a structured form. This is required for constructing InfoProviders.
    InfoObjects with attributes or texts can  themselves also be InfoProviders (if in a query).
    Regards,
    Ram.

  • A function containing switch statement and foreach-object loop

    Hello Guys
    in my testdomain.lab, i have following five OUs in mt test AD structure:
    'OUusers', 'OUcomputers','OUservers','OUadministrators','OUhelpdesks'.
    i have created following five variables:
    $OUusers = 'ou=OUusers,dc=mytestdomain,dc=lab'
    $OUcomputers = 'ou=OUcomputers,dc=mytestdomain,dc=lab'and so on
    now i have created a function which gets this names as input &
    foreach-object creates the related OU.
    but the problem is sometimes when i run my function, maybe some of those five OUs
    currently exist in AD so this will cause a
    terminating error. 
    so i know i must use switch statement to define conditions like this:
    if $OUusers doesn't exist, execute this :  new-ADOrganizationalunit $OUusers
    if $OUcomputers doesn't exist, execute this :  new-ADOrganizationalunit $OUcomputers
    and so on...
    it's a long time which i am trying to create a
    function which contains such switch statement & properly forEach-object loop.
    i have studied switch and foreach-object loops , but this scenario is complicated for me & i was unable to get the correct code.
    Function createOUs {
    # combination of ForEach-Object and Switch statement here
    may someone give me the correct
    command please?
    thanks a lot

    Like this:
    $CompanyRoot=tha'ou=MyCompany, dc=mytestdomain,dc=lab'
    New-ADOrganizationalUnit -Name MyCompany -ErrorAction SilentlyContinue
    $ous='Users', 'Computers','Servers','Administrators','Helpdesk'
    foreach($ou in $ous){
    New-ADOrganizationalUnit -Name $ou -Path $companyroot -ErrorAction SilentlyContinue
    ¯\_(ツ)_/¯
    jrv, That can't be the solution because when you running a command which tries to creates an OU
    which already exist in AD, causes a
    terminating error which has two caveats:
    1- shows red error message on screen
    2- stops and doesn't continue to execute next lines of code
    Note that -ea silentlycontinue and -ea ignore have no effect on
    terminating errors and they cn't hide error messages, also script can't continue.
    i examined that.
    to get sure, run this function in your test AD & see the result:
    function createOUs {
    New-ADOrganizationalUnit -Name 'an-existing-ou' -Protected 0 -ea SilentlyContinue # you see that -ea silentlycontinue has no effect here
    New-ADOrganizationalUnit -Name '2ndOU' -Protected 0 -ea SilentlyContinue # you see that because the previous error has been a terminating error, command execution has been stopped and this 2nd OU hasn't been creatde
     another bad news is ( as i tested), if we query for an Organizational Unit which doesn't exist in AD , it generates a terminating error as well, so again here -ea has no effect.
    test this:
    PS C:\> Get-ADOrganizationalUnit -identity 'ou=nonesense,dc=yourDomain,dc=lab' -ea ignore
    error doesn't disapear ;-)

  • Data types and Data object

    Can Any one give me Clear definition of Data type and Data objects.
    Concept i know clearly.. but unable to explain it..
    Regards,
    Prasanna

    Data consists of strings of bytes in the memory area of the program. A string of related bytes is called a field. Each field has an identity (a name) and a data type. All programming languages have a concept that describes how the contents of a field are interpreted according to the data type.
             In the ABAP type concept, fields are called data objects. Each data object is an instance of an abstract data type. Data types in ABAP are not just attributes of fields, but can be defined in their own right. There are separate name spaces for data objects and data types. This means that a name can at the same time be the name of a data   object as well as the name of a data type.
    <b>Data Types:</b>
                     As well as occurring as attributes of a data object, data types can also be defined independently. The definition of a user-defined data type is based on a set of predefined elementary data types. You can define data types either locally in the declaration part of a program (using the TYPES statement) or globally in the ABAP Dictionary. You can use your own data types to declare data objects or to check the types of parameters in generic operations.
             Data types can be divided into elementary, reference, and complex types
    <b>Data objects:</b>
                      Data objects are the physical units with which ABAP statements work at runtime. Each ABAP data object has a set of technical attributes, which are fully defined at all times when an ABAP program is running. The technical attributes of a data object are its length, number of decimal places, and data type. ABAP statements work with the contents of data objects and interpret them according to their data type. You declare data objects either statically in the declaration part of an ABAP program (the most important statement for this is DATA), or dynamically at runtime (for example, when you call procedures). As well as fields in the memory area of the program, the program also treats literals like data objects.
    ABAP contains the following kinds of data objects
      Literals
       Named Data Objects
      Predefined Data Objects
      Dynamic Data Objects

  • Converting Relational Tables to Object Views

    We have extra information stored for each
    field in a table. We call these Vertical
    Tables:
    rowid primary key - ties to normal tab
    column_name "" - ties to column in ""
    text_value the value if text
    reliability rating for level of accuracy...
    date of entry
    Yes there are normal tables that the applications also access if they just need the value of the columns.
    So I want to take this to object views. This way, while oracle is learning how to alter objects, we can still maintain our data and old application while converting to the use of objects.
    I thought the best solution would be Type(s) based on the orignal data type. A generic type, text65_t could be created to hold every column that is less than 65 characters long:
    CREATE TYPE text65_t AS OBJECT
    WITH OBJECT IDENTIFIER(row_id) AS
    row_id VARCHAR2(30),
    value VARCHAR2(65),
    reliability NUMBER(1,0),
    doe DATE
    A view can easily be created of this. The
    mapping is one to one.
    My problem is the next level. How can I build another view on top of text65_t, integer_t, date_t... that ties all of the
    vertical rows back into a normal relational table or object.
    Thanks,
    bill
    null

    Hi migration group,
    I realize this is kind of off topic for
    this discussion group. Where can I ask
    questions like this?
    thanks
    bill

  • Business Objects And ABAP Objects ?

    hi all!
    May be this is a repitition but still :
    Can anyone give me a clarification on Business objects and abap objects in termas of difference-relations b/w them.
    regards
    sachin

    Hi Sachin,
    Please refer the below links,
    Business Object Repository and Class Library
    business objects
    Hope this helps.
    Regards,
    Hema.
    Reward points if it is useful.

  • Applications crash immediately when I click and drag object. Every time in every Adobe program.

    Application crashes when I click and drag object. Any time I am in an adobe program on my new computer (OS X Yosemite 10.10.1, 15 inch macbook pro 2.5gHz) say Illustrator for example, it will be fine until I inevitably need to click and drag something.
    It immediately crashes, every single time. Same with Premiere, same with AE, same with photoshop. This is a brand new computer and I've tried all available versions CC2014, CC, and CS6. Anybody have some idea of what is happening? I've also tried using a bluetooth mouse to see if it's a problem with the touchpad. How could clicking and dragging cause every single application to crash 100% of the time.
    Thank you in advance!

    Yosemite sometimes has problems, often related to "default" permissions needing to be changed
    -one person's solution https://forums.adobe.com/thread/1689788
    -http://blogs.adobe.com/creativecloud/creative-cloud-and-yosemite/
    -https://helpx.adobe.com/x-productkb/global/mac-os-yosemite-compatability.html

  • (Managed) Inverse relations and map mapping

    Hi.
    Is there any limitation in using (managed) inverse relations together
    with map mapping? I've tried to setup my test model like this: a single
    City object holds references to many Street objects. City has "name"
    attribute , collection named "streetsList" (1-n with Streets) and map
    named "streetsMap"(n-to-many map with Streets). Street objects have just
    simple "name" attribute and single "city" reference to City object.
    What I'd like to achieve is have Kodo to set inverse relation on Street
    object (relation "city") when I put Street object into City's
    "streetsMap". This works fine when using collection ("streetsList") but
    doesn't seems to be working when map-mapped relation field is in use.
    How do I use Kodo's inverse relations manager with map fields?
    Everything is OK when I set the inverse side of relation manually
    (setting Street.city field when putting Street to City.streetsMap) - but
    I'd like InverseManager to do it!
    My configuration:
    - kodo.properties:
    kodo.InverseManager: true(ManageLRS=true)
    - package.mapping:
    <class name="City">
    <jdbc-class-map type="base" pk-column="JDOID"
    table="TEST_CITY"/>
    <jdbc-class-ind type="metadata-value" column="JDOTYPE"/>
    <field name="name">
    <jdbc-field-map type="value" column="CITY_NAME"/>
    </field>
         <field name="streetsMap">
         <jdbc-field-map type="n-many-map" key-column="MAP_KEY"
    table="TEST_STREET_MAP"
         value-column.JDOID="STREET_JDOID"
    ref-column.JDOID="CITY_JDOID"/>
         </field>
    <field name="streetsList">
              <jdbc-field-map type="one-many" ref-column.JDOID="CITY_JDOID"
    table="TEST_STREET"/>
    </field>
    </class>
    <class name="Street">
    <jdbc-class-map type="base" pk-column="JDOID"
    table="TEST_STREET"/>
    <jdbc-version-ind type="version-number" column="JDOVERSION"/>
    <jdbc-class-ind type="metadata-value" column="JDOTYPE"/>
    <field name="name">
    <jdbc-field-map type="value" column="NAME"/>
    </field>
    <field name="city">
              <jdbc-field-map type="one-one" column.JDOID="CITY_JDOID"/>
         </field>
    </class>
    - package.jdo:
    <class name="City">
              <extension key="jdbc-class-ind-value" vendor-name="kodo" value="1"/>
              <field name="streetsMap">
                   <map key-type="String" value-type="Street"/>
                   <extension vendor-name="kodo" key="inverse-owner" value="city"/>
                   <extension vendor-name="kodo" key="lock-group" value="none"/>
              </field>
              <field name="streetsList">
                   <collection element-type="Street"/>
                   <extension vendor-name="kodo" key="inverse-owner" value="city"/>
                   <extension vendor-name="kodo" key="lock-group" value="none"/>
              </field>
              <field name="name">
              </field>
         </class>
         <class name="Street">
              <extension key="jdbc-class-ind-value" vendor-name="kodo" value="2"/>
              <field name="name">
              </field>
         </class>
    Regards,
    Pawe____ ____wierszcz

    Unfortunately, inverse management is not available for Maps. We hope to
    make it available in a future release.

Maybe you are looking for

  • Compiling a SOAP module for PHP5 in Leopard

    Hi. I thought I'd try to compile a SOAP module for the stock PHP installation in MacOSX Leopard. I snagged the php-5.2.5 sources from php.net, and used the compile arguments found in the "php -i" command. I only added "--with soap=shared --enable-sha

  • Bridge cs3 preview and slideshow question

    Hi i have a question does bridge cs3 need cache (drive space) to preview a photo or to see my photo with the slideshow feature ? i mean does bridge need to render and store the photos in the database to let me see in the slideshow or browsing i don't

  • HOW DO I CONVERT F4VS TO APPLE PRO RES?

    Hi, I need to transfer a premiere pro project as a XML to FCP so i plan to convert the files into premiere pro  into Apple prores so they can opened in a Apple Pro Res project in FCP. The files I need to convert are the original MOVs and F4vs so the

  • Packaging files outside of the classpath in the Air Install Badge

    Perhaps I am just missing it, but I notice when you bundle a Flex app into an Air container, you don't have an option to package assets that are outside of the src classpath? I see that the packaging process allows you to navigate to files under the

  • I have two iPad 2s, how do I change the name to differentiate?

    How do I rename my iPads in iTunes or on the iPad?