[postgis-users] Insert record using SRID
Simon Greener
simon at spatialdbadvisor.com
Fri May 8 01:27:03 PDT 2009
Ben,
> INSERT INTO spl_points (the_geom)VALUES ( 'POINT(115.64 -33.34)');
>
> But this returns the following error ...
>
> ERROR: new row for relation "spl_points" violates check constraint
> "enforce_srid_the_geom"
INSERT INTO spl_points (the_geom) VALUES ( ST_SetSrid(ST_PointFromText('POINT(115.64 -33.34)'),4283) );
Simon
--
SpatialDB Advice and Design, Solutions Architecture and Programming,
Oracle Database 10g Administrator Certified Associate; Oracle Database 10g SQL Certified Professional
Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE, Manifold GIS, FME, Radius Topology and Studio Specialist.
39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia.
Website: www.spatialdbadvisor.com
Email: simon at spatialdbadvisor.com
Voice: +61 362 396397
Mobile: +61 418 396391
Skype: sggreener
Longitude: 147.20515 (147° 12' 18" E)
Latitude: -43.01530 (43° 00' 55" S)
NAC:W80CK 7SWP3
More information about the postgis-users
mailing list