contrib:shp2ndm
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
contrib:shp2ndm [2007/07/20 17:24] – created sleleiva | contrib:shp2ndm [2007/07/23 20:25] – fixed COMMIT; line between BEGIN END; sleleiva | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | * Import a Shapefile into Oracle Spatial as a normal vector map; | + | |
- | * Replace all occurrences of SHP_TABLE (case sensitive, can be part of a word) in the script below with the table name of the imported map from Shapefile (copy all script from below to a text editor and perform that replace); | + | * Replace all occurrences of SHP_TABLE (case sensitive, can be part of a word) in the script below with the table name of the imported map from Shapefile (copy all script from below to a text editor and perform that replace); |
- | * Copy/Paste (in Linux: select text and then use middle mouse button or Shift+Insert to paste it in a console) the script line-by-line, | + | * Copy/Paste (in Linux: select text and then use middle mouse button or Shift+Insert to paste it in a console) the script line-by-line, |
<code oracle8> | <code oracle8> | ||
Line 37: | Line 37: | ||
EXECUTE SDO_TOPO_MAP.LOAD_TOPO_MAP(' | EXECUTE SDO_TOPO_MAP.LOAD_TOPO_MAP(' | ||
- | -- copy/paste everything in one go between BEGIN and COMMIT; | + | -- copy/paste everything in one go between BEGIN and termination line with symbol “/ |
-- this one will demand a considerable amount of time | -- this one will demand a considerable amount of time | ||
BEGIN | BEGIN | ||
Line 51: | Line 51: | ||
END LOOP; | END LOOP; | ||
END; | END; | ||
- | COMMIT; | + | / |
-- commit topology changes | -- commit topology changes |