je veu utiliser la fonction SDO_UTIL.TO_WKTGEOMETRY d'oracle spatial pour transformer des données géographiques au format texte (wkt) mais la fonction ne me retourne que les 80 premier caracteress que doi je faire?
Version imprimable
je veu utiliser la fonction SDO_UTIL.TO_WKTGEOMETRY d'oracle spatial pour transformer des données géographiques au format texte (wkt) mais la fonction ne me retourne que les 80 premier caracteress que doi je faire?
personne ne peu m'aider?
Est ce que ce que je demande est possible?
ho monde cruel!!!
D'après http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14255/sdo_util.htm#BJEBJEGJ,
la fonction SDO_UTIL.TO_WKTGEOMETRY retourne un CLOB.
Comment utilisez-vous le CLOB dans votre code ?
Voiçi un exemple :
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 DECLARE wkbgeom BLOB; wktgeom CLOB; val_result VARCHAR2(5); geom_result SDO_GEOMETRY; geom SDO_GEOMETRY; BEGIN SELECT c.shape INTO geom FROM cola_markets c WHERE c.name = 'cola_b'; -- To WBT/WKT geometry wkbgeom := SDO_UTIL.TO_WKBGEOMETRY(geom); wktgeom := SDO_UTIL.TO_WKTGEOMETRY(geom); DBMS_OUTPUT.PUT_LINE('To WKT geometry result = ' || TO_CHAR(wktgeom)); -- From WBT/WKT geometry geom_result := SDO_UTIL.FROM_WKBGEOMETRY(wkbgeom); geom_result := SDO_UTIL.FROM_WKTGEOMETRY(wktgeom); -- Validate WBT/WKT geometry val_result := SDO_UTIL.VALIDATE_WKBGEOMETRY(wkbgeom); DBMS_OUTPUT.PUT_LINE('WKB validation result = ' || val_result); val_result := SDO_UTIL.VALIDATE_WKTGEOMETRY(wktgeom); DBMS_OUTPUT.PUT_LINE('WKT validation result = ' || val_result); END; / To WKT geometry result = POLYGON ((5.0 1.0, 8.0 1.0, 8.0 6.0, 5.0 7.0, 5.0 1.0)) WKB validation result = TRUE WKT validation result = TRUE
En résultat je n'ai que "Procédure PL/SQL terminée avec succès."
Les putline ne fonctionnent pas?
Il faut exécuter avant d'appeler votre code PL/SQL dans sqlplus:
Code:
1
2 set serveroutput on size 1000000
Merci a toi!;)Citation:
Envoyé par pifor