12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>245 / 310SELECT ST_AsEWKT(ST_AddMeasure(ST_GeomFromEWKT(’LINESTRINGM(1 0 4, 2 0 4, 4 0 4)’),10,40)) As ewelev;ewelev----------------------------------------LINESTRINGM(1 0 10,2 0 20,4 0 40)SELECT ST_AsEWKT(ST_AddMeasure(ST_GeomFromEWKT(’MULTILINESTRINGM((1 0 4, 2 0 4, 4 0 4),(1 0 4, 2 0 4, 4 0 4))’),10,70)) As ←↪ewelev;ewelev-----------------------------------------------------------------MULTILINESTRINGM((1 0 10,2 0 20,4 0 40),(1 0 40,2 0 50,4 0 70))7.11 Long Transactions SupportThis module and associated pl/pgsql functions have been implemented to provide long locking support required by Web FeatureService specification.NoteUsers must use serializable transaction level otherwise locking mechanism would break.7.11.1 AddAuthAddAuth — Add an authorization token to be used in current transaction.Synopsisboolean AddAuth(text auth_token);DescriptionAdd an authorization token to be used in current transaction.Creates/adds to a temp table called temp_lock_have_table the current transaction identifier and authorization token key.Availability: 1.1.3ExamplesSELECT LockRow(’towns’, ’353’, ’priscilla’);BEGIN TRANSACTION;SELECT AddAuth(’joey’);UPDATE towns SET the_geom = ST_Translate(the_geom,2,2) WHERE gid = 353;COMMIT;---Error--ERROR: UPDATE where "gid" = ’353’ requires authorization ’priscilla’

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!