Two or more SRID in the same column?

Hello, I am working with Oracle Spatial, and I have a problem with the SRID.

I have a column in a table with the SDO_GEOMETRY type and I need to create a Spatial Index to use. But to create a Spatial Index first, I need to insert metadata into the table incluied SRID: for example

Insert in user_sdo_geom_metadata (table_name, column_name, srid, diminfo) values ('Spatial_Test', 'GEOMETRIA', 8307, SDO_DIM_ARRAY (SDO_DIM_ELEMENT('LONGITUDE',-180,180,0.5), SDO_DIM_ELEMENT ('LATITUDE',-90, 90, 0.5)));

But I need to work with more than one SRID in this column. Is there anyway to have two or more SRID in the same column? How? and if I insert them, can they give any problem?

Thank you very much.

Good bye.

ZeyKa,

. . . . You can transform and store all your geometries in SRID 8307 and then turn to their original SRID when you SELECT them.

-- "Example: Transform geometry from  to SRID 8307 for storage"
-- "NOTE: Replace  and  with your values"
INSERT INTO MyTable (ID, geometry,RenderSRID) VALUES (1, SDO_CS.TRANSFORM(,8307), );
-- "Example: Transform stored geometry back to its "
SELECT SDO_CS.TRANSFORM(geometry,RenderSRID) FROM MyTable WHERE ID = 1;

Kind regards
Noel

Tags: Database

Similar Questions

  • Two or more drives have the same name!

    Hi all

    In my wisdom, I created a server with multiple disks on multiple LUNS and now I want to replicate this server on my backup on a NAS drive.  When I try to reproduce this server I get the following error message (all other disc thin servers);

    Two or more records with the same name. These disks may not be replicated to the same location. You must configure replications of disc individually.

    I can't for the life of me see a way around this, unless I can rename the VMDK?   But it seems a bit risky...

    Any help much appreciated

    Stuart

    This should help you...

    Multi-disc about replication in a common directory with vSphere Replication | VMware vSphere Blog - VMware Blogs

  • How can i two lists drop-down for the same column in OBIEE Dashboardprompt?

    Hello

    I need a report for a specific date range. I have to add 2 drop-down lists in the dashboardprompt for the same startdate and enddate column and the report must be filtered accordingly.

    I can't add two drop-down lists in the DATE column in the same dashboardprompt.

    How can I achieve this?

    Can anyone help?

    Hello

    You should be able to achieve the desired result by setting the operator for the column ' is between ' when you set the prompt.

    Kind regards
    Mark

  • Merge two csv files both with the same columns

    Hi all

    I have two csv files (attached) both with the same DS column headings that I seek to merge into a csv file. I am struggling to find a way to do it.

    The two files are already sorted by DS but have additional info not required in the column of the DS. What I need is a cmdlet that will read each column DS each csv, correspond to lines and combine in a csv file.

    Any help, advice, much appreciated.

    Best,

    Rob.

    Save the script in the current folder as join - Collections.ps1, then do

    $csv1 = Import-Csv LunUUIDtoDS.csv -UseCulture $csv2 = Import-Csv VMtoDS.csv -UseCulture
    .\Join-Collections.ps1 $csv1 "DS" $csv2 |
    Export-Csv mergedCSV.csv -NoTypeInformation -UseCulture
    
  • For the last month or more, I had the same two updates for my computer

    original title: Windows updates

    For the last month or more, I had the same two updates on my computer.  Is anyone know why and what I can do to fix this?  I am running Windows XP.  Thank you very much.

    Hello

    the message "you have hidden the important updates" is normal, because you have hidden the high priority updates, but the updates are already installed, if that's OK.

    Try to look again at the web page:

    http://www.update.Microsoft.com/

    and click on "Custom".

    You should not see the updates (KB2518864 and KB2539631) in "review and install updates.

    You should see only "Important - you have hidden the important updates..." and "high-priority - updates non-priority updates to update for your computer... ».

    Then, try this (remove the content of the "'C:\Windows\SoftwareDistribution" ")

    1. Click Start, click run, type services.mscand click OK.
    2. In the Services (Local) pane, click automatic updates, and then click stop.
    3. Reduce the Services (local) window.
    4. Select all the contents of the Windows distribution folder, and then delete them.

      Note By default, the Windows distribution folder is located in the drive: \Windows\SoftwareDistribution folder. This place is a placeholder for the drive where Windows is installed.

    5. Ensure that Windows distribution folder is emptyand enlarge the Services (local) window.
    6. In the Services (Local) pane, click automatic updates, and then click Start.
    7. Restart the computer.

    I hope that we will achieve the goal, it will no longer still report the updates :-)

    LC

  • How to display two or more files on the screen at the same time in format "cascade" or "tile"?

    How to display two or more files on the screen at the same time in format "cascade" or "tile"?

    What types of files,

    He each file separately.

    Right-click your taskbar, and then click the option side by side...

    Breaking of Windows,

    http://Windows.Microsoft.com/en-us/Windows7/products/features/snap

    http://Windows.Microsoft.com/en-us/Windows7/arrange-Windows-side-by-side-on-the-desktop-using-snap

  • A target table is in charge of two different sources but the same columns, but a source is one database and another in a flat file.

    We all hope you are doing well.

    I have a business problem to implement in ODI 11 G. It's here. I'm trying to load a target table from two sources that have the same column names. But a source is to the file format and the other is in the Oracle database.

    That's what I think I'll create two mappings in the same interface by using the Union between the sources. But I don't know how the interface would connect to different logical architecture to connect to two different sources.

    Thank you

    SM

    You are on the right track, all in a single interface. Follow these steps

    (1) pull model of your data in the designer of the source file and your table model target to the target pane.

    (2) all relevant columns map

    (3) in the source designer to create a new dataset and choose as the UNION join type (this will create a separate tab in the source designer pane)

    (4) select the new dataset tab in the source designer pane and pull your source oracle table data model in the designer of the source. All columns that are relevant to the target card

    (5) make sure that your staging location is set to a relational technology i.e. in this case the target would be an ideal candidate because it is where the ODI will organize the data from source two files and oracle and perform the UNION before loading to the target

    If you want to watch some pretty screenshots showing the steps above, take a look at http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/

  • Two guests on the same column

    Hi Experts,

    I'm defining two different guests (and associate them with the two variables of different presentation) on the same column. However, when I view the 2 guests on the same dashboard page, whenever I select a value for the first prompt, the same value is automatically selected for the second line.

    Is this a normal behavior? How to capture the two distinct values?

    Thank you
    Guillaume

    Hi William,.

    I think I forgot something.

    You must do the following steps:

    (1) add the column to the dashboard command prompt.
    (2) in the column "Show" change the option to 'results '.
    (3) in the column "Column" change the formula of the column to a name like «filter 1"»
    (4) this column value to the variable in the presentation, such as FILTER1.
    (5) change the label for the column.
    (6) assign the filter in your report to the presentation FILTER1 variable.

    Repeat step 1 to 6 for the second filter.

    Kind regards
    Stijn

  • an alphabet by typing in a cell gives drop down suggestions from previous hits on the same column. But how the drop down to choose the suggestions of the other columns and other sheets.

    an alphabet by typing in a cell gives drop down suggestions from previous hits on the same column. But how the drop down to choose the suggestions of the other columns and other sheets.

    Hi mdsavol,

    Your observations are accurate. The 'suggestions' are previous entries in the same column that correspond to what has been entered so far in the active cell. The only direct user control is to activate the function turn on or off in numbers preferences > general.

    There are other ways to include or exclude items of suggestions:

    • To remove typos in the suggestions list, the user must correct the typos in the cell above the active cell. If they are more in the list, they won't be presented as suggestions.
    • To include selections added to the list, the user must enter these suggestions in the individual cells above the active cell and column where they are wanted as suggestions.

    There was a request here a while there is a list of suggestion 'live' similar to those of some websites, which offers a descending list of possible entries as a type in an input box.

    The only way I see to reach a solution similar to what you have asked is to use as many lines at the top of the non-en-tete of the table section to list the items likely to repeat in your table, and then hide the lines. You'll need a list for each column where you want to use this feature with a list previously planted. Existing items will then require a likely hit up to three, then a click to choose from a list small enough to enter a value into a cell. News he will need to enter in full the first time, but after that it will be put on the list and answer the same thing as the terms preseeded.

    While your setting upward (or decide not to do), consider going on the menu of number (in numbers), choosing to provide feedback from numbers and writing a feature in Apple request. Describe what you want. Explain how he could help the average user numbers, and then hope for the best.

    Kind regards

    Barry

  • Two interfaces WAN ISP in the same network

    Hello world

    I am faced with a really simple but delicate scenario. My ISP gives me IP addresses public 2, both in the same network. They also gave me the default gateway which is of course in the same network too.

    I need two fully operational ip addresses, but I realized that I can't have two interfaces (routed interfaces) in the same network segment. I have just a single router (Cisco 2911). A friend told me that I might be able to set this up using VRF, but as far as I have read, there is no way to use VRF to achieve this.

    Is it possible to use two (or more) ip addresses to redirect traffic to the same default gateway in the same router?

    Thank you!

    Miguel

    Hi Miguel,.

    If you want just your 2911 have set up two public IP addresses, you can set one of them as secondary IP address. Suppose that 192.0.2.1/29 is your default gateway, and 192.0.2.2/29 and 192.0.2.3/29 are your IP addresses. So to have both configured, you'd:

    interface Gigabit0/0/0 ip address 192.0.2.2 255.255.255.248 ip address 192.0.2.3 255.255.255.248 secondary
    And voila - that should do the trick :) Best regards, Peter
  • How to put in place two sound devices and make two of them work at the same time?

    I am on Windows 7 Ultimate and I have a problem...

    I downloaded the SRS Audio Essentials software that improves the sound quality

    And I have Realtek audio device which is an audio driver that come with bulit in sound card

    But the problem is that I can choose only one of them as the default audio device

    When I was with Windows Xp, two of them worked at the same time...

    He is the captain:

    http://www.Flickr.com/photos/96392754@N07/8812378555/

    Help, please!

    PS: Sorry for my bad English... ^_^

    Hello

    Unfortunately this does happen, as it is by design,

    Here, a single device can be marked as default device, follow these steps below for more information.

    a. Click Start, type Sound in the box to start the search.
    b. click sound in the results of search at the top of the start menu.
    c. click the reading notice the check mark next to the default device.

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • I bought a disc of Lightroom6 for Mac. Can I use the license even om my two ibooks and iMacs at the same time? Given that the macbook air doesn't have a hard drive, is it possible to copy on a USB drive?

    I bought a disc of Lightroom6 for Mac. Can I use the license even om my two ibooks and iMacs at the same time? Given that the macbook air doesn't have a hard drive, is it possible to copy on a USB drive?

    You have two activations and no more. If you need to register a third party, you will need to purchase another package. Yes, the installers can be copied to any media that you consider appropriate.

    Mylenium

  • Bug. Can not put two edge animations animate on the same page

    Alrighty. Just thanked Adobe for fixation sensitive question scaling. Now, it seems to be a new. When I put two animations dashboard run on the same page, they both disappear completely from the view! Both in mode live view (or which saw fluid grid) and trying to get a glimpse into any browser. The responsive design works fine but if I put two animations on the same page that the two just disappear! GONE!

    Perhaps there is a code that I can use to prevent this. I did a number of tests during the last hour. My smile (from the reactive solution) is now again a frown. I can't keep working like that. Please let me know if there is something I am doing wrong. I have two animations on a page without worries prior to this version, but the delicate design did not work properly. The responsive design work NOW, but I can't have MORE than ONE ANIMATION on the same page. Thanks for your time. Best regards, Julian.

    The use, I did the modification required:

    
    
    
      
    
    
    
    
      
  • Multiple values for the same column in the columns of diffétent in the same row?

    Hi all
    I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:

    CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
    CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".

    Yes, that will produce two columns but will produce null values to empty and also two separate registers.


    Any ideas?

    Thank you

    Are you sure that this code works for you?

    Select ID
             ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime"
             ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END  as "Other"
    From table
    group by ID
    

    I guess the code above fails because MODE_CODE is not in your group by?

    My suggestion would be to put the CASE in the COUNT:

    Select ID
             ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime"
             ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END)  as "Other"
    From table
    group by ID
    

    CASE expressions return no. when the respective conditions are true and NULL otherwise.
    COUNTY will have non-null values.

  • By comparing the values in the same column

    Hello

    I have a requirement to do the following:

    The guest of the dashboard has two drop downs as 'Acct number 1' and others as 'Acct number 2 ". Both are the same column from the database. When two different values are chosen from the prompt, it should produce a report with the following 5 colomns, 'ACCT1', 'SALES AMOUNT ACCT1', "ACCT2", "SALES AMOUNT ACCT2", "DIFFERENCE".

    I tried to use a variable of presentation in the command prompt and it fills my column pther having the same value I have input for the first prompt.

    How can I do this? Thanks for your time and your help.

    Hello

    You can try it at the level of the report.

    * Ensure that you have set your guests with different effects. Suppose that the two PVs are acc1 and acc2.
    * Report, add below filter
    Account number is equal to @{acc1} {defualtvalue}
    OR
    Account number is equal to @{acc2} {defualtvalue}
    This will filter the report by the two account numbers.
    * Now apply below in your fx of all columns.

    "ACCT1: ' @{acc1} {defualtvalue}"
    ACCT1 SALES AMOUNT: FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc1} {defualtvalue}'))
    "ACCT2: ' @{acc2} {defualtvalue}"
    ACCT2 SALES AMOUNT: FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc2} {defualtvalue}'))
    DIFFERENCE: FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc1} {defualtvalue}'))-FILTER (with the HELP of SalesCol (AccountNumber = ' @{acc2} {defualtvalue}'))

    Thank you

Maybe you are looking for