SqlDeveloper 3.0 using Spatial Geometry Data

Hi All,
I am new to Oracle Spatial and have an SDO_GEOMETRY column on a table.
I have populated it successfully with SDO_GEOMETRY function call using the latitude and longitude values.
update GEO_DATA
set GEO_POINT = SDO_GEOMETRY(2001
,4269
,SDO_POINT_TYPE(x, y, NULL)
,NULL
,NULL)
where x and y are longitude and latitude values.
The value of GEO_POINT looks like this: MDSYS.SDO_GEOMETRY(2001,4269,MDSYS.SDO_POINT_TYPE(-71.65555556,48.56472222,NULL),NULL,NULL)
It is my understanding that prior to version3.0 of SQL Developer required the third part tool "GeoRaptor" and that SQL Developer 3.0 does not.
I would like to view my Spatial data using SQL Developer but do not know part of the tool I should be using to view it in a map view.
I tried the “Map View” from the “Tools” menu but do not understand how to use it.
I can view it in the table but not as true spatial data.
Any assistance would be greatly appreciated.
Best Regards,
Gary

Hi Darren,
The VARCHAR() FOR BIT DATA is a binary data type and Data Federator does not support binaries. But if in your case, it makes sense to map this column to a VARCHAR data type you can configure the DB2 connector to view this column as a VARCHAR.
Your column can be mapped explicitly to a data type of your choice using a property: castColumnType.
This property can be set updating the resource you selected when you registered you DB2 data source.
If the resource is "jdbc.db2", then:
1. Launch Data Federator Administrator
2. Click on "Administration" tab
3. Click on "Connector Settings"
4. Select the right resource: "jdbc.db2"
5. Click "Add a property"
6. Select "castColumnType"
7. Set its value to: VARCHAR() FOR BIT DATA=VARCHAR
8. Click on Ok
You should see this column as a VARCHAR.
Regards,
Mokrane
PS: For the target table issue, we have forwarded your mail to the Data Federator Designer team.

Similar Messages

  • Ask : Trigger using spatial operation

    Hi all...
    I have two tables called OBYEK_PAJAK and AREAL_KEBUN, created using following statement :
    CREATE TABLE obyek_pajak (
    nop VARCHAR2(9) NOT NULL,
    npwp_wp VARCHAR2(15) NULL,
    kel_op VARCHAR2(100) NULL,
    kec_op VARCHAR2(100) NULL,
    luas_areal_op NUMBER NULL,
    tgl_ijin_op DATE NULL,
    mi_style VARCHAR2(254) NULL,
    mi_prinx NUMBER(11,0) NOT NULL,
    geoloc SDO_GEOMETRY NULL,
    kd_kppbb CHAR(2) NULL
    CREATE TABLE areal_kebun (
    id_areal_kebun NUMBER NOT NULL,
    nop VARCHAR2(9) NOT NULL,
    luas_areal_kebun NUMBER NULL,
    tahun_tanam VARCHAR2(4) NULL,
    mi_style VARCHAR2(254) NULL,
    mi_prinx NUMBER(11,0) NOT NULL,
    geoloc SDO_GEOMETRY NULL,
    kd_areal_kebun VARCHAR2(2) NULL,
    kd_tanaman VARCHAR2(2) NULL
    both of them have spatial column called geoloc. Column NOP in table AREAL_KEBUN references to column NOP in table OBYEK_PAJAK (so AREAL_KEBUN as a child and OBYEK_PAJAK as a parent)...
    I'm using Mapinfo to insert spatial column and others column manually using (i) menu in mapinfo and they're done their job.
    Now I'm trying to fill column NOP of AREAL_KEBUN table automatically using trigger when I've finish i.e. draw a polygon IN OBYEK_PAJAK boundary...in the other words I would like to fill my NOP column in AREAL_KEBUN using spatial operation to get NOP value from OBYEK_PAJAK table were related spatially with inserted polygon in AREAL_KEBUN.
    I'm trying to create my fool trigger and it not work...here is it :
    CREATE OR REPLACE TRIGGER fill_nop_kebun before insert on areal_kebun
    REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    BEGIN
    DECLARE var_nop VARCHAR2(9)
    SELECT a.nop into var_nop from obyek_pajak a, areal_kebun where sdo_anyinteract(a.geoloc,:new.geoloc)='TRUE';
    INSERT INTO areal_kebun(:new.nop) VALUES (var_nop);
    end;
    Anybody has solution for this?? Please help me ASAP and thank for help!
    sorry about my poor english....
    Regard
    Adhi

    Hi Adhi,
    I have changed FILL_NOP_KEBUN trigger little bit, and now it is working. Changed trigger looks like:
    CREATE OR REPLACE TRIGGER FILL_NOP_KEBUN
    BEFORE INSERT
    ON AREAL_KEBUN
    REFERENCING NEW AS new
    FOR EACH ROW
    DECLARE
    var_nop varchar2(9);
    BEGIN
    SELECT a.nop into var_nop from obyek_pajak a where sdo_anyinteract(a.geoloc,:new.geoloc)='TRUE';
    :new.nop := var_nop;
    END;
    I have tested it on my machine - if new geometry interacts with geometry stored in OBYEK_PAJAK, then appropriate nop value from OBYEK_PAJAK table is inserted into AREAL_KEBUN.
    Regards,
    Andrejus

  • Way to avoid using Spatial Cartridge?

    I have a table that stores the coordinate information of images by storing the coordinate information of the four corners of the image. I need to search the table for all cases where a given coordinate point is in the 4 corner coordinate points of the image. Can I do this without using Spatial Cartridge? Is there some easy function that can do this?

    Why do you want to avoid using the cartridge?
    If you have Locator or Oracle Spatial installed but don't want to alter
    the table's definition I would create a view and construct an SDO_GEOMETRY
    from the coordinates columns in the table. I would use a function based index
    to index the generated geometry. Then you can search to your heart's content
    using native Oracle Spatial capabilities that would not require to you to write code!
    create or replace view foo_polygon
    as
    select
    foo.attributes....,
    mdsys.sdo_geometry(2003,SRID?,NULL,
    MDSYS.SDO_ELEM_INFO(1,1003,1),
    MDSYS.SDO_ORDINATES(x1,y1,x1,y2,x2,y2,x2,y1,x1,y2)) as geom
    from foo;
    insert into user_sdo_geom_metadata (table_name,column_name,srid,diminfo)
    values ('FOO','GEOM,SRID?,
    mdsys.sdo_dim_array(
    -- No idea what your X data range is but assume it is -180 -> 180
    mdsys.sdo_dim_element('X', -180,180, 0.5),
    -- No idea what your Y range is but assume it is -90 -> 90
    mdsys.sdo_dim_element('Y', -90, 90, 0.5)
    create index foo_polygon_ndx
    on
    foo( mdsys.sdo_geometry(2003,SRID?,NULL,
    MDSYS.SDO_ELEM_INFO(1,1003,1),
    MDSYS.SDO_ORDINATES(x1,y1,x1,y2,x2,y2,x2,y1,x1,y2)))
    indextype is mdsys.spatial_index
    parameters ('sdo_indx_dims=2');
    Then query like ....
    SELECT count(*)
    FROM foo_polygon A
    WHERE MDSYS.SDO_FILTER(
    A.SHAPE,
    MDSYS.SDO_GEOMETRY(2003,NULL,NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),
    MDSYS.SDO_ORDINATE_ARRAY(&llx,&lly,&urx,&ury)),
    'querytype=window') = 'TRUE';
    S

  • Can we use the AdventureWorks2008R2 data for the real time project.

    Hi,
    In our project we are trying to do the data scrambling on First name, last name and middle name...
    In the regular practice we use to update the names as
    First Name = FN+<PERSON_SNO>
    Last Name = LN+<PERSON_SNO>
    Middle Name = MN+<PERSON_SNO>
    The Problem is the names are not looking realistic, so I thought of applying some logic and updating our PERSON table names based on Person.Person table in adventure works.
    My question is can we use the AdventureWorks2008R2 data for the real time project. Is there any cop right issue.
    Someone please help me solve this issue.
    Thanks
    Karthikeyan Jothi.

    Please read this link content:
    Adventure Works Sample Site
    sqldevelop.wordpress.com

  • Path direction in Oracle spatial network data model

    Hi all,
    can any one help me how to implement path direction using oracle network data Model?
    We are using Oracle Spatial database. there is one feature called network constraint in Network data Model. but how to implement path direction of my Network ? Please help me any one

    The path direction in a Spatial network is enabled at creation time when calling the create network procedure such as SDO_NET.CREATE_LOGICAL_NETWORK. If you describe the Create procedure you're using you should see a IS_DIRECTED argument, which when set to TRUE will enable path direction. Then just ensure that your links are created in the right direction -specifying correct orientation for start node and end node.
    Cheers,
    Stuart.

  • How to store and use the BLOB data in Oracle 11G?

    Recentlly,when I tested the Blob data in Oracle11G ,I found that there were too many differences between the SQL
    Server and the Orcale on the capabilities.In Orcale ,I created the table like this:
    create table point
    xid number(10) primary key,
    North number(30,15) default null,
    West number(30,15) default null,
    South number(30,15) default null,
    East number(30,15) default null,
    Area number(30,15) default null,
    Len number(30,15) default null,
    Geometry BLOB default null
    organization index overflow
    tablespace "Tab1"
    lob (Geometry) store as securefile
    tablespace "Tab1"
    enable storeage in row
    chunk 4096
    pctversion 20
    nocache
    no logging
    compress high
    and I stored 10248 rows in this table,
    then ,I used "select geometry from point where xid > ? and xid < ?" as the testing SQL langauage in Java and the
    programme runed once per 5000 pieces of memory.
    the total time used in Orcale is twice more than that in SQLServer.In my Application programs, once the same
    orders runed,their differences were three times and more.As usually,the capability of Orcale is more strongger
    than the SQLServer.Why?

    select geometry from point where xid > ? and xid < ?"Does an index on XID exist?
    Are statistics current for table & indexes?

  • Java.lang.ClassNotFoundException: oracle.spatial.geometry.JGeometry

    I have installed UIM 7.2.2 on Oracle Linux 5.6_64 bit. There was no error message during the installation. But we are getting java.lang.ClassNotFoundException: oracle.spatial.geometry.JGeometry exception during runtime, specially while opening UIM home page in the browser.
    Any suggestion?
    Thanks,
    Molay

    Hi,
    Please let me know the iPlanet service pack number that you are using.
    Thanks
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Calculating Round Trip Time from Non-Spatial Log Data

    Hi,
    I have a log table which holds the vehicles' "entrance" an "exit" dates (dd.mm.yyyy) to/from regions like that:
    VEHICLE_ID REGION IN_TIME OUT_TIME
    1001 CUST_A 01.01.2007 03.01.2007
    1001 CUST_B 05.01.2007 06.01.2007
    1002 CUST_C 04.01.2007 06.01.2007
    1001 BASE_A 08.01.2007 11.01.2007
    1002 CUST_D 11.01.2007 12.01.2007
    1001 CUST_A 15.01.2007 15.01.2007
    1001 CUST_F 18.01.2007 19.01.2007
    1001 CUST_A 19.01.2007 20.01.2007
    1002 CUST_E 16.01.2007 19.01.2007
    in fact, this table was created for reporting "average wait time on each customer" but then i calculated "round trip time" by assigning "base region" ( vehicle round trip starts from "base region" then comes back to here, etc.. ) and creating some rules like "if it passes from CUST_A and CUST_D, it is 'ROUND TRIP A'"..
    vehicles' voyage report is like that :
    TRIP STARTDATE ENDDATE
    TRIP_A 01.01.2007 13.01.2007
    UNDEFINED 13.01.2007 16.01.2007
    TRIP_B 16.01.2007 02.01.2007
    now, trips are more complicated and i want to use spatial mechanism. any advise?
    thanks,
    Cihan.

    Stephen Rodriguez wrote:You don't need to worry about the round trip between the AP and WLC.  Just make sure the phone to phone is goodHTH,
    Steve
    Please remember to rate useful posts, and mark questions as answered
    Thanks Steve,
    That makes Sense, as post authentication the phone to phone would be ofcourse less than 150ms when the traffic is locally switched.
    But I dont understand why the recommendation in the D&D guide "Roundtrip latency must not exceed 300 milliseconds  (ms) for data and 100 ms for voice and data between the access point  and the controller"
    I think it is applicable if the traffic is centrally switched?? or is there more to it, for roaming perhaps?
    Thanks
    Jino

  • Using a SQL data source and XML data source in the same template

    I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
    Thanks for any help or suggestions you may have.
    Rhonda

    Hi Pablo
    Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
    Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
    1. You have to have R12 and
    2. You'll need to wait for the patch
    On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
    Regards, Tim

  • I am using the big date calendar template and when I submit it to apple for printing I lose the name of two months. These names are not text boxes. I see the names when I send it in but something happens during the transmission to apple. It was suggested

    I am using the big date calendar template in iPhoto. I am on Lion 10.7.2, macbook air. The names of the months are on each calendar page but something happens when I send the data to Apple. The names are part of the template. They are not text boxes. I lose two names on the calendar after it is sent to Apple. Apple suggested I make a pdf file of my calendar before sending it in and check to make sure every name shows. I did this with a calendar I just sent in. The calendar was correct. All names of the months were showing. After sending the data two month names disappeard because when it arrived by mail, it was incorrect. Apple looked at my calendar via a pdf file and it was incorrect.  This is second time this has happened. I called Apple and they had me delete several folders in the Library folder, some preferences and do a complete reinstall of iPhoto.  I have not yet remade the defective calendar. I am wondering if anyone else has had this problem?
    kathy

    Control-click on the background of the view all pages window and select "Preview Calendar" from the contextual menu.
    You can also save the pdf as a file to compare to the printed calendar.  If the two names are visible in the pdf file then the printed copy should show them.  Contact Apple for a refund.  Apple Print Products - Apple Store (U.S.)

  • Bursting using a Concatenated Data Source

    Greetings,
    I am trying to burst a report using a concatenated data source. I have a bursting SQL query set up that works fine, but I am unsure how to handle the "Split By" option. I have a data model that pulls data from multiple queries, like this:
    DETAILS_A
    select * from table_a
    where payee_id in (:p_payee_id)
    DETAILS_B
    select * from table_b
    where payee_id in (:p_payee_id)
    So, if I choose to "Split By" Details_A_Row/Payee_ID, then the data from Details_A is split appropriately, but the reports I generate don't split the information from Details_B properly. I end up with reports where one payee has information for another payee from the Details_B data source. How can I specify that the report should also split/filter the info from Details_B?
    To put it another way, what I'd really like to do is go through a list of parameters (payee IDs in this example) and generate a report for each parameter. Is Bursting the most effective way to do this?
    From searching the forums, it seems like I might be able to accomplish this using Data Templates as my Data Model instead of SQL Queries. Am I on the right track with that? If so, you guys have any helpful links on how to create Data Templates?
    I am using BI Publisher version 10.1.3.4
    Any help is appreciated!
    Martin

    For data template samples, check the following out and then download the zip file (you may not be able to run the reports, but you can view the code)
    http://blogs.oracle.com/xmlpublisher/2009/06/data_template_progression.html
    Thanks,
    BIPuser

  • Is it possible to use an XML Data Template to create a report in APEX?

    Hi,
    I have created an XML Data Template in BI Publisher passing one parameter and running two queries, then created an RTF Document Template to present the data.
    I can create a nice report in BI Publisher using the two elements. I have used RTF Document Templates to publish reports in APEX but the data comes from a Report region running a single query.
    I would like to run a report based in this kind of XML Data Template, in order to use several children queries related to a parent query. Is it possible to do it in APEX, or you have to use BI Publisher?
    Francisco
    ===========================
    Below is a simple data template definition:
    <dataTemplate name="cotizacion_template" description="Prueba de data template para cotizaciones" dataSourceRef="dbxprts">
         <parameters>
              <parameter name="p_id_cotizacion" dataType="character" defaultValue="1009" include_in_output="true"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="header_query">
                   <![CDATA[select id_cotizacion, fecha_cotizacion, id_clipro from f_cotizaciones where id_cotizacion = :p_id_cotizacion]]>
              </sqlStatement>
              <sqlStatement name="detail_query">
                   <![CDATA[select id_cotizacion as id_cot_child, id_detalle_cotizacion, partida, cantidad, id_producto from f_detalle_cotizaciones where id_cotizacion = :id_cotizacion]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="F_COTIZACIONES" source="header_query">
                   <element name="ID_COTIZACION" value="ID_COTIZACION"/>
                   <element name="ID_CLIPRO" value="ID_CLIPRO"/>
                   <element name="SUMA_CANTIDAD" value="F_DETALLE_COTIZACIONES.CANTIDAD" function="SUM()"/>
                   <group name="F_DETALLE_COTIZACIONES" source="detail_query">
                        <element name="PARTIDA" value="PARTIDA"/>
                        <element name="CANTIDAD" value="CANTIDAD"/>
                        <element name="ID_PRODUCTO" value="ID_PRODUCTO"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>

    Hi,
    I have the similar question. I used data templates in BI Publisher but now I want to use the same data template in Apex to print some reports.
    I tried to some examples but these were only using report queries. I also tried with the Web Service but this didn't work for me either maybe because I didn't
    used it in the right way. When I used the WS I received the binary of the report so the WS worked it was just the how and where to use it that didn't work for me.
    Now this older entry is BUMPED maybe we find a solution for our problem this way.
    regards,
    Steven

  • I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i c

    I just got iphone 5c and i am not happy with it. It uses to much data and i don't even know how. I can't get the ringtones i want for my contacts.I got it on my free upgrade but i want to take it back and get something else but where i got it they say i can't because i don't have the earbuds and i have serches or them. now i am suck with a phone i don't like at all until my next upgrade. this is very dishearten

    1. If you are this unhappy with that phone, and the lost earbuds is the only thing stopping you from taking it back, why do not just buy some earbuds. That way you can get rid of that phone. It all depend upon how much you want to get rid of that phone.
    2. Yet if you are stuck with that iPhone, here is something might help you to control the data usage. By design, iPhones do turn off WiFi when they go dormant. So if a download is in progress and so forth when the phone goes dormant, it will switch to use cellular data, if this setting is left on. Therefore, from multi-sources I have learned that if you keep your iPhone connected to a power source, then it will stay connected to the available WiFi.

  • How to use multiple Spry Data Sets in one page

    I'm using two spry data sets in one page. When I add the first spry data set to my page everything runs OK, When I add the second spry data set to the page the first data set stops working. Does anyone know what the problem is?
    This is how I have my data sets listed.
    var ds1 = new Spry.Data.HTMLDataSet("/accounts/tower/list.php", "list");
    var ds2 = new Spry.Data.HTMLDataSet("/accounts/tower/numvisits.php", "chart");
    Thanks, let me know if you need more information.

    Good News!
    There is nothing wrong with what you have shown.
    Bad news!
    The problem could be in that part that you have not shown.
    Gramps

  • HT2731 Does using the same Apple ID on my iPhone and iPod touch use my phones data plan?

    Does using the same Apple ID on my iPhone and iPod touch use my phones data plan?

    If you are using the internet then it's eating away at your data plan, irrespective of your Apple ID.
    Here's an article about data plans:
    http://voip.about.com/od/voipbandwidth/a/What-Is-A-Data-Plan.htm

Maybe you are looking for

  • Remove Currency conversion for some accounts

    Hi, I got a requirement to remove currency conversion for few accounts only, I have separte currency cube assigned to this cube. Can you please tell me how to achieve this. Thanks, UB

  • " No entry in the conversion table for the syntax group" error

    Hi, Iu2019m getting an error in the port setup when I try to run an Access Test on the logical directory. Definition of path TFTS02\INTF\RD1\OUTB\MM\RFC WINDOWS NT missing Message no. SG024 Diagnosis There is no entry in the conversion table for the

  • SFTP FTP Adapter work around

    Hi guys, Is there anyway to get XI to support sftp? as our company policy does not allow unsecure ftp connections. I don't no know were to start looking, any idea? Thanks, Jan

  • Lexmark Printer does not support Lion OS X 10.7.1

    I've just recently perchased both a MacBook Pro with lion 10.7.1, along with a Lexmark interpret s405 printer. When I went to install the printer it said that my version of OS X was not supported, even after I installed a printer driver update for 10

  • How to migrate the version 4.2?

    I installed version IOS 5.0 and my iphone 4 has stopped working. How should I go back to previous version? I tried to restore via itunes, but failed. Thanks