How can i load Metadata file into georaster?

Hello everybody,
I stone a tiff file in my db,I stone tiff file like this:
1.create GeoRaster Table:
create table rm_image_t(
georid number,
file_type varchar2(30),
image_file mdsys.sdo_georaster);
2.create trigger:
exec sdo_geor_utl.createdmltrigger('rm_image_t','image_file');
3.Create raster data table:
create table rdt1 of mdsys.sdo_raster(
primary key(rasterid,pyramidlevel,bandblocknumber,rowblocknumber,columnblocknumber))
lob(rasterblock) store as (nocache nologging);
4.Grant:
exec dbms_java.grant_permission('OPER','SYS:java.io.FilePermission','c:\aaa.tif','read');
call dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','c:\aaa.tif','read' );
call dbms_java.grant_permission('OPER','SYS:java.io.FilePermission', 'c:\aaa.tif','read' );
call dbms_java.grant_permission('PUBLIC','SYS:java.io.FilePermission','c:\aaa.tif','read' );
call dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','c:\aaa.tif','read' );
call dbms_java.grant_permission('OPER','SYS:java.io.FilePermission', 'c:\aaa.tif','read');
call dbms_java.grant_permission('PUBLIC','SYS:java.io.FilePermission','c:\aaa.tif','read');
5.Insert tiff file:
DECLARE
geor SDO_GEORASTER;
BEGIN
-- Initialize an empty GeoRaster object into which the external image
-- is to be imported.
INSERT INTO rm_image_t
values( 1, 'TIFF', sdo_geor.init('rdt1') );
-- Import the TIFF image.
SELECT image_file INTO geor FROM rm_image_t
WHERE georid = 1 FOR UPDATE;
sdo_geor.importFrom(geor,'blocksize=(512,512) compression=DEFLATE', 'TIFF', 'file','c:\aaa.tif');
UPDATE rm_image_t SET image_file = geor WHERE georid = 1;
COMMIT;
END;
Then:
SQL> SELECT t.georid,
2 sdo_geor.validategeoraster(t.image_file) isvalid
3 from rm_image_t t order by georid;
GEORID ISVALID
1 TRUE
But I do not know how to load tiff_file's metadata into georaster.
Can you help me?thanks!

My metadata file called aaa.met,it has the following info:
GROUP = METADATA_FILE
     PRODUCT_CREATION_TIME = 2004-02-12T15:09:20Z
     PRODUCT_FILE_SIZE = 703.1
     STATION_ID = "EDC"
     GROUND_STATION = "SGS"
     GROUP = ORTHO_PRODUCT_METADATA
          SPACECRAFT_ID = "Landsat7"
          SENSOR_ID = "ETM+"
          ACQUISITION_DATE = 2001-10-03
          WRS_PATH = 138
          WRS_ROW = 036
          SCENE_CENTER_LAT = +34.6152272
          SCENE_CENTER_LON = +91.7569675
          SCENE_UL_CORNER_LAT = +35.5648302
          SCENE_UL_CORNER_LON = +90.9958720
          SCENE_UR_CORNER_LAT = +35.2772270
          SCENE_UR_CORNER_LON = +92.9740331
          SCENE_LL_CORNER_LAT = +33.9414953
          SCENE_LL_CORNER_LON = +90.5596099
          SCENE_LR_CORNER_LAT = +33.6605964
          SCENE_LR_CORNER_LON = +92.5005228
          SCENE_UL_CORNER_MAPX = 318373.500
          SCENE_UL_CORNER_MAPY = 3937531.500
          SCENE_UR_CORNER_MAPX = 497638.500
          SCENE_UR_CORNER_MAPY = 3903787.500
          SCENE_LL_CORNER_MAPX = 274455.000
          SCENE_LL_CORNER_MAPY = 3758352.000
          SCENE_LR_CORNER_MAPX = 453691.500
          SCENE_LR_CORNER_MAPY = 3724636.500
          BAND1_FILE_NAME = "aaa.tif"
          GROUP = PROJECTION_PARAMETERS
               REFERENCE_DATUM = "WGS84"
               REFERENCE_ELLIPSOID = "WGS84"
               GRID_CELL_ORIGIN = "Center"
               UL_GRID_LINE_NUMBER = 1
               UL_GRID_SAMPLE_NUMBER = 1
               GRID_INCREMENT_UNIT = "Meters"
               GRID_CELL_SIZE_PAN = 14.250
               GRID_CELL_SIZE_THM = 57.000
               GRID_CELL_SIZE_REF = 28.500
               FALSE_NORTHING = 0
               ORIENTATION = "NUP"
               RESAMPLING_OPTION = "NN"
               MAP_PROJECTION = "UTM"
          END_GROUP = PROJECTION_PARAMETERS
          GROUP = UTM_PARAMETERS
               ZONE_NUMBER = +46
          END_GROUP = UTM_PARAMETERS
          SUN_AZIMUTH = 147.9348938
          SUN_ELEVATION = 46.4220192
          QA_PERCENT_MISSING_DATA = 0
          CLOUD_COVER = 0
          PRODUCT_SAMPLES_PAN = 17814
          PRODUCT_LINES_PAN = 15754
          PRODUCT_SAMPLES_REF = 8907
          PRODUCT_LINES_REF = 7877
          PRODUCT_SAMPLES_THM = 4454
          PRODUCT_LINES_THM = 3939
          OUTPUT_FORMAT = "GEOTIFF"
     END_GROUP = ORTHO_PRODUCT_METADATA
     GROUP = L1G_PRODUCT_METADATA
          BAND_COMBINATION = "123456678"
          CPF_FILE_NAME = "L7CPF20011001_20011231_04"
          GROUP = MIN_MAX_RADIANCE
               LMAX_BAND1 = 191.600
               LMIN_BAND1 = -6.200
               LMAX_BAND2 = 196.500
               LMIN_BAND2 = -6.400
               LMAX_BAND3 = 152.900
               LMIN_BAND3 = -5.000
               LMAX_BAND4 = 241.100
               LMIN_BAND4 = -5.100
               LMAX_BAND5 = 31.060
               LMIN_BAND5 = -1.000
               LMAX_BAND61 = 17.040
               LMIN_BAND61 = 0.000
               LMAX_BAND62 = 12.650
               LMIN_BAND62 = 3.200
               LMAX_BAND7 = 10.800
               LMIN_BAND7 = -0.350
               LMAX_BAND8 = 243.100
               LMIN_BAND8 = -4.700
          END_GROUP = MIN_MAX_RADIANCE
          GROUP = MIN_MAX_PIXEL_VALUE
               QCALMAX_BAND1 = 255.0
               QCALMIN_BAND1 = 1.0
               QCALMAX_BAND2 = 255.0
               QCALMIN_BAND2 = 1.0
               QCALMAX_BAND3 = 255.0
               QCALMIN_BAND3 = 1.0
               QCALMAX_BAND4 = 255.0
               QCALMIN_BAND4 = 1.0
               QCALMAX_BAND5 = 255.0
               QCALMIN_BAND5 = 1.0
               QCALMAX_BAND61 = 255.0
               QCALMIN_BAND61 = 1.0
               QCALMAX_BAND62 = 255.0
               QCALMIN_BAND62 = 1.0
               QCALMAX_BAND7 = 255.0
               QCALMIN_BAND7 = 1.0
               QCALMAX_BAND8 = 255.0
               QCALMIN_BAND8 = 1.0
          END_GROUP = MIN_MAX_PIXEL_VALUE
          GROUP = PRODUCT_PARAMETERS
               CORRECTION_METHOD_GAIN_BAND1 = "CPF"
               CORRECTION_METHOD_GAIN_BAND2 = "CPF"
               CORRECTION_METHOD_GAIN_BAND3 = "CPF"
               CORRECTION_METHOD_GAIN_BAND4 = "CPF"
               CORRECTION_METHOD_GAIN_BAND5 = "CPF"
               CORRECTION_METHOD_GAIN_BAND61 = "CPF"
               CORRECTION_METHOD_GAIN_BAND62 = "CPF"
               CORRECTION_METHOD_GAIN_BAND7 = "CPF"
               CORRECTION_METHOD_GAIN_BAND8 = "CPF"
               CORRECTION_METHOD_BIAS = "IC"
               BAND1_GAIN = "H"
               BAND2_GAIN = "H"
               BAND3_GAIN = "H"
               BAND4_GAIN = "L"
               BAND5_GAIN = "H"
               BAND6_GAIN1 = "L"
               BAND6_GAIN2 = "H"
               BAND7_GAIN = "H"
               BAND8_GAIN = "L"
               BAND1_GAIN_CHANGE = "0"
               BAND2_GAIN_CHANGE = "0"
               BAND3_GAIN_CHANGE = "0"
               BAND4_GAIN_CHANGE = "0"
               BAND5_GAIN_CHANGE = "0"
               BAND6_GAIN_CHANGE1 = "0"
               BAND6_GAIN_CHANGE2 = "0"
               BAND7_GAIN_CHANGE = "0"
               BAND8_GAIN_CHANGE = "0"
               BAND1_SL_GAIN_CHANGE = "0"
               BAND2_SL_GAIN_CHANGE = "0"
               BAND3_SL_GAIN_CHANGE = "0"
               BAND4_SL_GAIN_CHANGE = "0"
               BAND5_SL_GAIN_CHANGE = "0"
               BAND6_SL_GAIN_CHANGE1 = "0"
               BAND6_SL_GAIN_CHANGE2 = "0"
               BAND7_SL_GAIN_CHANGE = "0"
               BAND8_SL_GAIN_CHANGE = "0"
          END_GROUP = PRODUCT_PARAMETERS
          GROUP = CORRECTIONS_APPLIED
               STRIPING_BAND1 = "NONE"
               STRIPING_BAND2 = "NONE"
               STRIPING_BAND3 = "NONE"
               STRIPING_BAND4 = "NONE"
               STRIPING_BAND5 = "NONE"
               STRIPING_BAND61 = "NONE"
               STRIPING_BAND62 = "NONE"
               STRIPING_BAND7 = "NONE"
               STRIPING_BAND8 = "NONE"
               BANDING = "N"
               COHERENT_NOISE = "N"
               MEMORY_EFFECT = "N"
               SCAN_CORRELATED_SHIFT = "N"
               INOPERABLE_DETECTORS = "N"
               DROPPED_LINES = N
          END_GROUP = CORRECTIONS_APPLIED
     END_GROUP = L1G_PRODUCT_METADATA
END_GROUP = METADATA_FILE
END
I want load it into db and query the tif_file use coordinates.
Can you pls tell me how to do it?

Similar Messages

  • Can't load Raw files into Lightroom 3 form my Nikon D7100

    Can't load Raw files into Lightroom 3 form my Nikon D7100... Why?

    TGTruman wrote:
    How do I convert the Nef to DNG files...
    Download the Adobe DNG Converter (and install it, and run it...).
    Note: an internet search will reveal a link in short order.
    TGTruman wrote:
    I don't mind going to LR5, just don't want to spend the money and then not have it work...
    So use the trial first. No?
    R

  • I shot video on a Panasonic P2 and I'm trying to import the MXF files to Final Cut Pro but when I try to import, the only thing that imports is a blurry image of each clip. There's no audio and no video...how can I import MXF files into Final Cut Pro?

    I shot video on a Panasonic P2 and I'm trying to import the MXF files to Final Cut Pro but when I try to import, the only thing that imports is a blurry image of each clip. There's no audio and no video...how can I import MXF files into Final Cut Pro?

    at the end, you say "import preferences", which program are you describing?
    So im safer using footage that is remotely being pulled from iphoto...
    vs
    using footage that is imported into FCP from imovie?
    Is there anything i can do in fcp to make this footage more reliable or safer or more stable as i pull remotely from iphoto?
    All the footage, and all the libraries to all programs, or on a new pegasus 12tb raid 5 setup fyi.

  • How can I sync text files into iPhone?

    How can I sync text files into iPhone? like doc. txt. for reading or editing

    The native iPhone OS doesn't allow that. I think there are several solutions to this, some of which may be against the AT&T or Apple rules. One legitimate solution is The Missing Sync for iPhone by mark/space (http://www.markspace.com).
    Before I had an iPhone, I owned a copy of The Missing Sync for Windows Mobile. It was a pretty decent app. In my opinion, though, their app for the iPhone is NOT worth the price ($40 new, $25 for a cross-grade).
    Also, check the App Store (if you have 2.0 software)--there may be an app that does this, probably for a lot less $.

  • How can I import vob files into imovie 09?

    how can I import vob files into imovie 09? i have some home movies on dvd that i want to edit.

    You might want to look at this one too.  Very easy to use and it doesn't require the Apple MPEG-2 playback component.
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm

  • How can i import mpeg files into iMovie?

    how can i import mpeg files into iMovie?

    Where are your MPEG stored?
    I have hundreds of old MPEGs stored in my nexternal drive, but unfortunatly i was not able import them into iMovie. I did the following trick: I created a new set of a folder and subfolder and called it "Virtual_CAM/DCIM" and saved it on my desktop. Then went to Disk Utilities>File Menue>New>Disk Image from Folder. Then selected the folder on my desktop and clicked enter. I moved the .dmg file to my external (or just keep it on your desktop). I clicked on the .dmg file. It shoud be visible on the Finder. Open your Imovie and import as you do from your camera.

  • Can't load m4v files into Photoshop

    I created a H264 Blu-ray (m4v) using Adobe Premiere Pro CS4. It was a exported as 1080i file. I tried to load this file into Photoshop CS4 extended. Photoshop says that it "could not complete your request because the movie file could not be opened". Can anyone help as it is important to me to apply some Photoshop to fix overexposure which it does superbly to a Quick Time (720*480) file. I want to do the same for 1080i file.
    Thx
    Sundar

    I initially captured the clip as .MTS in 1080. Using premiere CS4, I exported part of the clip as H264 Blu-Ray (m4v). If I try QT as output format, it is of lower resolution. You are right that Photoshop does not have problem in pulling in QT clips.
    You answered your own question. H.264 BluRay is a multiplexed sub-format of H.264 which is not compatible with QT's implementation of H.264. If you want to use H.264, you must export normal H.264 and the profile level must be set to 3.1, basic in the exporter. Then, after export, you simply rename the file to *.mov. That aside, you can always use alternate Quicktime CoDecs like PNG or PhotoJPEG and directly export to a MOV. Your loss in quality is due to incorrect field settings, so that needs to be set properly. It merely doesn't affect your H.264 output, because there everything is set correctly already in the presets.
    Mylenium

  • HT204003 How can I load all giftcards into one

    i have a whole bunch if the same brand giftcards on my passbook how can i put them all into 1

    I have two files the file with the main method has four inner classes.
    i tried to use the jar cvf command but it only jars the file i say to jar the inner classes dont get jared. Is there a way of using one command to jar my two files and include the inner clases that are in one of the files?

  • How can I import .mts files into Final Cut Studio from my Sony High Def Camcorder

    How can I import .mts files from my Sony High Def camcorder into Final Cut Studio?

    Also see: https://discussions.apple.com/community/professional_applications/search.jspa?pe opleEnabled=true&userID=&containerType=&container=&spotlight=true&q=.mts

  • How can I load preview images into an extra file?

    Hi,
    I've got a question concerning those preview images. I wrote a plugin which uses the actual paths of the photos in the catalog an stores those paths of each photo into a log file. Then an external program has access to that file for further handling. So now I would like to use preview photos instead of the raw images. First, because the user might want to use the picture he/she edited with Lightroom; And then because of the size.Processing a preview image of level 5 would be more efficient than the original photo.
    So how can I get those preview photos? And more important: is it possible to store them in an extra file in a jpg format for instance, so that an external program can make use of them?

    Look at source code in PreviewExporter plugin.
    robcole.com - PreviewExporter

  • How can we load metadata automatically in HFM

    Hi There
    I am working with HFM 9.3.1.
    I have account dimension in this every day new members are coming.
    I just want to process this members that automatically update to the existing application.How can i do this is there any process that i can do in HFM 9.3.1 or should i need to upgrade the existing system.
    Please suggest me that could be great help.
    Thanks
    Hars

    Have a look on www.epmmaestro.com
    The EPM Maestro Suite has among its many other features, the ability to automate both metadat extract and load.
    You do not indicate how your metadata file is updated (ie the new members added), as this will still be a manual effort.
    Another new feature of the EPM Maestro (web feature), is Metadata Validator, which will ensure your attributes etc are correct.
    That said, have you worked a plan since your posting?

  • How can I add jar files into the namespace in code?

    My friends:
    I need to add jar files into my namespace dynamicly in my code.But the jar files might be repeated, I am not sure.so, i wonder how can I add them into my namespace, ignoring the repeated files?
    This is my code:
    URL[] urlArrayA = new URL[5];
    urlArray[0] = sample1;
    urlArray[1] = sample2;
    URL[] urlArrayB = new URL[5];
    urlArrayB[0] = sample3;
    urlArrayB[1] = sample4;
    URLClassLoader urlClassLoaderA = URLClassLoader.newInstance(urlArrayA);
    URLClassLoader urlClassLoaderB = URLClassLoader.newInstance(urlArrayB);
    how can i visit classes in urlClassLoaderA from classes in urlClassLoaderB?

    could anyone please answer the question for me ? thank you...

  • How can I load TPX Pantones into CS6 Photoshop palette?

    I use the Pantone papers for Fashion and Home and want to be able to load/download these into my photoshop palette rather than having to print out my designs and then match them to the papers by going tirelessly through the book. I've looked on the Pantone website and their links are useless and seem to be sending me round in circles. Photoshop seems to have every other type of Pantone pre-loaded apart from the TPX ones I need! Can any one help?

    You would need the ACB files from Pantone for the TPX books, and install those in the Photoshop presets folder.
    Sorry, but there are several of the more obscure Pantone books that we haven't shipped yet. (and it takes quite a bit of time to clean up and validate them all)

  • How can I import .mov file into dvd studio pro?

    Hi,
    I have a .mov file and want to but a dvd with menu and chapters. But when I try to import the .mov file into dvd studio pro it says Incompatible format. How can I import my .mov file in to dvd studio pro?

    Two ways…
    Transcode into a codec like Pro Res, import into DVDSP and let it do the encoding.
    Or better yet:
    Import into Compressor, choose a DVD preset and let Compressor encode. It will make two files, separate video and audio files. Import those into DVDSP.
    Good luck.
    Russ

  • How can I import svg files into photoshop?

    I am trying to import some svg files into photoshop shapes, how is that done?

    Although you CAN open SVG into Illustrator, save it as PSD or Illustrator, I think Photoshop should directly support opening SVG files in the same way it does PDF. You set the pixel size you want and then rasterize it.

Maybe you are looking for

  • How do I navigate to a report and select a row to return to a form

    I'm using APEX 4.0. My scenario is that I have a list of associations between Customer and Merchant called Shopper. From my Customers list report page when I click the edit icon, I navigate to a detail page. On this page, I want to be able to select

  • Missing data type Enhancement: CRMPARTNER_INFORMATION

    Hi All, I am creating an interface for business partner from ECC 6.0 to CRM 5.0. Inside CRM I am using the proxy message ABABusinessPartnerIn of namespace http://sap.com/xi/ABA. The problem I have is that from SPROXY inside CRM I can see the data typ

  • Probook 4420s,wireless dont come on

    It seems that the wireless key is not working can't get wireless connection anyone know the solution?

  • I accidently reset safari 6, how do I go back?

    I accidently reset safari 6.  I want to go back to before the reset.  I have my hard drive back up on a bootable hard drive.  I want to pull the data off that drive and replace where safari cleared my passwords, etc.  Can I do this?  Where do I look

  • Compound path selection in Photoshop CC

    Hi I have a compound path (item silhouette together with inner hole). But for some reason am not able to make selection with the hole excluded from outer path selection any more as I was able to do in previous versions of Photoshop (photoshop selects