|
0 membri (),
1,582
ospiti, e
3
robot. |
|
Chiave:
Admin,
Mod Globale,
Mod
|
|
|
|
Iscritto: Jan 2005
Posts: 478
Member
|
Member
Iscritto: Jan 2005
Posts: 478 |
Mi hai tolto le prole dalla bocca... effettivamente io ti avevo già avvisato a riguardo.... SELECT TRANSFORM(colonna_geom, cod_SRID) FROM nome_tambella
Ciao
email: echo "dfp^k^ivpq=sfodfifl+fq" | perl -pe 's/(.)/chr(ord($1)+3)/ge' -------- Il problema dell'umanità è che gli stupidi sono strasicuri, mentre gli intelligenti sono pieni di dubbi. (B. Russell)
|
|
|
|
|
Iscritto: Oct 2006
Posts: 75
Member
|
OP
Member
Iscritto: Oct 2006
Posts: 75 |
si ma in che formato le memorizzo le wgs84?
|
|
|
|
|
Iscritto: Jan 2005
Posts: 478
Member
|
Member
Iscritto: Jan 2005
Posts: 478 |
Ne abbiamo già parlato devi convertirle in decimali...... Forse la transform non va...prova queste....: select updategeometrysrid('tua_tabella', 'geom_col', <nuovo_SRID>);
POi, usa setSRID per cambiare il SRID delle geometrie:
select setsrid(geom_col, <nuovo_SRID>) from tua_tabella;
email: echo "dfp^k^ivpq=sfodfifl+fq" | perl -pe 's/(.)/chr(ord($1)+3)/ge' -------- Il problema dell'umanità è che gli stupidi sono strasicuri, mentre gli intelligenti sono pieni di dubbi. (B. Russell)
|
|
|
|
|
Iscritto: Oct 2006
Posts: 75
Member
|
OP
Member
Iscritto: Oct 2006
Posts: 75 |
|
|
|
|
|
Iscritto: Oct 2006
Posts: 75
Member
|
OP
Member
Iscritto: Oct 2006
Posts: 75 |
la trasformazione viene fatta, ma non in modo corretto. Ho il dubbio su come vanno memorizzate le wgs84
|
|
|
|
|
Iscritto: Jan 2005
Posts: 478
Member
|
Member
Iscritto: Jan 2005
Posts: 478 |
pUOI POSTARMI I PASSAGGI CHE USI?
email: echo "dfp^k^ivpq=sfodfifl+fq" | perl -pe 's/(.)/chr(ord($1)+3)/ge' -------- Il problema dell'umanità è che gli stupidi sono strasicuri, mentre gli intelligenti sono pieni di dubbi. (B. Russell)
|
|
|
|
|
Iscritto: Oct 2006
Posts: 75
Member
|
OP
Member
Iscritto: Oct 2006
Posts: 75 |
SELECT AddGeometryColumn('trasf','the_geom','4326','POINT',2);
update "trasf" set the_geom = setSRID(makepoint("trasf"."Longitudine","trasf"."Latitudine"), 4326);
create index trasf_point_gidx on "trasf" using gist (the_geom gist_geometry_ops);
vacuum analyze;
select updategeometrysrid('trasf','the_geom', 26591);
select setsrid("the_geom", 26591) from "trasf";
|
|
|
|
|
Iscritto: Oct 2006
Posts: 75
Member
|
OP
Member
Iscritto: Oct 2006
Posts: 75 |
I ris della trasformazione sono delle coordinate strane, che dovrebbero però comunque essere Gauss Boaga. Ti faccio un esempio:
lat(WGS84): 41.245278 lon(WGS84): 16.321111
risultato della trasf:
valori intorno a -4.01.... e 0.000021....
|
|
|
|
|
Iscritto: Jan 2005
Posts: 478
Member
|
Member
Iscritto: Jan 2005
Posts: 478 |
Prova con questo:
SELECT transform(setSRID(MakePoint(Latitudine, Longitudine), 4326), 26591) FROM trasf;
email: echo "dfp^k^ivpq=sfodfifl+fq" | perl -pe 's/(.)/chr(ord($1)+3)/ge' -------- Il problema dell'umanità è che gli stupidi sono strasicuri, mentre gli intelligenti sono pieni di dubbi. (B. Russell)
|
|
|
|
|
Iscritto: Oct 2006
Posts: 75
Member
|
OP
Member
Iscritto: Oct 2006
Posts: 75 |
Sempre con i passaggi che ti ho postato prima ora mi visualizza le info trasformate accanto a dove dovrebbero essere, a sinistra
|
|
|
Link Copiato negli Appunti
|
Forum34
Discussioni21,096
Post147,904
Membri18,175
| |
Massimo Online17,513 Jul 9th, 2026
|
|
|
|