Edit:
My .prj is this:
PROJCS["Argentina_GKBsAs",
GEOGCS["GCS_Campo_Inchauspe",
DATUM["D_Campo_Inchauspe",
SPHEROID["International_1924",6378388.0,297.0]],
PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",100000.0],
PARAMETER["False_Northing",100000.0],
PARAMETER["Central_Meridian",-58.4627],
PARAMETER["Scale_Factor",0.999998],
PARAMETER["Latitude_Of_Origin",-34.6297166],
UNIT["Meter",1.0]]
The projection number in spatialreference.org is 8333, and here you can see it in wkt as html for comparison:
PROJCS["Gauss Krugger BA",
GEOGCS["GCS_Campo_Inchauspe",
DATUM["D_Campo_Inchauspe",
SPHEROID["International_1924",6378388.0,297.0]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",100000.0],
PARAMETER["False_Northing",100000.0],
PARAMETER["Central_Meridian",-58.4627],
PARAMETER["Scale_Factor",1.0],
PARAMETER["Latitude_Of_Origin",-34.6297166],
UNIT["Meter",1.0]]
Here is the Postgis insert statement:
INSERT into spatial_ref_sys (srid, auth_name, auth_srid, proj4text, srtext) values ( 98333, 'sr-org', 8333, '+proj=tmerc +lat_0=-34.6297166 +lon_0=-58.4627 +k=1 +x_0=100000 +y_0=100000 +ellps=intl +units=m +no_defs ', 'PROJCS["Gauss Krugger BA",GEOGCS["GCS_Campo_Inchauspe",DATUM["D_Campo_Inchauspe",SPHEROID["International_1924",6378388.0,297.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",100000.0],PARAMETER["False_Northing",100000.0],PARAMETER["Central_Meridian",-58.4627],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",-34.6297166],UNIT["Meter",1.0]]');
So, I would appreciate a lot any insight onhave one point in wgs:
-58.47532313, -34.63847446
And I make the geometry (Point, 4326) in one table
Then I take the same point in the PCS (8333):
POINT(98897.6171875 98978.84375)
And I make the geometry (Point, 4326) out of the following transformation:
update test_t
set geom = ST_Transform(ST_SetSRID(ST_GeomFromText(coord), 98333), 4326);
I get this when I pick the point in Qgis:
Being the green point the correct one (the one originally in wgs), and the red the misplaced one (the transformed).
I hope this will clarify the issue, I'll add more data if needed. Thanks in advance
Thank you.