Import prostorových dat

From Wikivyuka
Revision as of 08:07, 23 August 2014 by Dur30 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Pomocí skriptu

V notepadu si vytvořte následujíci soubor typu .bat:

set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server
cd %ORACLE_HOME%
java -classpath jdbc\lib\ojdbc14.jar;md\sdoutl.jar;md\sdoapi.jar oracle.spatial.util.SampleShapefileToJGeomFeature -h localhost -p 1521 -s xe -u hr -d hr -t obce -f C:\skola\oracle\data\obce\obce_010109

Příkazem z řádky

Spustit příkaz k natažení shapefilu přímo z řádky.

java -classpath jdbc\lib\ojdbc14.jar;md\sdoutl.jar;md\sdoapi.jar oracle.spatial.util.SampleShapefileToJGeomFeature -h localhost -p 1521 -s xe -u hr -d hr -t obce -f 

Seznam parametrů převzat přímo se stránek Oracle:

Parameters

-h: Host machine with an existing Oracle database

-p: Port on the host machine (for example, 1521)

-s: SID (database name) on the host machine

-u: Database user

-d: Password for the database use

-t: Table name for the converted Shapefile

-f: File name of an input Shapefile (without extension)

-i: Column name for unique numeric ID, if required

-r: Valid Oracle SRID for coordinate system; use 0 if unknown

-g: Preferred SDO_GEOMETRY column name

-x: Bounds for the X dimension; use -180,180 if unknown

-y: Bounds for the Y dimension; use -90,90 if unknown

-o: Load tolerance fields (x and y) in metadata; if not specified, tolerance fields are 0.05

-a: Append Shapefile data to an existing table

-n: Start ID for column specified in -i parameter

-c: Commit interval; by default, commits occur every 1000 conversions and at the end

-v: Println interval; by default, a display every 10 conversions