-- Generated by BladeSmith 3.60.TC2 DO NOT MODIFY. -- execute procedure ifx_allow_newline('t'); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "metadata_tables.sql", "%SYSBLDUSER%", 0, "------------------------------------------------------------------------ -- SE_setup_tables -- -- This procedure creates the spatial_references and geometry_columns -- tables if they do not already exist. -- -- This procedure replaces the 8.1x version of SE_setup_tables, which -- copied entries from the sde database's spatial_references and -- geometry_columns tables (if they exist) into the current database's -- tables. This was to allow migration from SDE3.0.2.2 to ArcSde8.1. -- Direct migration is no longer supported, you must first register -- spatial datablade version 8.1x. ------------------------------------------------------------------------ CREATE PROCEDURE SE_setup_tables() DEFINE tab_exists INT; LET tab_exists = 0; SELECT count(*) INTO tab_exists FROM informix.systables WHERE tabname='spatial_references'; IF (tab_exists = 0) THEN -- Metadata tables do not exist; fresh install CREATE TABLE sde.spatial_references ( srid integer NOT NULL, description varchar(64), auth_name varchar(255), auth_srid int, falsex float NOT NULL, falsey float NOT NULL, xyunits float NOT NULL, falsez float NOT NULL, zunits float NOT NULL, falsem float NOT NULL, munits float NOT NULL, srtext char(2048) NOT NULL, PRIMARY KEY (srid) CONSTRAINT sde.sp_ref_pk ); CREATE TABLE sde.geometry_columns ( f_table_catalog varchar(32) NOT NULL, f_table_schema varchar(32) NOT NULL, f_table_name varchar(128) NOT NULL, f_geometry_column varchar(128) NOT NULL, storage_type integer, geometry_type integer NOT NULL, coord_dimension integer, srid integer NOT NULL, PRIMARY KEY (f_table_catalog, f_table_schema, f_table_name, f_geometry_column) CONSTRAINT sde.geocol_pk, FOREIGN KEY(srid) REFERENCES sde.spatial_references(srid) CONSTRAINT sde.geocol_fk ); CREATE VIEW sde.spatial_ref_sys AS SELECT srid, auth_name, auth_srid, srtext FROM sde.spatial_references; create opaque type SE_Metadata (internallength = variable, alignment = 8); create table SE_MetadataTable ( smd SE_Metadata ); revoke all on SE_MetadataTable from public; END IF END PROCEDURE; -- SE_setup_tables EXECUTE PROCEDURE SE_setup_tables(); DROP PROCEDURE SE_setup_tables(); ", "f", "drop table sde.geometry_columns; drop table sde.spatial_references; drop table SE_MetadataTable; drop type SE_Metadata restrict; ", "f" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "addsrids.sql", "%SYSBLDUSER%", 0, "------------------------------------------------------------------------ -- SE_add_srids -- -- The procedure inserts several entries into the spatial references -- table if they do not already exist. These entries are intended -- for use by the sample shapefile data that is supplied along with -- the datablade. They represent four very common datums and each -- has a false origin and scale factors suitable for worldwide -- unprojected (lat/lon) data. ------------------------------------------------------------------------ CREATE PROCEDURE SE_add_srids(); DEFINE ZeroInUse INT; DEFINE LastSrid INT; DEFINE FoundUnk INT; DEFINE FoundWGS84 INT; DEFINE FoundNAD27 INT; DEFINE FoundNAD83 INT; DEFINE FoundOldHI INT; LET ZeroInUse = 0; LET LastSrid = 0; LET FoundUnk = 0; LET FoundWGS84 = 0; LET FoundNAD27 = 0; LET FoundNAD83 = 0; LET FoundOldHI = 0; SELECT count(*) INTO ZeroInUse FROM sde.spatial_references WHERE srid = 0; -- Correct srtext field for unknown spatial reference systems UPDATE sde.spatial_references SET srtext = 'UNKNOWN' WHERE srtext = 'WORLD'; -- Check if each of the SRIDs we are about to insert already exists. SELECT count(*) INTO FoundUnk FROM sde.spatial_references WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232 AND srtext = 'UNKNOWN'; SELECT count(*) INTO FoundWGS84 FROM sde.spatial_references WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232 AND srtext = 'GEOGCS[""GCS_WGS_1984"",DATUM[""D_WGS_1984"",SPHEROID[""WGS_1984"",6378137,298.257223563]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'; SELECT count(*) INTO FoundNAD27 FROM sde.spatial_references WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232 AND srtext = 'GEOGCS[""GCS_North_American_1927"",DATUM[""D_North_American_1927"",SPHEROID[""Clarke_1866"",6378206.4,294.9786982]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'; SELECT count(*) INTO FoundNAD83 FROM sde.spatial_references WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232 AND srtext = 'GEOGCS[""GCS_North_American_1983"",DATUM[""D_North_American_1983"",SPHEROID[""GRS_1980"",6378137,298.257222101]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'; SELECT count(*) INTO FoundOldHI FROM sde.spatial_references WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232 AND srtext = 'GEOGCS[""GCS_Old_Hawaiian"",DATUM[""D_Old_Hawaiian"",SPHEROID[""Clarke_1866"",6378206.4,294.9786982]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'; IF (ZeroInUse = 0) THEN -- srid 0 is not in use, so use it for generic worldwide data INSERT INTO sde.spatial_references (srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, srtext) VALUES (0, 'Unspecified datum for use with unprojected lat/lon coords', NULL, NULL, -180, -90, 5965232, -50000, 1000, -1000, 1000, 'UNKNOWN'); LET FoundUnk = 1; END IF SELECT max(srid) INTO LastSrid FROM sde.spatial_references; IF (FoundUnk = 0) THEN LET LastSrid = LastSrid + 1; INSERT INTO sde.spatial_references (srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, srtext) VALUES (LastSrid, 'Unspecified datum for use with unprojected lat/lon coords', NULL, NULL, -180, -90, 5965232, -50000, 1000, -1000, 1000, 'UNKNOWN'); END IF IF (FoundOldHI = 0) THEN LET LastSrid = LastSrid + 1; INSERT INTO sde.spatial_references (srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, srtext) VALUES (LastSrid, 'Old Hawaiian datum for use with unprojected lat/lon coords', 'EPSG', 4135, -180, -90, 5965232, -50000, 1000, -1000, 1000, 'GEOGCS[""GCS_Old_Hawaiian"",DATUM[""D_Old_Hawaiian"",SPHEROID[""Clarke_1866"",6378206.4,294.9786982]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'); END IF IF (FoundNAD27 = 0) THEN LET LastSrid = LastSrid + 1; INSERT INTO sde.spatial_references (srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, srtext) VALUES (LastSrid, 'NAD 1927 datum for use with unprojected lat/lon coords', 'EPSG', 4267, -180, -90, 5965232, -50000, 1000, -1000, 1000, 'GEOGCS[""GCS_North_American_1927"",DATUM[""D_North_American_1927"",SPHEROID[""Clarke_1866"",6378206.4,294.9786982]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'); END IF IF (FoundNAD83 = 0) THEN LET LastSrid = LastSrid + 1; INSERT INTO sde.spatial_references (srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, srtext) VALUES (LastSrid, 'NAD 1983 datum for use with unprojected lat/lon coords', 'EPSG', 4269, -180, -90, 5965232, -50000, 1000, -1000, 1000, 'GEOGCS[""GCS_North_American_1983"",DATUM[""D_North_American_1983"",SPHEROID[""GRS_1980"",6378137,298.257222101]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'); END IF IF (FoundWGS84 = 0) THEN LET LastSrid = LastSrid + 1; INSERT INTO sde.spatial_references (srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, srtext) VALUES (LastSrid, 'WGS 84 datum for use with unprojected lat/lon coords', 'EPSG', 4326, -180, -90, 5965232, -50000, 1000, -1000, 1000, 'GEOGCS[""GCS_WGS_1984"",DATUM[""D_WGS_1984"",SPHEROID[""WGS_1984"",6378137,298.257223563]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]'); END IF END PROCEDURE; EXECUTE PROCEDURE SE_add_srids(); DROP PROCEDURE SE_add_srids(); ", "f", "-- No drop statements needed for this object ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "addsrids.sql", "%SYSBLDUSER%", 0, "metadata_tables.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "sbspace.sql", "%SYSBLDUSER%", 0, "create function SE_TestSbspace(varchar(255)) returns lvarchar with (variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_TestSbspace)' language c; grant execute on function SE_TestSbspace(varchar(255)) to public; -- Verify that a default sbspace has been created. -- The Spatial DataBlade needs this to store metadata. select SE_TestSbspace(""SBSPACENAME"") from informix.systables where tabname='systables'; -- Verify that a system sbspace has been created. This is needed -- if you run update statistics medium or high on a Spatial column. select SE_TestSbspace(""SYSSBSPACENAME"") from informix.systables where tabname='systables'; ", "f", " drop function SE_TestSbspace(varchar(255)); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "sbspace.sql", "%SYSBLDUSER%", 0, "addsrids.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "spreftriggers.sql", "%SYSBLDUSER%", 0, "create procedure SE_SpRefInsTrigger( integer, varchar(64), varchar(255), int, float, float, float, float, float, float, float, char(2048)) with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpRefInsTrigger)' language c; create procedure SE_SpRefUpdTrigger( integer, integer, varchar(64), varchar(255), int, float, float, float, float, float, float, float, char(2048)) with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpRefUpdTrigger)' language c; create procedure SE_SpRefDelTrigger(integer) with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpRefDelTrigger)' language c; grant execute on procedure SE_SpRefInsTrigger( integer, varchar(64), varchar(255), int, float, float, float, float, float, float, float, char(2048)) to public; grant execute on procedure SE_SpRefUpdTrigger( integer, integer, varchar(64), varchar(255), int, float, float, float, float, float, float, float, char(2048)) to public; grant execute on procedure SE_SpRefDelTrigger(integer) to public; create procedure SE_UoMInsTrigger( varchar(128), varchar(16), double precision, varchar(255)) with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UoMInsTrigger)' language c; create procedure SE_UoMUpdTrigger( varchar(128), varchar(128), varchar(16), double precision, varchar(255)) with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UoMUpdTrigger)' language c; create procedure SE_UoMDelTrigger(varchar(128)) with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UoMDelTrigger)' language c; grant execute on procedure SE_UoMInsTrigger( varchar(128), varchar(16), double precision, varchar(255)) to public; grant execute on procedure SE_UoMUpdTrigger( varchar(128), varchar(128), varchar(16), double precision, varchar(255)) to public; grant execute on procedure SE_UoMDelTrigger(varchar(128)) to public; create trigger SE_SpRefInsTrig insert on sde.spatial_references referencing new as spref for each row (execute procedure SE_SpRefInsTrigger( spref.srid, spref.description, spref.auth_name, spref.auth_srid, spref.falsex, spref.falsey, spref.xyunits, spref.falsez, spref.zunits, spref.falsem, spref.munits, spref.srtext)); create trigger SE_SpRefUpdTrig update on sde.spatial_references referencing old as old_spref new as new_spref for each row (execute procedure SE_SpRefUpdTrigger( old_spref.srid, new_spref.srid, new_spref.description, new_spref.auth_name, new_spref.auth_srid, new_spref.falsex, new_spref.falsey, new_spref.xyunits, new_spref.falsez, new_spref.zunits, new_spref.falsem, new_spref.munits, new_spref.srtext)); create trigger SE_SpRefDelTrig delete on sde.spatial_references referencing old as spref for each row (execute procedure SE_SpRefDelTrigger(spref.srid)); create trigger SE_UoMInsTrig insert on sde.st_units_of_measure referencing new as uom for each row (execute procedure SE_UoMInsTrigger( uom.unit_name, uom.unit_type, uom.conversion_factor, uom.description)); create trigger SE_UomUpdTrig update on sde.st_units_of_measure referencing old as old_uom new as new_uom for each row ( execute procedure SE_UoMUpdTrigger( old_uom.unit_name, new_uom.unit_name, new_uom.unit_type, new_uom.conversion_factor, new_uom.description)); create trigger SE_UoMDelTrig delete on sde.st_units_of_measure referencing old as uom for each row (execute procedure SE_UoMDelTrigger(uom.unit_name)); ", "f", " create procedure SE_DropSpRefTriggers() begin on exception in (-634) end exception with resume drop trigger SE_SpRefInsTrig; drop trigger SE_SpRefUpdTrig; drop trigger SE_SpRefDelTrig; drop trigger SE_UoMInsTrig; drop trigger SE_UoMUpdTrig; drop trigger SE_UoMDelTrig; end end procedure; execute procedure SE_DropSpRefTriggers(); drop procedure SE_DropSpRefTriggers(); drop procedure SE_SpRefInsTrigger( integer, varchar(64), varchar(255), int, float, float, float, float, float, float, float, char(2048)); drop procedure SE_SpRefUpdTrigger( integer, integer, varchar(64), varchar(255), int, float, float, float, float, float, float, float, char(2048)); drop procedure SE_SpRefDelTrigger(integer); drop procedure SE_UoMInsTrigger( varchar(128), varchar(16), double precision, varchar(255)); drop procedure SE_UoMUpdTrigger( varchar(128), varchar(128), varchar(16), double precision, varchar(255)); drop procedure SE_UoMDelTrigger(varchar(128)); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "spreftriggers.sql", "%SYSBLDUSER%", 0, "srs_uom_load.sql", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "spreftriggers.sql", "%SYSBLDUSER%", 0, "sbspace.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "pdqfuncs.%SYSBLDDIR%", "%SYSBLDUSER%", 0, " create function SE_MetadataIn (lvarchar) returns SE_Metadata with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)' language c; create function SE_MetadataOut (SE_Metadata) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)' language c; create function SE_MetadataSend (SE_Metadata) returns sendrecv external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)' language c; create function SE_MetadataRecv (sendrecv) returns SE_Metadata with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)' language c; create function SE_MetadataImpT (impexp) returns SE_Metadata with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)' language c; create function SE_MetadataExpT (SE_Metadata) returns impexp with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)' language c; create function SE_MetadataImpB (impexpbin) returns SE_Metadata with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)' language c; create function SE_MetadataExpB (SE_Metadata) returns impexpbin with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)' language c; create procedure Destroy(SE_Metadata) with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataDestroy)' language c; create function LOhandles(SE_Metadata) returns lolist with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataLOhandles)' language c; create function SE_MetadataDump(int) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataDump)' language c; grant usage on type SE_Metadata to public; grant execute on function SE_MetadataIn (lvarchar) to public; grant execute on function SE_MetadataOut (SE_Metadata) to public; grant execute on function SE_MetadataSend (SE_Metadata) to public; grant execute on function SE_MetadataRecv (sendrecv) to public; grant execute on function SE_MetadataImpT (impexp) to public; grant execute on function SE_MetadataExpT (SE_Metadata) to public; grant execute on function SE_MetadataImpB (impexpbin) to public; grant execute on function SE_MetadataExpB (SE_Metadata) to public; grant execute on procedure Destroy(SE_Metadata) to public; grant execute on function LOhandles(SE_Metadata) to public; grant execute on function SE_MetadataDump(int) to public; create cast (SE_Metadata as lvarchar with SE_MetadataOut); create cast (SE_Metadata as sendrecv with SE_MetadataSend); create cast (SE_Metadata as impexp with SE_MetadataExpT); create cast (SE_Metadata as impexpbin with SE_MetadataExpB); create implicit cast (lvarchar as SE_Metadata with SE_MetadataIn); create implicit cast (sendrecv as SE_Metadata with SE_MetadataRecv); create implicit cast (impexp as SE_Metadata with SE_MetadataImpT); create implicit cast (impexpbin as SE_Metadata with SE_MetadataImpB); ", "f", " drop cast (SE_Metadata as lvarchar); drop cast (SE_Metadata as sendrecv); drop cast (SE_Metadata as impexp); drop cast (SE_Metadata as impexpbin); drop cast (lvarchar as SE_Metadata); drop cast (sendrecv as SE_Metadata); drop cast (impexp as SE_Metadata); drop cast (impexpbin as SE_Metadata); drop function SE_MetadataIn (lvarchar); drop function SE_MetadataOut (SE_Metadata); drop function SE_MetadataRecv (sendrecv); drop function SE_MetadataSend (SE_Metadata); drop function SE_MetadataImpT (impexp); drop function SE_MetadataExpT (SE_Metadata); drop function SE_MetadataImpB (impexpbin); drop function SE_MetadataExpB (SE_Metadata); drop procedure Destroy (SE_Metadata); drop function LOhandles (SE_Metadata); drop function SE_MetadataDump(int); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "pdqfuncs.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "spreftriggers.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "types.sql", "%SYSBLDUSER%", 0, "create opaque type ST_Geometry (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_Curve (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_MultiCurve (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_Surface (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_MultiSurface (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_Point (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_MultiPoint (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_LineString (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_MultiLineString (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_Polygon (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_MultiPolygon (internallength = variable, cannothash, maxlen = 2048, alignment = 8); create opaque type ST_GeomCollection (internallength = variable, cannothash, maxlen = 2048, alignment = 8); grant usage on type ST_Geometry to public; grant usage on type ST_Curve to public; grant usage on type ST_MultiCurve to public; grant usage on type ST_Surface to public; grant usage on type ST_MultiSurface to public; grant usage on type ST_Point to public; grant usage on type ST_MultiPoint to public; grant usage on type ST_LineString to public; grant usage on type ST_MultiLineString to public; grant usage on type ST_Polygon to public; grant usage on type ST_MultiPolygon to public; grant usage on type ST_GeomCollection to public; ", "f", " drop type ST_Geometry restrict; drop type ST_Curve restrict; drop type ST_MultiCurve restrict; drop type ST_Surface restrict; drop type ST_MultiSurface restrict; drop type ST_Point restrict; drop type ST_MultiPoint restrict; drop type ST_LineString restrict; drop type ST_MultiLineString restrict; drop type ST_Polygon restrict; drop type ST_MultiPolygon restrict; drop type ST_GeomCollection restrict; ", "f" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "deepcopy.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function DeepCopy(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_Curve) returns ST_Curve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_MultiCurve) returns ST_MultiCurve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_Surface) returns ST_Surface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_MultiSurface) returns ST_MultiSurface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_Point) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_MultiPoint) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_LineString) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_MultiLineString) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_Polygon) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_MultiPolygon) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; create function DeepCopy(ST_GeomCollection) returns ST_GeomCollection with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)' language c; grant execute on function DeepCopy (ST_Geometry) to public; grant execute on function DeepCopy (ST_Curve) to public; grant execute on function DeepCopy (ST_MultiCurve) to public; grant execute on function DeepCopy (ST_Surface) to public; grant execute on function DeepCopy (ST_MultiSurface) to public; grant execute on function DeepCopy (ST_Point) to public; grant execute on function DeepCopy (ST_MultiPoint) to public; grant execute on function DeepCopy (ST_LineString) to public; grant execute on function DeepCopy (ST_MultiLineString) to public; grant execute on function DeepCopy (ST_Polygon) to public; grant execute on function DeepCopy (ST_MultiPolygon) to public; grant execute on function DeepCopy (ST_GeomCollection) to public; ", "f", " drop function DeepCopy(ST_Geometry); drop function DeepCopy(ST_Curve); drop function DeepCopy(ST_MultiCurve); drop function DeepCopy(ST_Surface); drop function DeepCopy(ST_MultiSurface); drop function DeepCopy(ST_Point); drop function DeepCopy(ST_MultiPoint); drop function DeepCopy(ST_LineString); drop function DeepCopy(ST_MultiLineString); drop function DeepCopy(ST_Polygon); drop function DeepCopy(ST_MultiPolygon); drop function DeepCopy(ST_GeomCollection); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "deepcopy.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "hdrdepchk.sql", "%SYSBLDUSER%", 0, " CREATE PROCEDURE SE_HdrDepChk() DEFINE nmajor integer; DEFINE slevel integer; SELECT dbinfo('version','major') INTO nmajor FROM systables WHERE tabid = 1; IF ( nmajor >= 11 ) THEN insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( '%SYSBLDNAME%', 0, 'pdqinit.%SYSBLDDIR%', '%SYSBLDUSER%', 0, 'hdrlog.%SYSBLDDIR%', '%SYSBLDUSER%' ); ELIF ( nmajor = 10 ) THEN SELECT substr(replace(replace(replace(replace(replace(replace(replace(dbinfo('version','level'),'E',' '),'T',' '),'B',' '),'W',' '),'X',' '),'N',' '),'D',' '),2,2)::int INTO slevel FROM systables WHERE tabid=1; IF ( slevel >= 6 ) THEN insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( '%SYSBLDNAME%', 0, 'pdqinit.%SYSBLDDIR%', '%SYSBLDUSER%', 0, 'hdrlog.%SYSBLDDIR%', '%SYSBLDUSER%' ); END IF END IF END PROCEDURE; EXECUTE PROCEDURE SE_HdrDepChk(); DROP PROCEDURE SE_HdrDepChk; ", "f", " ", "t" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "pdqinit.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function Assign(SE_Metadata) returns SE_Metadata with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataAssign)' language c; create function SE_MetadataPrep() returns SE_Metadata with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataPrep)' language c; create procedure SE_MetadataInitOnSec(SE_Metadata) with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataInitOnSec)' language c; create procedure SE_MetadataInitFromLO(lvarchar) with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataInitFromLO)' language c; create procedure SE_MetadataDestroyLO(lvarchar) with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataDestroyLO)' language c; grant execute on function Assign(SE_Metadata) to public; grant execute on function SE_MetadataPrep() to public; grant execute on procedure SE_MetadataInitOnSec(SE_Metadata) to public; grant execute on procedure SE_MetadataInitFromLO(lvarchar) to public; grant execute on procedure SE_MetadataDestroyLO(lvarchar) to public; create function SE_MetadataInit() returns varchar(255) define dri_type char(20); define major_version integer; select DBINFO('version','major') into major_version from sysmaster:systables where tabid = 1; if major_version < 11 then select lower(type) into dri_type from sysmaster:sysdri; else select decode(ha_type,0,'not initialized',1,'primary','secondary') into dri_type from sysmaster:sysha_type; end if if dri_type = 'secondary' then begin define smd_ret SE_Metadata; select smd into smd_ret from SE_MetadataTable; execute procedure SE_MetadataInitOnSec(smd_ret); return 'SUCCESS: SE_Metadata is reinitialized.'; end else begin delete from SE_MetadataTable; insert into SE_MetadataTable values (SE_MetadataPrep()); return 'SUCCESS: SE_Metadata is reinitialized.'; end end if end function; ", "f", " drop procedure SE_MetadataInit; drop procedure SE_MetadataInitOnSec(SE_Metadata); drop procedure SE_MetadataInitFromLO(lvarchar); drop procedure SE_MetadataDestroyLO(lvarchar); drop function SE_MetadataPrep(); drop function Assign (SE_Metadata); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "pdqinit.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "deepcopy.%SYSBLDDIR%", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "pdqinit.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "hdrdepchk.sql", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "pdqinit.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "pdqfuncs.%SYSBLDDIR%", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "metainitrun", "%SYSBLDUSER%", 0, " execute function SE_MetadataInit(); ", "f", " ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "metainitrun", "%SYSBLDUSER%", 0, "pdqinit.%SYSBLDDIR%", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "metainitrun", "%SYSBLDUSER%", 0, "srs_uom_load.sql", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "pdqinit.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "pdqfuncs.%SYSBLDDIR%", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "semifuncchk.sql", "%SYSBLDUSER%", 0, " create function SE_MIfunc_Check(lvarchar) returns integer external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MIfunc_Check)' language c; grant execute on function SE_MIfunc_Check(lvarchar) to public; ", "t", " drop function SE_MIfunc_Check(lvarchar); ", "t" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "semifuncchk.sql", "%SYSBLDUSER%", 0, "pdqinit.%SYSBLDDIR%", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "geometry.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_GeomIn(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomIn)' language c; create function ST_GeomOut(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_GeomSend(ST_Geometry) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_GeomRecv(sendrecv) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomRecv)' language c; create function ST_GeomImpT(impexp) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomIn)' language c; create function ST_GeomExpT(ST_Geometry) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_GeomImpB(impexpbin) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomRecv)' language c; create function ST_GeomExpB(ST_Geometry) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_Geometry) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_Geometry) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function SE_GeomFromSde(lvarchar,lvarchar,integer) returns ST_Geometry with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromSde)' language c; create function SE_GeomFromShape(lvarchar,integer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromShape)' language c; create function ST_GeomFromText(lvarchar,int) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromText)' language c; create function ST_GeomFromWKB(lvarchar,integer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromWKB)' language c; create function SE_ShapeToSQL(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ShapeToSQL)' language c; create function ST_WKTToSQL(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WKTToSQL)' language c; create function ST_WKBToSQL(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WKBToSQL)' language c; grant execute on function ST_GeomIn (lvarchar) to public; grant execute on function ST_GeomOut (ST_Geometry) to public; grant execute on function ST_GeomSend (ST_Geometry) to public; grant execute on function ST_GeomRecv (sendrecv) to public; grant execute on function ST_GeomImpT (impexp) to public; grant execute on function ST_GeomExpT (ST_Geometry) to public; grant execute on function ST_GeomImpB (impexpbin) to public; grant execute on function ST_GeomExpB (ST_Geometry) to public; grant execute on function Assign (ST_Geometry) to public; grant execute on procedure Destroy (ST_Geometry) to public; grant execute on function LOhandles (ST_Geometry) to public; grant execute on function SE_GeomFromSde (lvarchar,lvarchar,integer) to public; grant execute on function SE_GeomFromShape (lvarchar,integer) to public; grant execute on function ST_GeomFromText (lvarchar,integer) to public; grant execute on function ST_GeomFromWKB (lvarchar,integer) to public; grant execute on function SE_ShapeToSQL(lvarchar) to public; grant execute on function ST_WKTToSQL(lvarchar) to public; grant execute on function ST_WKBToSQL(lvarchar) to public; create implicit cast (lvarchar as ST_Geometry with ST_GeomIn); create explicit cast (ST_Geometry as lvarchar with ST_GeomOut); create explicit cast (ST_Geometry as sendrecv with ST_GeomSend); create implicit cast (sendrecv as ST_Geometry with ST_GeomRecv); create implicit cast (impexp as ST_Geometry with ST_GeomImpT); create explicit cast (ST_Geometry as impexp with ST_GeomExpT); create implicit cast (impexpbin as ST_Geometry with ST_GeomImpB); create explicit cast (ST_Geometry as impexpbin with ST_GeomExpB); ", "f", " drop cast (lvarchar as ST_Geometry); drop cast (ST_Geometry as lvarchar); drop cast (ST_Geometry as sendrecv); drop cast (sendrecv as ST_Geometry); drop cast (impexp as ST_Geometry); drop cast (ST_Geometry as impexp); drop cast (impexpbin as ST_Geometry); drop cast (ST_Geometry as impexpbin); drop function ST_GeomIn(lvarchar); drop function ST_GeomOut(ST_Geometry); drop function ST_GeomSend(ST_Geometry); drop function ST_GeomRecv(sendrecv); drop function ST_GeomImpT(impexp); drop function ST_GeomExpT(ST_Geometry); drop function ST_GeomImpB(impexpbin); drop function ST_GeomExpB(ST_Geometry); drop function Assign(ST_Geometry); drop procedure Destroy(ST_Geometry); drop function LOhandles(ST_Geometry); drop function SE_GeomFromSde(lvarchar,lvarchar,integer); drop function SE_GeomFromShape(lvarchar,integer); drop function ST_GeomFromText(lvarchar,int); drop function ST_GeomFromWKB(lvarchar,integer); drop function SE_ShapeToSQL(lvarchar); drop function ST_WKTToSQL(lvarchar); drop function ST_WKBToSQL(lvarchar); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "geometry.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "esri_mm_compate.sql", "%SYSBLDUSER%", 0, "create function ST_M(ST_Point) returns float with (not variant, parallelizable, percall_cost=100) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_M)' language c; create function ST_Z(ST_Point) returns float with (not variant, parallelizable, percall_cost=100) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Z)' language c; create function ST_Is3D(ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Is3D)' language c; create function ST_IsMeasured(ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_IsMeasured)' language c; create function ST_LocateAlong(ST_Geometry,float) returns ST_Geometry with (not variant, parallelizable, percall_cost=5000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateAlong)' language c; create function ST_LocateBetween(ST_Geometry,float,float) returns ST_Geometry with (not variant, parallelizable, percall_cost=500) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateBetween)' language c; create function ST_MinX(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmin)' language c; create function ST_MaxX(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmax)' language c; create function ST_MinY(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymin)' language c; create function ST_MaxY(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymax)' language c; create function ST_MinZ(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmin)' language c; create function ST_MaxZ(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmax)' language c; create function ST_MinM(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmin)' language c; create function ST_MaxM(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmax)' language c; create function ST_DistanceToPoint(ST_LineString, ST_Point) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DistanceToPoint)' language c; create function ST_PointAtDistance(ST_LineString, d float) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointAtDistance)' language c; create function ST_DistanceToPoint(ST_MultiLineString, ST_Point) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DistanceToPoint)' language c; create function ST_PointAtDistance(ST_MultiLineString, float) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointAtDistance)' language c; grant execute on function ST_M (ST_Point) to public; grant execute on function ST_Z (ST_Point) to public; grant execute on function ST_Is3D (ST_Geometry) to public; grant execute on function ST_IsMeasured (ST_Geometry) to public; grant execute on function ST_LocateAlong (ST_Geometry,float) to public; grant execute on function ST_LocateBetween (ST_Geometry,float,float) to public; grant execute on function ST_MaxX (ST_Geometry) to public; grant execute on function ST_MinX (ST_Geometry) to public; grant execute on function ST_MaxY (ST_Geometry) to public; grant execute on function ST_MinY (ST_Geometry) to public; grant execute on function ST_MaxZ (ST_Geometry) to public; grant execute on function ST_MinZ (ST_Geometry) to public; grant execute on function ST_MaxM (ST_Geometry) to public; grant execute on function ST_MinM (ST_Geometry) to public; grant execute on function ST_DistanceToPoint(ST_LineString, ST_Point) to public; grant execute on function ST_PointAtDistance(ST_LineString, float) to public; grant execute on function ST_DistanceToPoint(ST_MultiLineString, ST_Point) to public; grant execute on function ST_PointAtDistance(ST_MultiLineString, float) to public; ", "f", "drop function ST_M(ST_Point); drop function ST_Z(ST_Point); drop function ST_Is3D(ST_Geometry); drop function ST_IsMeasured(ST_Geometry); drop function ST_LocateAlong(ST_Geometry,float); drop function ST_LocateBetween(ST_Geometry,float,float); drop function ST_MaxX(ST_Geometry); drop function ST_MinX(ST_Geometry); drop function ST_MaxY(ST_Geometry); drop function ST_MinY(ST_Geometry); drop function ST_MaxZ(ST_Geometry); drop function ST_MinZ(ST_Geometry); drop function ST_MaxM(ST_Geometry); drop function ST_MinM(ST_Geometry); drop function ST_DistanceToPoint(ST_LineString, ST_Point); drop function ST_PointAtDistance(ST_LineString, float); drop function ST_DistanceToPoint(ST_MultiLineString, ST_Point); drop function ST_PointAtDistance(ST_MultiLineString, float); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "esri_mm_compate.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "point.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_PointIn(lvarchar) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointIn)' language c; create function ST_PointOut(ST_Point) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_PointSend(ST_Point) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_PointRecv(sendrecv) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointRecv)' language c; create function ST_PointImpT(impexp) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointIn)' language c; create function ST_PointExpT(ST_Point) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_PointImpB(impexpbin) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointRecv)' language c; create function ST_PointExpB(ST_Point) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_Point) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_Point) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_Point) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function ST_Point(float,float,integer) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromValues)' language c; create function SE_PointFromSde(lvarchar,lvarchar,integer) returns ST_Point with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromSde)' language c; create function SE_PointFromShape(lvarchar,integer) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromShape)' language c; create function ST_PointFromText(lvarchar,integer) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromText)' language c; create function ST_PointFromWKB(lvarchar,integer) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromWKB)' language c; create function SE_M(ST_Point) returns float with (not variant, parallelizable, percall_cost=100) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_M)' language c; create function ST_X(ST_Point) returns float with (not variant, parallelizable, percall_cost=100) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_X)' language c; create function ST_Y(ST_Point) returns float with (not variant, parallelizable, percall_cost=100) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Y)' language c; create function SE_Z(ST_Point) returns float with (not variant, parallelizable, percall_cost=100) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Z)' language c; grant execute on function ST_PointIn (lvarchar) to public; grant execute on function ST_PointOut (ST_Point) to public; grant execute on function ST_PointSend (ST_Point) to public; grant execute on function ST_PointRecv (sendrecv) to public; grant execute on function ST_PointImpT (impexp) to public; grant execute on function ST_PointExpT (ST_Point) to public; grant execute on function ST_PointImpB (impexpbin) to public; grant execute on function ST_PointExpB (ST_Point) to public; grant execute on function Assign (ST_Point) to public; grant execute on procedure Destroy (ST_Point) to public; grant execute on function LOhandles (ST_Point) to public; grant execute on function ST_Point(float,float,integer) to public; grant execute on function SE_PointFromSde (lvarchar,lvarchar,integer) to public; grant execute on function SE_PointFromShape (lvarchar,integer) to public; grant execute on function ST_PointFromText (lvarchar,integer) to public; grant execute on function ST_PointFromWKB (lvarchar,integer) to public; grant execute on function SE_M (ST_Point) to public; grant execute on function ST_X (ST_Point) to public; grant execute on function ST_Y (ST_Point) to public; grant execute on function SE_Z (ST_Point) to public; create implicit cast (lvarchar as ST_Point with ST_PointIn); create explicit cast (ST_Point as lvarchar with ST_PointOut); create explicit cast (ST_Point as sendrecv with ST_PointSend); create implicit cast (sendrecv as ST_Point with ST_PointRecv); create implicit cast (impexp as ST_Point with ST_PointImpT); create explicit cast (ST_Point as impexp with ST_PointExpT); create implicit cast (impexpbin as ST_Point with ST_PointImpB); create explicit cast (ST_Point as impexpbin with ST_PointExpB); ", "f", " drop cast (lvarchar as ST_Point); drop cast (ST_Point as lvarchar); drop cast (ST_Point as sendrecv); drop cast (sendrecv as ST_Point); drop cast (impexp as ST_Point); drop cast (ST_Point as impexp); drop cast (impexpbin as ST_Point); drop cast (ST_Point as impexpbin); drop function ST_PointIn(lvarchar); drop function ST_PointOut(ST_Point); drop function ST_PointSend(ST_Point); drop function ST_PointRecv(sendrecv); drop function ST_PointImpT(impexp); drop function ST_PointExpT(ST_Point); drop function ST_PointImpB(impexpbin); drop function ST_PointExpB(ST_Point); drop function Assign(ST_Point); drop procedure Destroy(ST_Point); drop function LOhandles(ST_Point); drop function ST_Point(float,float,integer); drop function SE_PointFromSde(lvarchar,lvarchar,integer); drop function SE_PointFromShape(lvarchar,integer); drop function ST_PointFromText(lvarchar,integer); drop function ST_PointFromWKB(lvarchar,integer); drop function SE_M(ST_Point); drop function ST_X(ST_Point); drop function ST_Y(ST_Point); drop function SE_Z(ST_Point); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "point.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "polygon.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_PolyIn(lvarchar) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyIn)' language c; create function ST_PolyOut(ST_Polygon) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_PolySend(ST_Polygon) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_PolyRecv(sendrecv) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyRecv)' language c; create function ST_PolyImpT(impexp) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyIn)' language c; create function ST_PolyExpT(ST_Polygon) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_PolyImpB(impexpbin) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyRecv)' language c; create function ST_PolyExpB(ST_Polygon) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_Polygon) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_Polygon) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_Polygon) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function SE_PolyFromSde(lvarchar,lvarchar,integer) returns ST_Polygon with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromSde)' language c; create function SE_PolyFromShape(lvarchar,integer) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromShape)' language c; create function ST_PolyFromText(lvarchar,integer) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromText)' language c; create function ST_PolyFromWKB(lvarchar,integer) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromWKB)' language c; create function ST_Polygon(ST_LineString) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromLineString)' language c; create function ST_ExteriorRing(ST_Polygon) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ExteriorRing)' language c; create function ST_InteriorRingN(ST_Polygon,integer) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_InteriorRingN)' language c; create function ST_NumInteriorRing(ST_Polygon) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_NumInteriorRing)' language c; grant execute on function ST_PolyIn (lvarchar) to public; grant execute on function ST_PolyOut (ST_Polygon) to public; grant execute on function ST_PolySend (ST_Polygon) to public; grant execute on function ST_PolyRecv (sendrecv) to public; grant execute on function ST_PolyImpT (impexp) to public; grant execute on function ST_PolyExpT (ST_Polygon) to public; grant execute on function ST_PolyImpB (impexpbin) to public; grant execute on function ST_PolyExpB (ST_Polygon) to public; grant execute on function Assign (ST_Polygon) to public; grant execute on procedure Destroy (ST_Polygon) to public; grant execute on function LOhandles (ST_Polygon) to public; grant execute on function SE_PolyFromSde (lvarchar,lvarchar,integer) to public; grant execute on function SE_PolyFromShape (lvarchar,integer) to public; grant execute on function ST_PolyFromText (lvarchar,integer) to public; grant execute on function ST_PolyFromWKB (lvarchar,integer) to public; grant execute on function ST_Polygon(ST_LineString) to public; grant execute on function ST_ExteriorRing (ST_Polygon) to public; grant execute on function ST_InteriorRingN (ST_Polygon,integer) to public; grant execute on function ST_NumInteriorRing (ST_Polygon) to public; create implicit cast (lvarchar as ST_Polygon with ST_PolyIn); create explicit cast (ST_Polygon as lvarchar with ST_PolyOut); create explicit cast (ST_Polygon as sendrecv with ST_PolySend); create implicit cast (sendrecv as ST_Polygon with ST_PolyRecv); create implicit cast (impexp as ST_Polygon with ST_PolyImpT); create explicit cast (ST_Polygon as impexp with ST_PolyExpT); create implicit cast (impexpbin as ST_Polygon with ST_PolyImpB); create explicit cast (ST_Polygon as impexpbin with ST_PolyExpB); ", "f", " drop cast (lvarchar as ST_Polygon); drop cast (ST_Polygon as lvarchar); drop cast (ST_Polygon as sendrecv); drop cast (sendrecv as ST_Polygon); drop cast (impexp as ST_Polygon); drop cast (ST_Polygon as impexp); drop cast (impexpbin as ST_Polygon); drop cast (ST_Polygon as impexpbin); drop function ST_PolyIn(lvarchar); drop function ST_PolyOut(ST_Polygon); drop function ST_PolySend(ST_Polygon); drop function ST_PolyRecv(sendrecv); drop function ST_PolyImpT(impexp); drop function ST_PolyExpT(ST_Polygon); drop function ST_PolyImpB(impexpbin); drop function ST_PolyExpB(ST_Polygon); drop function Assign(ST_Polygon); drop procedure Destroy(ST_Polygon); drop function LOhandles(ST_Polygon); drop function SE_PolyFromSde(lvarchar,lvarchar,integer); drop function SE_PolyFromShape(lvarchar,integer); drop function ST_PolyFromText(lvarchar,integer); drop function ST_PolyFromWKB(lvarchar,integer); drop function ST_Polygon(ST_LineString); drop function ST_ExteriorRing(ST_Polygon); drop function ST_InteriorRingN(ST_Polygon,integer); drop function ST_NumInteriorRing(ST_Polygon); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "polygon.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "linestring.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_LineIn(lvarchar) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineIn)' language c; create function ST_LineOut(ST_LineString) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_LineSend(ST_LineString) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_LineRecv(sendrecv) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineRecv)' language c; create function ST_LineImpT(impexp) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineIn)' language c; create function ST_LineExpT(ST_LineString) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_LineImpB(impexpbin) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineRecv)' language c; create function ST_LineExpB(ST_LineString) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_LineString) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_LineString) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_LineString) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function SE_LineFromSde(lvarchar,lvarchar,integer) returns ST_LineString with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromSde)' language c; create function SE_LineFromShape(lvarchar,integer) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromShape)' language c; create function ST_LineFromText(lvarchar,integer) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromText)' language c; create function ST_LineFromWKB(lvarchar,integer) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromWKB)' language c; create function ST_Length(ST_Curve) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthCurve)' language c; create function ST_PointN(ST_LineString,integer) returns ST_Point with (not variant, parallelizable, percall_cost=50) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointN)' language c; create function SE_Midpoint(ST_LineString) returns ST_Point with (not variant, parallelizable, percall_cost=50) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Midpoint)' language c; grant execute on function ST_LineIn (lvarchar) to public; grant execute on function ST_LineOut (ST_LineString) to public; grant execute on function ST_LineSend (ST_LineString) to public; grant execute on function ST_LineRecv (sendrecv) to public; grant execute on function ST_LineImpT (impexp) to public; grant execute on function ST_LineExpT (ST_LineString) to public; grant execute on function ST_LineImpB (impexpbin) to public; grant execute on function ST_LineExpB (ST_LineString) to public; grant execute on function Assign (ST_LineString) to public; grant execute on procedure Destroy (ST_LineString) to public; grant execute on function LOhandles (ST_LineString) to public; grant execute on function SE_LineFromSde (lvarchar,lvarchar,integer) to public; grant execute on function SE_LineFromShape (lvarchar,integer) to public; grant execute on function ST_LineFromText (lvarchar,integer) to public; grant execute on function ST_LineFromWKB (lvarchar,integer) to public; grant execute on function ST_Length (ST_Curve) to public; grant execute on function ST_PointN (ST_LineString,integer) to public; grant execute on function SE_Midpoint (ST_LineString) to public; create implicit cast (lvarchar as ST_LineString with ST_LineIn); create explicit cast (ST_LineString as lvarchar with ST_LineOut); create explicit cast (ST_LineString as sendrecv with ST_LineSend); create implicit cast (sendrecv as ST_LineString with ST_LineRecv); create implicit cast (impexp as ST_LineString with ST_LineImpT); create explicit cast (ST_LineString as impexp with ST_LineExpT); create implicit cast (impexpbin as ST_LineString with ST_LineImpB); create explicit cast (ST_LineString as impexpbin with ST_LineExpB); ", "f", " drop cast (lvarchar as ST_LineString); drop cast (ST_LineString as lvarchar); drop cast (ST_LineString as sendrecv); drop cast (sendrecv as ST_LineString); drop cast (impexp as ST_LineString); drop cast (ST_LineString as impexp); drop cast (impexpbin as ST_LineString); drop cast (ST_LineString as impexpbin); drop function ST_LineIn(lvarchar); drop function ST_LineOut(ST_LineString); drop function ST_LineSend(ST_LineString); drop function ST_LineRecv(sendrecv); drop function ST_LineImpT(impexp); drop function ST_LineExpT(ST_LineString); drop function ST_LineImpB(impexpbin); drop function ST_LineExpB(ST_LineString); drop function Assign(ST_LineString); drop procedure Destroy(ST_LineString); drop function LOhandles(ST_LineString); drop function SE_LineFromSde(lvarchar,lvarchar,integer); drop function SE_LineFromShape(lvarchar,integer); drop function ST_LineFromText(lvarchar,integer); drop function ST_LineFromWKB(lvarchar,integer); drop function ST_Length(ST_Curve); drop function ST_PointN(ST_LineString,integer); drop function SE_Midpoint(ST_LineString); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "linestring.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "mlinestring.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_MLineIn(lvarchar) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineIn)' language c; create function ST_MLineOut(ST_MultiLineString) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_MLineSend(ST_MultiLineString) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_MLineRecv(sendrecv) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineRecv)' language c; create function ST_MLineImpT(impexp) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineIn)' language c; create function ST_MLineExpT(ST_MultiLineString) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_MLineImpB(impexpbin) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineRecv)' language c; create function ST_MLineExpB(ST_MultiLineString) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_MultiLineString) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_MultiLineString) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_MultiLineString) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function SE_MLineFromSde(lvarchar,lvarchar,integer) returns ST_MultiLineString with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromSde)' language c; create function SE_MLineFromShape(lvarchar,integer) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromShape)' language c; create function ST_MLineFromText(lvarchar,integer) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromText)' language c; create function ST_MLineFromWKB(lvarchar,integer) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromWKB)' language c; create function ST_Length(ST_MultiCurve) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthMultiCurve)' language c; grant execute on function ST_MLineIn (lvarchar) to public; grant execute on function ST_MLineOut (ST_MultiLineString) to public; grant execute on function ST_MLineSend (ST_MultiLineString) to public; grant execute on function ST_MLineRecv (sendrecv) to public; grant execute on function ST_MLineImpT (impexp) to public; grant execute on function ST_MLineExpT (ST_MultiLineString) to public; grant execute on function ST_MLineImpB (impexpbin) to public; grant execute on function ST_MLineExpB (ST_MultiLineString) to public; grant execute on function Assign (ST_MultiLineString) to public; grant execute on procedure Destroy (ST_MultiLineString) to public; grant execute on function LOhandles (ST_MultiLineString) to public; grant execute on function SE_MLineFromSde (lvarchar,lvarchar,integer) to public; grant execute on function SE_MLineFromShape (lvarchar,integer) to public; grant execute on function ST_MLineFromText (lvarchar,integer) to public; grant execute on function ST_MLineFromWKB (lvarchar,integer) to public; grant execute on function ST_Length (ST_MultiCurve) to public; create implicit cast (lvarchar as ST_MultiLineString with ST_MLineIn); create explicit cast (ST_MultiLineString as lvarchar with ST_MLineOut); create explicit cast (ST_MultiLineString as sendrecv with ST_MLineSend); create implicit cast (sendrecv as ST_MultiLineString with ST_MLineRecv); create implicit cast (impexp as ST_MultiLineString with ST_MLineImpT); create explicit cast (ST_MultiLineString as impexp with ST_MLineExpT); create implicit cast (impexpbin as ST_MultiLineString with ST_MLineImpB); create explicit cast (ST_MultiLineString as impexpbin with ST_MLineExpB); ", "f", " drop cast (lvarchar as ST_MultiLineString); drop cast (ST_MultiLineString as lvarchar); drop cast (ST_MultiLineString as sendrecv); drop cast (sendrecv as ST_MultiLineString); drop cast (impexp as ST_MultiLineString); drop cast (ST_MultiLineString as impexp); drop cast (impexpbin as ST_MultiLineString); drop cast (ST_MultiLineString as impexpbin); drop function ST_MLineIn(lvarchar); drop function ST_MLineOut(ST_MultiLineString); drop function ST_MLineSend(ST_MultiLineString); drop function ST_MLineRecv(sendrecv); drop function ST_MLineImpT(impexp); drop function ST_MLineExpT(ST_MultiLineString); drop function ST_MLineImpB(impexpbin); drop function ST_MLineExpB(ST_MultiLineString); drop function Assign(ST_MultiLineString); drop procedure Destroy(ST_MultiLineString); drop function LOhandles(ST_MultiLineString); drop function SE_MLineFromSde(lvarchar,lvarchar,integer); drop function SE_MLineFromShape(lvarchar,integer); drop function ST_MLineFromText(lvarchar,integer); drop function ST_MLineFromWKB(lvarchar,integer); drop function ST_Length(ST_MultiCurve); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "mlinestring.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "mpoint.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_MPointIn(lvarchar) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointIn)' language c; create function ST_MPointOut(ST_MultiPoint) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_MPointSend(ST_MultiPoint) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_MPointRecv(sendrecv) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointRecv)' language c; create function ST_MPointImpT(impexp) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointIn)' language c; create function ST_MPointExpT(ST_MultiPoint) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_MPointImpB(impexpbin) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointRecv)' language c; create function ST_MPointExpB(ST_MultiPoint) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_MultiPoint) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_MultiPoint) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_MultiPoint) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function SE_MPointFromSde(lvarchar,lvarchar,integer) returns ST_MultiPoint with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromSde)' language c; create function SE_MPointFromShape(lvarchar,integer) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromShape)' language c; create function ST_MPointFromText(lvarchar,integer) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromText)' language c; create function ST_MPointFromWKB(lvarchar,integer) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromWKB)' language c; grant execute on function ST_MPointIn (lvarchar) to public; grant execute on function ST_MPointOut (ST_MultiPoint) to public; grant execute on function ST_MPointSend (ST_MultiPoint) to public; grant execute on function ST_MPointRecv (sendrecv) to public; grant execute on function ST_MPointImpT (impexp) to public; grant execute on function ST_MPointExpT (ST_MultiPoint) to public; grant execute on function ST_MPointImpB (impexpbin) to public; grant execute on function ST_MPointExpB (ST_MultiPoint) to public; grant execute on function Assign (ST_MultiPoint) to public; grant execute on procedure Destroy (ST_MultiPoint) to public; grant execute on function LOhandles (ST_MultiPoint) to public; grant execute on function SE_MPointFromSde (lvarchar,lvarchar,integer) to public; grant execute on function SE_MPointFromShape (lvarchar,integer) to public; grant execute on function ST_MPointFromText (lvarchar,integer) to public; grant execute on function ST_MPointFromWKB (lvarchar,integer) to public; create implicit cast (lvarchar as ST_MultiPoint with ST_MPointIn); create explicit cast (ST_MultiPoint as lvarchar with ST_MPointOut); create explicit cast (ST_MultiPoint as sendrecv with ST_MPointSend); create implicit cast (sendrecv as ST_MultiPoint with ST_MPointRecv); create implicit cast (impexp as ST_MultiPoint with ST_MPointImpT); create explicit cast (ST_MultiPoint as impexp with ST_MPointExpT); create implicit cast (impexpbin as ST_MultiPoint with ST_MPointImpB); create explicit cast (ST_MultiPoint as impexpbin with ST_MPointExpB); ", "f", " drop cast (lvarchar as ST_MultiPoint); drop cast (ST_MultiPoint as lvarchar); drop cast (ST_MultiPoint as sendrecv); drop cast (sendrecv as ST_MultiPoint); drop cast (impexp as ST_MultiPoint); drop cast (ST_MultiPoint as impexp); drop cast (impexpbin as ST_MultiPoint); drop cast (ST_MultiPoint as impexpbin); drop function ST_MPointIn(lvarchar); drop function ST_MPointOut(ST_MultiPoint); drop function ST_MPointSend(ST_MultiPoint); drop function ST_MPointRecv(sendrecv); drop function ST_MPointImpT(impexp); drop function ST_MPointExpT(ST_MultiPoint); drop function ST_MPointImpB(impexpbin); drop function ST_MPointExpB(ST_MultiPoint); drop function Assign(ST_MultiPoint); drop procedure Destroy(ST_MultiPoint); drop function LOhandles(ST_MultiPoint); drop function SE_MPointFromSde(lvarchar,lvarchar,integer); drop function SE_MPointFromShape(lvarchar,integer); drop function ST_MPointFromText(lvarchar,integer); drop function ST_MPointFromWKB(lvarchar,integer); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "mpoint.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "mpolygon.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_MPolyIn(lvarchar) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyIn)' language c; create function ST_MPolyOut(ST_MultiPolygon) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_MPolySend(ST_MultiPolygon) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_MPolyRecv(sendrecv) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyRecv)' language c; create function ST_MPolyImpT(impexp) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyIn)' language c; create function ST_MPolyExpT(ST_MultiPolygon) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_MPolyImpB(impexpbin) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyRecv)' language c; create function ST_MPolyExpB(ST_MultiPolygon) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_MultiPolygon) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_MultiPolygon) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_MultiPolygon) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function SE_MPolyFromSde(lvarchar,lvarchar,integer) returns ST_MultiPolygon with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromSde)' language c; create function SE_MPolyFromShape(lvarchar,integer) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromShape)' language c; create function ST_MPolyFromText(lvarchar,integer) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromText)' language c; create function ST_MPolyFromWKB(lvarchar,integer) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromWKB)' language c; grant execute on function ST_MPolyIn (lvarchar) to public; grant execute on function ST_MPolyOut (ST_MultiPolygon) to public; grant execute on function ST_MPolySend (ST_MultiPolygon) to public; grant execute on function ST_MPolyRecv (sendrecv) to public; grant execute on function ST_MPolyImpT (impexp) to public; grant execute on function ST_MPolyExpT (ST_MultiPolygon) to public; grant execute on function ST_MPolyImpB (impexpbin) to public; grant execute on function ST_MPolyExpB (ST_MultiPolygon) to public; grant execute on function Assign (ST_MultiPolygon) to public; grant execute on procedure Destroy (ST_MultiPolygon) to public; grant execute on function LOhandles (ST_MultiPolygon) to public; grant execute on function SE_MPolyFromSde (lvarchar,lvarchar,integer) to public; grant execute on function SE_MPolyFromShape (lvarchar,integer) to public; grant execute on function ST_MPolyFromText (lvarchar,integer) to public; grant execute on function ST_MPolyFromWKB (lvarchar,integer) to public; create implicit cast (lvarchar as ST_MultiPolygon with ST_MPolyIn); create explicit cast (ST_MultiPolygon as lvarchar with ST_MPolyOut); create explicit cast (ST_MultiPolygon as sendrecv with ST_MPolySend); create implicit cast (sendrecv as ST_MultiPolygon with ST_MPolyRecv); create implicit cast (impexp as ST_MultiPolygon with ST_MPolyImpT); create explicit cast (ST_MultiPolygon as impexp with ST_MPolyExpT); create implicit cast (impexpbin as ST_MultiPolygon with ST_MPolyImpB); create explicit cast (ST_MultiPolygon as impexpbin with ST_MPolyExpB); ", "f", " drop cast (lvarchar as ST_MultiPolygon); drop cast (ST_MultiPolygon as lvarchar); drop cast (ST_MultiPolygon as sendrecv); drop cast (sendrecv as ST_MultiPolygon); drop cast (impexp as ST_MultiPolygon); drop cast (ST_MultiPolygon as impexp); drop cast (impexpbin as ST_MultiPolygon); drop cast (ST_MultiPolygon as impexpbin); drop function ST_MPolyIn(lvarchar); drop function ST_MPolyOut(ST_MultiPolygon); drop function ST_MPolySend(ST_MultiPolygon); drop function ST_MPolyRecv(sendrecv); drop function ST_MPolyImpT(impexp); drop function ST_MPolyExpT(ST_MultiPolygon); drop function ST_MPolyImpB(impexpbin); drop function ST_MPolyExpB(ST_MultiPolygon); drop function Assign(ST_MultiPolygon); drop procedure Destroy(ST_MultiPolygon); drop function LOhandles(ST_MultiPolygon); drop function SE_MPolyFromSde(lvarchar,lvarchar,integer); drop function SE_MPolyFromShape(lvarchar,integer); drop function ST_MPolyFromText(lvarchar,integer); drop function ST_MPolyFromWKB(lvarchar,integer); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "mpolygon.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "surface.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_SurfaceIn(lvarchar) returns ST_Surface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceIn)' language c; create function ST_SurfaceOut(ST_Surface) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_SurfaceSend(ST_Surface) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_SurfaceRecv(sendrecv) returns ST_Surface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceRecv)' language c; create function ST_SurfaceImpT(impexp) returns ST_Surface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceIn)' language c; create function ST_SurfaceExpT(ST_Surface) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_SurfaceImpB(impexpbin) returns ST_Surface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceRecv)' language c; create function ST_SurfaceExpB(ST_Surface) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_Surface) returns ST_Surface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_Surface) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_Surface) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function ST_Area(ST_Surface) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaSurface)' language c; create function ST_Centroid(ST_Surface) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CentroidSurface)' language c; create function ST_Perimeter(ST_Surface) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterSurface)' language c; create function ST_PointOnSurface(ST_Surface) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointOnSurface)' language c; grant execute on function ST_SurfaceIn (lvarchar) to public; grant execute on function ST_SurfaceOut (ST_Surface) to public; grant execute on function ST_SurfaceSend (ST_Surface) to public; grant execute on function ST_SurfaceRecv (sendrecv) to public; grant execute on function ST_SurfaceImpT (impexp) to public; grant execute on function ST_SurfaceExpT (ST_Surface) to public; grant execute on function ST_SurfaceImpB (impexpbin) to public; grant execute on function ST_SurfaceExpB (ST_Surface) to public; grant execute on function Assign (ST_Surface) to public; grant execute on procedure Destroy (ST_Surface) to public; grant execute on function LOhandles (ST_Surface) to public; grant execute on function ST_Area (ST_Surface) to public; grant execute on function ST_Centroid (ST_Surface) to public; grant execute on function ST_Perimeter (ST_Surface) to public; grant execute on function ST_PointOnSurface (ST_Surface) to public; create implicit cast (lvarchar as ST_Surface with ST_SurfaceIn); create explicit cast (ST_Surface as lvarchar with ST_SurfaceOut); create explicit cast (ST_Surface as sendrecv with ST_SurfaceSend); create implicit cast (sendrecv as ST_Surface with ST_SurfaceRecv); create implicit cast (impexp as ST_Surface with ST_SurfaceImpT); create explicit cast (ST_Surface as impexp with ST_SurfaceExpT); create implicit cast (impexpbin as ST_Surface with ST_SurfaceImpB); create explicit cast (ST_Surface as impexpbin with ST_SurfaceExpB); ", "f", " drop cast (lvarchar as ST_Surface); drop cast (ST_Surface as lvarchar); drop cast (ST_Surface as sendrecv); drop cast (sendrecv as ST_Surface); drop cast (impexp as ST_Surface); drop cast (ST_Surface as impexp); drop cast (impexpbin as ST_Surface); drop cast (ST_Surface as impexpbin); drop function ST_SurfaceIn(lvarchar); drop function ST_SurfaceOut(ST_Surface); drop function ST_SurfaceSend(ST_Surface); drop function ST_SurfaceRecv(sendrecv); drop function ST_SurfaceImpT(impexp); drop function ST_SurfaceExpT(ST_Surface); drop function ST_SurfaceImpB(impexpbin); drop function ST_SurfaceExpB(ST_Surface); drop function Assign(ST_Surface); drop procedure Destroy(ST_Surface); drop function LOhandles(ST_Surface); drop function ST_Area(ST_Surface); drop function ST_Centroid(ST_Surface); drop function ST_Perimeter(ST_Surface); drop function ST_PointOnSurface(ST_Surface); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "surface.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "msurface.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_MSurfaceIn(lvarchar) returns ST_MultiSurface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceIn)' language c; create function ST_MSurfaceOut(ST_MultiSurface) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_MSurfaceSend(ST_MultiSurface) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_MSurfaceRecv(sendrecv) returns ST_MultiSurface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceRecv)' language c; create function ST_MSurfaceImpT(impexp) returns ST_MultiSurface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceIn)' language c; create function ST_MSurfaceExpT(ST_MultiSurface) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_MSurfaceImpB(impexpbin) returns ST_MultiSurface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceRecv)' language c; create function ST_MSurfaceExpB(ST_MultiSurface) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_MultiSurface) returns ST_MultiSurface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_MultiSurface) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_MultiSurface) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function ST_Area(ST_MultiSurface) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaMultiSurface)' language c; create function ST_Centroid(ST_MultiSurface) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CentroidMultiSurface)' language c; create function ST_Perimeter(ST_MultiSurface) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterMultiSurface)' language c; create function ST_PointOnSurface(ST_MultiSurface) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointOnMultiSurface)' language c; grant execute on function ST_MSurfaceIn (lvarchar) to public; grant execute on function ST_MSurfaceOut (ST_MultiSurface) to public; grant execute on function ST_MSurfaceSend (ST_MultiSurface) to public; grant execute on function ST_MSurfaceRecv (sendrecv) to public; grant execute on function ST_MSurfaceImpT (impexp) to public; grant execute on function ST_MSurfaceExpT (ST_MultiSurface) to public; grant execute on function ST_MSurfaceImpB (impexpbin) to public; grant execute on function ST_MSurfaceExpB (ST_MultiSurface) to public; grant execute on function Assign (ST_MultiSurface) to public; grant execute on procedure Destroy (ST_MultiSurface) to public; grant execute on function LOhandles (ST_MultiSurface) to public; grant execute on function ST_Area (ST_MultiSurface) to public; grant execute on function ST_Centroid (ST_MultiSurface) to public; grant execute on function ST_Perimeter (ST_MultiSurface) to public; grant execute on function ST_PointOnSurface (ST_MultiSurface) to public; create implicit cast (lvarchar as ST_MultiSurface with ST_MSurfaceIn); create explicit cast (ST_MultiSurface as lvarchar with ST_MSurfaceOut); create explicit cast (ST_MultiSurface as sendrecv with ST_MSurfaceSend); create implicit cast (sendrecv as ST_MultiSurface with ST_MSurfaceRecv); create implicit cast (impexp as ST_MultiSurface with ST_MSurfaceImpT); create explicit cast (ST_MultiSurface as impexp with ST_MSurfaceExpT); create implicit cast (impexpbin as ST_MultiSurface with ST_MSurfaceImpB); create explicit cast (ST_MultiSurface as impexpbin with ST_MSurfaceExpB); ", "f", " drop cast (lvarchar as ST_MultiSurface); drop cast (ST_MultiSurface as lvarchar); drop cast (ST_MultiSurface as sendrecv); drop cast (sendrecv as ST_MultiSurface); drop cast (impexp as ST_MultiSurface); drop cast (ST_MultiSurface as impexp); drop cast (impexpbin as ST_MultiSurface); drop cast (ST_MultiSurface as impexpbin); drop function ST_MSurfaceIn(lvarchar); drop function ST_MSurfaceOut(ST_MultiSurface); drop function ST_MSurfaceSend(ST_MultiSurface); drop function ST_MSurfaceRecv(sendrecv); drop function ST_MSurfaceImpT(impexp); drop function ST_MSurfaceExpT(ST_MultiSurface); drop function ST_MSurfaceImpB(impexpbin); drop function ST_MSurfaceExpB(ST_MultiSurface); drop function Assign(ST_MultiSurface); drop procedure Destroy(ST_MultiSurface); drop function LOhandles(ST_MultiSurface); drop function ST_Area(ST_MultiSurface); drop function ST_Centroid(ST_MultiSurface); drop function ST_Perimeter(ST_MultiSurface); drop function ST_PointOnSurface(ST_MultiSurface); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "msurface.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "curve.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_CurveIn(lvarchar) returns ST_Curve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveIn)' language c; create function ST_CurveOut(ST_Curve) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_CurveSend(ST_Curve) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_CurveRecv(sendrecv) returns ST_Curve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveRecv)' language c; create function ST_CurveImpT(impexp) returns ST_Curve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveIn)' language c; create function ST_CurveExpT(ST_Curve) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_CurveImpB(impexpbin) returns ST_Curve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveRecv)' language c; create function ST_CurveExpB(ST_Curve) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_Curve) returns ST_Curve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_Curve) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_Curve) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function ST_EndPoint(ST_Curve) returns ST_Point with (not variant, parallelizable, percall_cost=100) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_EndPoint)' language c; create function ST_IsClosed(ST_Curve) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsClosedCurve)' language c; create function ST_IsRing(ST_Curve) returns boolean with (not variant, parallelizable, percall_cost=200) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsRing)' language c; create function ST_StartPoint(ST_Curve) returns ST_Point with (not variant, parallelizable, percall_cost=50) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_StartPoint)' language c; grant execute on function ST_CurveIn (lvarchar) to public; grant execute on function ST_CurveOut (ST_Curve) to public; grant execute on function ST_CurveSend (ST_Curve) to public; grant execute on function ST_CurveRecv (sendrecv) to public; grant execute on function ST_CurveImpT (impexp) to public; grant execute on function ST_CurveExpT (ST_Curve) to public; grant execute on function ST_CurveImpB (impexpbin) to public; grant execute on function ST_CurveExpB (ST_Curve) to public; grant execute on function Assign (ST_Curve) to public; grant execute on procedure Destroy (ST_Curve) to public; grant execute on function LOhandles (ST_Curve) to public; grant execute on function ST_EndPoint (ST_Curve) to public; grant execute on function ST_IsClosed (ST_Curve) to public; grant execute on function ST_IsRing (ST_Curve) to public; grant execute on function ST_StartPoint (ST_Curve) to public; create implicit cast (lvarchar as ST_Curve with ST_CurveIn); create explicit cast (ST_Curve as lvarchar with ST_CurveOut); create explicit cast (ST_Curve as sendrecv with ST_CurveSend); create implicit cast (sendrecv as ST_Curve with ST_CurveRecv); create implicit cast (impexp as ST_Curve with ST_CurveImpT); create explicit cast (ST_Curve as impexp with ST_CurveExpT); create implicit cast (impexpbin as ST_Curve with ST_CurveImpB); create explicit cast (ST_Curve as impexpbin with ST_CurveExpB); ", "f", " drop cast (lvarchar as ST_Curve); drop cast (ST_Curve as lvarchar); drop cast (ST_Curve as sendrecv); drop cast (sendrecv as ST_Curve); drop cast (impexp as ST_Curve); drop cast (ST_Curve as impexp); drop cast (impexpbin as ST_Curve); drop cast (ST_Curve as impexpbin); drop function ST_CurveIn(lvarchar); drop function ST_CurveOut(ST_Curve); drop function ST_CurveSend(ST_Curve); drop function ST_CurveRecv(sendrecv); drop function ST_CurveImpT(impexp); drop function ST_CurveExpT(ST_Curve); drop function ST_CurveImpB(impexpbin); drop function ST_CurveExpB(ST_Curve); drop function Assign(ST_Curve); drop procedure Destroy(ST_Curve); drop function LOhandles(ST_Curve); drop function ST_EndPoint(ST_Curve); drop function ST_IsClosed(ST_Curve); drop function ST_IsRing(ST_Curve); drop function ST_StartPoint(ST_Curve); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "curve.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "mcurve.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_MCurveIn(lvarchar) returns ST_MultiCurve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveIn)' language c; create function ST_MCurveOut(ST_MultiCurve) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_MCurveSend(ST_MultiCurve) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_MCurveRecv(sendrecv) returns ST_MultiCurve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveRecv)' language c; create function ST_MCurveImpT(impexp) returns ST_MultiCurve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveIn)' language c; create function ST_MCurveExpT(ST_MultiCurve) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_MCurveImpB(impexpbin) returns ST_MultiCurve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveRecv)' language c; create function ST_MCurveExpB(ST_MultiCurve) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_MultiCurve) returns ST_MultiCurve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_MultiCurve) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_MultiCurve) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function ST_IsClosed(ST_MultiCurve) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsClosedMultiCurve)' language c; grant execute on function ST_MCurveIn (lvarchar) to public; grant execute on function ST_MCurveOut (ST_MultiCurve) to public; grant execute on function ST_MCurveSend (ST_MultiCurve) to public; grant execute on function ST_MCurveRecv (sendrecv) to public; grant execute on function ST_MCurveImpT (impexp) to public; grant execute on function ST_MCurveExpT (ST_MultiCurve) to public; grant execute on function ST_MCurveImpB (impexpbin) to public; grant execute on function ST_MCurveExpB (ST_MultiCurve) to public; grant execute on function Assign (ST_MultiCurve) to public; grant execute on procedure Destroy (ST_MultiCurve) to public; grant execute on function LOhandles (ST_MultiCurve) to public; grant execute on function ST_IsClosed (ST_MultiCurve) to public; create implicit cast (lvarchar as ST_MultiCurve with ST_MCurveIn); create explicit cast (ST_MultiCurve as lvarchar with ST_MCurveOut); create explicit cast (ST_MultiCurve as sendrecv with ST_MCurveSend); create implicit cast (sendrecv as ST_MultiCurve with ST_MCurveRecv); create implicit cast (impexp as ST_MultiCurve with ST_MCurveImpT); create explicit cast (ST_MultiCurve as impexp with ST_MCurveExpT); create implicit cast (impexpbin as ST_MultiCurve with ST_MCurveImpB); create explicit cast (ST_MultiCurve as impexpbin with ST_MCurveExpB); ", "f", " drop cast (lvarchar as ST_MultiCurve); drop cast (ST_MultiCurve as lvarchar); drop cast (ST_MultiCurve as sendrecv); drop cast (sendrecv as ST_MultiCurve); drop cast (impexp as ST_MultiCurve); drop cast (ST_MultiCurve as impexp); drop cast (impexpbin as ST_MultiCurve); drop cast (ST_MultiCurve as impexpbin); drop function ST_MCurveIn(lvarchar); drop function ST_MCurveOut(ST_MultiCurve); drop function ST_MCurveSend(ST_MultiCurve); drop function ST_MCurveRecv(sendrecv); drop function ST_MCurveImpT(impexp); drop function ST_MCurveExpT(ST_MultiCurve); drop function ST_MCurveImpB(impexpbin); drop function ST_MCurveExpB(ST_MultiCurve); drop function Assign(ST_MultiCurve); drop procedure Destroy(ST_MultiCurve); drop function LOhandles(ST_MultiCurve); drop function ST_IsClosed(ST_MultiCurve); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "mcurve.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "geomcoll.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function ST_GeomCollIn(lvarchar) returns ST_GeomCollection with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollIn)' language c; create function ST_GeomCollOut(ST_GeomCollection) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)' language c; create function ST_GeomCollSend(ST_GeomCollection) returns sendrecv with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function ST_GeomCollRecv(sendrecv) returns ST_GeomCollection with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollRecv)' language c; create function ST_GeomCollImpT(impexp) returns ST_GeomCollection with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollIn)' language c; create function ST_GeomCollExpT(ST_GeomCollection) returns impexp with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)' language c; create function ST_GeomCollImpB(impexpbin) returns ST_GeomCollection with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollRecv)' language c; create function ST_GeomCollExpB(ST_GeomCollection) returns impexpbin with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)' language c; create function Assign(ST_GeomCollection) returns ST_GeomCollection with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)' language c; create procedure Destroy(ST_GeomCollection) with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)' language c; create function LOhandles(ST_GeomCollection) returns lolist with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)' language c; create function ST_NumGeometries(ST_GeomCollection) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_NumGeometries)' language c; create function ST_GeometryN(ST_GeomCollection,integer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeometryN)' language c; grant execute on function ST_GeomCollIn (lvarchar) to public; grant execute on function ST_GeomCollOut (ST_GeomCollection) to public; grant execute on function ST_GeomCollSend (ST_GeomCollection) to public; grant execute on function ST_GeomCollRecv (sendrecv) to public; grant execute on function ST_GeomCollImpT (impexp) to public; grant execute on function ST_GeomCollExpT (ST_GeomCollection) to public; grant execute on function ST_GeomCollImpB (impexpbin) to public; grant execute on function ST_GeomCollExpB (ST_GeomCollection) to public; grant execute on function Assign (ST_GeomCollection) to public; grant execute on procedure Destroy (ST_GeomCollection) to public; grant execute on function LOhandles (ST_GeomCollection) to public; grant execute on function ST_NumGeometries (ST_GeomCollection) to public; grant execute on function ST_GeometryN (ST_GeomCollection,integer) to public; create implicit cast (lvarchar as ST_GeomCollection with ST_GeomCollIn); create explicit cast (ST_GeomCollection as lvarchar with ST_GeomCollOut); create explicit cast (ST_GeomCollection as sendrecv with ST_GeomCollSend); create implicit cast (sendrecv as ST_GeomCollection with ST_GeomCollRecv); create implicit cast (impexp as ST_GeomCollection with ST_GeomCollImpT); create explicit cast (ST_GeomCollection as impexp with ST_GeomCollExpT); create implicit cast (impexpbin as ST_GeomCollection with ST_GeomCollImpB); create explicit cast (ST_GeomCollection as impexpbin with ST_GeomCollExpB); ", "f", " drop cast (lvarchar as ST_GeomCollection); drop cast (ST_GeomCollection as lvarchar); drop cast (ST_GeomCollection as sendrecv); drop cast (sendrecv as ST_GeomCollection); drop cast (impexp as ST_GeomCollection); drop cast (ST_GeomCollection as impexp); drop cast (impexpbin as ST_GeomCollection); drop cast (ST_GeomCollection as impexpbin); drop function ST_GeomCollIn(lvarchar); drop function ST_GeomCollOut(ST_GeomCollection); drop function ST_GeomCollSend(ST_GeomCollection); drop function ST_GeomCollRecv(sendrecv); drop function ST_GeomCollImpT(impexp); drop function ST_GeomCollExpT(ST_GeomCollection); drop function ST_GeomCollImpB(impexpbin); drop function ST_GeomCollExpB(ST_GeomCollection); drop function Assign(ST_GeomCollection); drop procedure Destroy(ST_GeomCollection); drop function LOhandles(ST_GeomCollection); drop function ST_GeometryN(ST_GeomCollection,integer); drop function ST_NumGeometries(ST_GeomCollection); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "geomcoll.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "geomfuncs.sql", "%SYSBLDUSER%", 0, "create function Compare(ST_Geometry,ST_Geometry) returns int with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryCompare)' language c; create function NotEqual(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryNotEqual)' language c; create function SE_Anno_Text(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Anno_Text)' language c; create function SE_Area(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Area)' language c; create function ST_AsBinary(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsBinary)' language c; create function ST_AsText(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsText)' language c; create function SE_AsShape(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsShape)' language c; create function SE_AsSde(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsSde)' language c; create function ST_Boundary(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Boundary)' language c; create function ST_Buffer(ST_Geometry,float) returns ST_Geometry with (not variant, parallelizable, percall_cost=8000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Buffer)' language c; create function ST_ConvexHull(ST_Geometry) returns ST_Geometry with (not variant, parallelizable, percall_cost=1000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ConvexHull)' language c; create function ST_CoordDim(ST_Geometry) returns int with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CoordDim)' language c; create function ST_Difference(ST_Geometry,ST_Geometry) returns ST_Geometry with (not variant, parallelizable, percall_cost=8000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Difference)' language c; create function ST_Dimension(ST_Geometry) returns int with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Dimension)' language c; create function ST_Disjoint(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=1000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Disjoint)' language c; create function ST_Distance(ST_Geometry,ST_Geometry) returns float with (not variant, parallelizable, percall_cost=300) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Distance)' language c; create function ST_Envelope(ST_Geometry) returns ST_Geometry with (not variant, parallelizable, percall_cost=50) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Envelope)' language c; create function SE_Generalize(ST_Geometry,float) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Generalize)' language c; create function ST_GeometryType(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeometryType)' language c; create function ST_Intersection(ST_Geometry,ST_Geometry) returns ST_Geometry with (not variant, parallelizable, percall_cost=8000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Intersection)' language c; create function SE_Is3D(ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Is3D)' language c; create function ST_IsEmpty(ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsEmpty)' language c; create function SE_IsMeasured(ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_IsMeasured)' language c; create function ST_IsSimple(ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsSimple)' language c; create function ST_IsValid(ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsValid)' language c; create function SE_Length(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Length)' language c; create function SE_LocateAlong(ST_Geometry,float) returns ST_Geometry with (not variant, parallelizable, percall_cost=5000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateAlong)' language c; create function SE_LocateBetween(ST_Geometry,float,float) returns ST_Geometry with (not variant, parallelizable, percall_cost=500) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateBetween)' language c; create function SE_Mmax(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmax)' language c; create function SE_Mmin(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmin)' language c; create function ST_NumPoints(ST_Geometry) returns int with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_NumPoints)' language c; create function ST_Relate(ST_Geometry,ST_Geometry,lvarchar) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Relate)' language c; create function SE_SdeEntity(ST_Geometry) returns int with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SdeEntity)' language c; create function SE_SpatialKey(ST_Geometry) returns int8 with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpatialKey)' language c; create function ST_SRID(ST_Geometry) returns int with (not variant, parallelizable, percall_cost=10) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SRID)' language c; create function SE_SRID_Authority(integer) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SRID_Authority)' language c; create function ST_SymDifference(ST_Geometry,ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SymDifference)' language c; create function ST_Union(ST_Geometry,ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Union)' language c; create function ST_Transform(ST_Geometry,int) returns ST_Geometry with (not variant, parallelizable, stack=90000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Transform)' language c; create function SE_Xmax(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmax)' language c; create function SE_Xmin(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmin)' language c; create function SE_Ymax(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymax)' language c; create function SE_Ymin(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymin)' language c; create function SE_Zmax(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmax)' language c; create function SE_Zmin(ST_Geometry) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmin)' language c; grant execute on function Compare (ST_Geometry,ST_Geometry) to public; grant execute on function NotEqual (ST_Geometry,ST_Geometry) to public; grant execute on function SE_Anno_Text (ST_Geometry) to public; grant execute on function SE_Area (ST_Geometry) to public; grant execute on function ST_AsBinary (ST_Geometry) to public; grant execute on function SE_AsShape (ST_Geometry) to public; grant execute on function SE_AsSde (ST_Geometry) to public; grant execute on function ST_AsText (ST_Geometry) to public; grant execute on function ST_Boundary (ST_Geometry) to public; grant execute on function ST_Buffer (ST_Geometry,float) to public; grant execute on function ST_ConvexHull (ST_Geometry) to public; grant execute on function ST_CoordDim (ST_Geometry) to public; grant execute on function ST_Difference (ST_Geometry,ST_Geometry) to public; grant execute on function ST_Dimension (ST_Geometry) to public; grant execute on function ST_Disjoint (ST_Geometry,ST_Geometry) to public; grant execute on function ST_Distance (ST_Geometry,ST_Geometry) to public; grant execute on function ST_Envelope (ST_Geometry) to public; grant execute on function SE_Generalize(ST_Geometry,float) to public; grant execute on function ST_GeometryType (ST_Geometry) to public; grant execute on function ST_Intersection (ST_Geometry,ST_Geometry) to public; grant execute on function SE_Is3D (ST_Geometry) to public; grant execute on function ST_IsEmpty (ST_Geometry) to public; grant execute on function SE_IsMeasured (ST_Geometry) to public; grant execute on function ST_IsSimple (ST_Geometry) to public; grant execute on function ST_IsValid (ST_Geometry) to public; grant execute on function SE_Length (ST_Geometry) to public; grant execute on function SE_LocateAlong (ST_Geometry,float) to public; grant execute on function SE_LocateBetween (ST_Geometry,float,float) to public; grant execute on function SE_Mmax (ST_Geometry) to public; grant execute on function SE_Mmin (ST_Geometry) to public; grant execute on function ST_NumPoints (ST_Geometry) to public; grant execute on function ST_Relate (ST_Geometry,ST_Geometry,lvarchar) to public; grant execute on function SE_SdeEntity (ST_Geometry) to public; grant execute on function SE_SpatialKey(ST_Geometry) to public; grant execute on function ST_SRID (ST_Geometry) to public; grant execute on function SE_SRID_Authority(integer) to public; grant execute on function ST_SymDifference (ST_Geometry,ST_Geometry) to public; grant execute on function ST_Union (ST_Geometry,ST_Geometry) to public; grant execute on function ST_Transform (ST_Geometry,int) to public; grant execute on function SE_Xmax (ST_Geometry) to public; grant execute on function SE_Xmin (ST_Geometry) to public; grant execute on function SE_Ymax (ST_Geometry) to public; grant execute on function SE_Ymin (ST_Geometry) to public; grant execute on function SE_Zmax (ST_Geometry) to public; grant execute on function SE_Zmin (ST_Geometry) to public; ", "f", " drop function Compare(ST_Geometry,ST_Geometry); drop function NotEqual(ST_Geometry,ST_Geometry); drop function SE_Anno_Text(ST_Geometry); drop function SE_Area(ST_Geometry); drop function ST_AsBinary(ST_Geometry); drop function SE_AsShape(ST_Geometry); drop function SE_AsSde(ST_Geometry); drop function ST_AsText(ST_Geometry); drop function ST_Boundary(ST_Geometry); drop function ST_Buffer(ST_Geometry,float); drop function ST_ConvexHull(ST_Geometry); drop function ST_CoordDim(ST_Geometry); drop function ST_Difference(ST_Geometry,ST_Geometry); drop function ST_Dimension(ST_Geometry); drop function ST_Disjoint(ST_Geometry,ST_Geometry); drop function ST_Distance(ST_Geometry,ST_Geometry); drop function ST_Envelope(ST_Geometry); drop function ST_GeometryType(ST_Geometry); drop function SE_Generalize(ST_Geometry,float); drop function ST_Intersection(ST_Geometry,ST_Geometry); drop function SE_Is3D(ST_Geometry); drop function ST_IsEmpty(ST_Geometry); drop function SE_IsMeasured(ST_Geometry); drop function ST_IsSimple(ST_Geometry); drop function ST_IsValid(ST_Geometry); drop function SE_Length(ST_Geometry); drop function SE_LocateAlong(ST_Geometry,float); drop function SE_LocateBetween(ST_Geometry,float,float); drop function SE_Mmax(ST_Geometry); drop function SE_Mmin(ST_Geometry); drop function ST_NumPoints(ST_Geometry); drop function ST_Relate(ST_Geometry,ST_Geometry,lvarchar); drop function SE_SdeEntity(ST_Geometry); drop function SE_SpatialKey(ST_Geometry); drop function ST_SRID(ST_Geometry); drop function SE_SRID_Authority(integer); drop function ST_SymDifference(ST_Geometry,ST_Geometry); drop function ST_Transform(ST_Geometry,int); drop function ST_Union(ST_Geometry,ST_Geometry); drop function SE_Xmax(ST_Geometry); drop function SE_Xmin(ST_Geometry); drop function SE_Ymax(ST_Geometry); drop function SE_Ymin(ST_Geometry); drop function SE_Zmax(ST_Geometry); drop function SE_Zmin(ST_Geometry); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "geomfuncs.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "updowncasts.sql", "%SYSBLDUSER%", 0, "create implicit cast (ST_Curve as ST_Geometry); create explicit cast (ST_Curve as ST_LineString); create explicit cast (ST_Geometry as ST_Curve); create explicit cast (ST_Geometry as ST_GeomCollection); create explicit cast (ST_Geometry as ST_LineString); create explicit cast (ST_Geometry as ST_MultiCurve); create explicit cast (ST_Geometry as ST_MultiLineString); create explicit cast (ST_Geometry as ST_MultiPoint); create explicit cast (ST_Geometry as ST_MultiPolygon); create explicit cast (ST_Geometry as ST_MultiSurface); create explicit cast (ST_Geometry as ST_Point); create explicit cast (ST_Geometry as ST_Polygon); create explicit cast (ST_Geometry as ST_Surface); create implicit cast (ST_GeomCollection as ST_Geometry); create explicit cast (ST_GeomCollection as ST_MultiCurve); create explicit cast (ST_GeomCollection as ST_MultiLineString); create explicit cast (ST_GeomCollection as ST_MultiPoint); create explicit cast (ST_GeomCollection as ST_MultiPolygon); create explicit cast (ST_GeomCollection as ST_MultiSurface); create implicit cast (ST_LineString as ST_Curve); create implicit cast (ST_LineString as ST_Geometry); create implicit cast (ST_MultiCurve as ST_Geometry); create implicit cast (ST_MultiCurve as ST_GeomCollection); create explicit cast (ST_MultiCurve as ST_MultiLineString); create implicit cast (ST_MultiLineString as ST_Geometry); create implicit cast (ST_MultiLineString as ST_GeomCollection); create implicit cast (ST_MultiLineString as ST_MultiCurve); create implicit cast (ST_MultiPoint as ST_Geometry); create implicit cast (ST_MultiPoint as ST_GeomCollection); create implicit cast (ST_MultiPolygon as ST_Geometry); create implicit cast (ST_MultiPolygon as ST_GeomCollection); create implicit cast (ST_MultiPolygon as ST_MultiSurface); create implicit cast (ST_MultiSurface as ST_Geometry); create implicit cast (ST_MultiSurface as ST_GeomCollection); create explicit cast (ST_MultiSurface as ST_MultiPolygon); create implicit cast (ST_Point as ST_Geometry); create implicit cast (ST_Polygon as ST_Geometry); create implicit cast (ST_Polygon as ST_Surface); create implicit cast (ST_Surface as ST_Geometry); create explicit cast (ST_Surface as ST_Polygon); ", "f", " drop cast (ST_Curve as ST_Geometry); drop cast (ST_GeomCollection as ST_Geometry); drop cast (ST_LineString as ST_Geometry); drop cast (ST_MultiCurve as ST_Geometry); drop cast (ST_Point as ST_Geometry); drop cast (ST_Polygon as ST_Geometry); drop cast (ST_Surface as ST_Geometry); drop cast (ST_MultiLineString as ST_Geometry); drop cast (ST_MultiPoint as ST_Geometry); drop cast (ST_MultiPolygon as ST_Geometry); drop cast (ST_MultiSurface as ST_Geometry); drop cast (ST_Geometry as ST_Curve); drop cast (ST_Geometry as ST_GeomCollection); drop cast (ST_Geometry as ST_LineString); drop cast (ST_Geometry as ST_MultiCurve); drop cast (ST_Geometry as ST_MultiLineString); drop cast (ST_Geometry as ST_MultiPoint); drop cast (ST_Geometry as ST_MultiPolygon); drop cast (ST_Geometry as ST_MultiSurface); drop cast (ST_Geometry as ST_Point); drop cast (ST_Geometry as ST_Polygon); drop cast (ST_Geometry as ST_Surface); drop cast (ST_Curve as ST_LineString); drop cast (ST_LineString as ST_Curve); drop cast (ST_GeomCollection as ST_MultiCurve); drop cast (ST_GeomCollection as ST_MultiLineString); drop cast (ST_GeomCollection as ST_MultiPoint); drop cast (ST_GeomCollection as ST_MultiPolygon); drop cast (ST_GeomCollection as ST_MultiSurface); drop cast (ST_MultiCurve as ST_GeomCollection); drop cast (ST_MultiCurve as ST_MultiLineString); drop cast (ST_MultiLineString as ST_GeomCollection); drop cast (ST_MultiLineString as ST_MultiCurve); drop cast (ST_MultiPoint as ST_GeomCollection); drop cast (ST_MultiPolygon as ST_GeomCollection); drop cast (ST_MultiPolygon as ST_MultiSurface); drop cast (ST_MultiSurface as ST_GeomCollection); drop cast (ST_MultiSurface as ST_MultiPolygon); drop cast (ST_Polygon as ST_Surface); drop cast (ST_Surface as ST_Polygon); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "updowncasts.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "opclass.sql", "%SYSBLDUSER%", 0, "create function ST_Overlaps(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Overlaps)' language c; create function ST_Equals(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Equals)' language c; create function ST_Contains(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable, commutator = ST_Within) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Contains)' language c; create function ST_Within(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable, commutator = ST_Contains) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Within)' language c; create function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopesIntersect)' language c; create function ST_Touches(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=5000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Touches)' language c; create function ST_Crosses(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable, percall_cost=1000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Crosses)' language c; create function ST_Intersects(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Intersects)' language c; create function ST_OrderingEquals(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_OrderingEquals)' language c; create function SE_Nearest(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_NearestStratFunc)' language c; create function SE_Nearest(ST_Geometry,ST_Geometry,int) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Nearest)' language c; create function SE_NearestBBox(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_NearestStratFunc)' language c; create function SE_NearestBbox(ST_Geometry,ST_Geometry,int) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_NearestBBox)' language c; create function Equal(ST_Geometry,ST_Geometry) returns boolean with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryEqual)' language c; create function rtUnion(ST_Geometry,ST_Geometry,ST_Geometry) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_Curve,ST_Curve,ST_Curve) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_GeomCollection,ST_GeomCollection,ST_GeomCollection) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_LineString,ST_LineString,ST_LineString) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_MultiCurve,ST_MultiCurve,ST_MultiCurve) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_MultiLineString,ST_MultiLineString,ST_MultiLineString) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_MultiPoint,ST_MultiPoint,ST_MultiPoint) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_MultiPolygon,ST_MultiPolygon,ST_MultiPolygon) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_MultiSurface,ST_MultiSurface,ST_MultiSurface) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_Point,ST_Point,ST_Point) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_Polygon,ST_Polygon,ST_Polygon) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtUnion(ST_Surface,ST_Surface,ST_Surface) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)' language c; create function rtSize(ST_Geometry,float) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSize)' language c; create function rtInter(ST_Geometry,ST_Geometry,ST_Geometry) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeInter)' language c; create function rtSFCbits(ST_Geometry,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSFCbits)' language c; create function rtObjLength(ST_Geometry,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeObjLength)' language c; create function rtSFCvalue(ST_Geometry,integer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSFCvalue)' language c; create function rtSetUnion(ST_Geometry,integer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSetUnion)' language c; create function rtreeInfo(ST_Geometry,pointer,pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeInfo)' language c; grant execute on function ST_Overlaps(ST_Geometry,ST_Geometry) to public; grant execute on function ST_Equals(ST_Geometry,ST_Geometry) to public; grant execute on function ST_Contains(ST_Geometry,ST_Geometry) to public; grant execute on function ST_Within(ST_Geometry,ST_Geometry) to public; grant execute on function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) to public; grant execute on function ST_Intersects(ST_Geometry,ST_Geometry) to public; grant execute on function ST_Touches(ST_Geometry,ST_Geometry) to public; grant execute on function ST_Crosses(ST_Geometry,ST_Geometry) to public; grant execute on function ST_OrderingEquals (ST_Geometry,ST_Geometry) to public; grant execute on function SE_Nearest(ST_Geometry,ST_Geometry) to public; grant execute on function SE_Nearest(ST_Geometry,ST_Geometry,int) to public; grant execute on function SE_NearestBBox(ST_Geometry,ST_Geometry) to public; grant execute on function SE_NearestBBox(ST_Geometry,ST_Geometry,int) to public; grant execute on function Equal(ST_Geometry,ST_Geometry) to public; grant execute on function rtUnion(ST_Geometry,ST_Geometry,ST_Geometry) to public; grant execute on function rtUnion(ST_Curve,ST_Curve,ST_Curve) to public; grant execute on function rtUnion(ST_GeomCollection,ST_GeomCollection,ST_GeomCollection) to public; grant execute on function rtUnion(ST_LineString,ST_LineString,ST_LineString) to public; grant execute on function rtUnion(ST_MultiCurve,ST_MultiCurve,ST_MultiCurve) to public; grant execute on function rtUnion(ST_MultiLineString,ST_MultiLineString,ST_MultiLineString) to public; grant execute on function rtUnion(ST_MultiPoint,ST_MultiPoint,ST_MultiPoint) to public; grant execute on function rtUnion(ST_MultiPolygon,ST_MultiPolygon,ST_MultiPolygon) to public; grant execute on function rtUnion(ST_MultiSurface,ST_MultiSurface,ST_MultiSurface) to public; grant execute on function rtUnion(ST_Point,ST_Point,ST_Point) to public; grant execute on function rtUnion(ST_Polygon,ST_Polygon,ST_Polygon) to public; grant execute on function rtUnion(ST_Surface,ST_Surface,ST_Surface) to public; grant execute on function rtSize(ST_Geometry,float) to public; grant execute on function rtInter(ST_Geometry,ST_Geometry,ST_Geometry) to public; grant execute on function rtSFCbits(ST_Geometry,pointer) to public; grant execute on function rtObjLength(ST_Geometry,pointer) to public; grant execute on function rtSFCvalue(ST_Geometry,integer,pointer) to public; grant execute on function rtSetUnion(ST_Geometry,integer,pointer) to public; grant execute on function rtreeInfo(ST_Geometry,pointer,pointer,pointer) to public; create opclass ST_Geometry_ops for rtree strategies(ST_Overlaps,Equal,ST_Contains,ST_Within,SE_EnvelopesIntersect,ST_Intersects,ST_Touches,ST_Crosses,ST_OrderingEquals,SE_Nearest,SE_NearestBBox,ST_Equals) support(rtUnion,rtSize,rtInter,rtSFCbits,rtObjLength,rtSFCvalue,rtSetUnion); ", "f", " drop opclass ST_Geometry_ops restrict; drop function ST_Overlaps(ST_Geometry,ST_Geometry); drop function ST_Contains(ST_Geometry,ST_Geometry); drop function ST_Equals(ST_Geometry,ST_Geometry); drop function ST_Within(ST_Geometry,ST_Geometry); drop function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry); drop function ST_Intersects(ST_Geometry,ST_Geometry); drop function ST_Touches(ST_Geometry,ST_Geometry); drop function ST_Crosses(ST_Geometry,ST_Geometry); drop function ST_OrderingEquals(ST_Geometry,ST_Geometry); drop function SE_Nearest(ST_Geometry,ST_Geometry); drop function SE_Nearest(ST_Geometry,ST_Geometry,int); drop function SE_NearestBBox(ST_Geometry,ST_Geometry); drop function SE_NearestBBox(ST_Geometry,ST_Geometry,int); drop function Equal(ST_Geometry,ST_Geometry); drop function rtUnion(ST_Geometry,ST_Geometry,ST_Geometry); drop function rtUnion(ST_Curve,ST_Curve,ST_Curve); drop function rtUnion(ST_GeomCollection,ST_GeomCollection,ST_GeomCollection); drop function rtUnion(ST_LineString,ST_LineString,ST_LineString); drop function rtUnion(ST_MultiCurve,ST_MultiCurve,ST_MultiCurve); drop function rtUnion(ST_MultiLineString,ST_MultiLineString,ST_MultiLineString); drop function rtUnion(ST_MultiPoint,ST_MultiPoint,ST_MultiPoint); drop function rtUnion(ST_MultiPolygon,ST_MultiPolygon,ST_MultiPolygon); drop function rtUnion(ST_MultiSurface,ST_MultiSurface,ST_MultiSurface); drop function rtUnion(ST_Point,ST_Point,ST_Point); drop function rtUnion(ST_Polygon,ST_Polygon,ST_Polygon); drop function rtUnion(ST_Surface,ST_Surface,ST_Surface); drop function rtSize(ST_Geometry,float); drop function rtInter(ST_Geometry,ST_Geometry,ST_Geometry); drop function rtObjLength(ST_Geometry,pointer); drop function rtSFCbits(ST_Geometry,pointer); drop function rtSFCvalue(ST_Geometry,integer,pointer); drop function rtSetUnion(ST_Geometry,integer,pointer); drop function rtreeInfo(ST_Geometry,pointer,pointer,pointer); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "opclass.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "miscfuncs.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function SE_Release() returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Release)' language c; create function SE_InitSRID(integer) returns boolean external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_InitSRID)' language c; create function SE_Trace(lvarchar,integer) returns lvarchar with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Trace)' language c; create function SE_Refcount(ST_Geometry) returns integer with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Refcount)' language c; create function SE_Sbspace(ST_Geometry) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Sbspace)' language c; create function SE_CreateSrid(float,float,float,float,varchar(64)) returns integer external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrid)' language c; create function SE_CreateSrtext(int,varchar(64) default NULL) returns lvarchar with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrtextType)' language c; create function SE_CreateSrtextList(int) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrtextList)' language c; create function SE_SrtextCount(int) returns integer with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SrtextCount)' language c; create function SE_UdtMigrate(pointer) returns pointer external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UdtMigrate)' language c; create function SE_InRowSize(ST_Geometry) returns integer with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_InRowSize)' language c; create function SE_OutOfRowSize(ST_Geometry) returns integer with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_OutOfRowSize)' language c; create function SE_TotalSize(ST_Geometry) returns integer with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_TotalSize)' language c; grant execute on function SE_Release() to public; grant execute on function SE_Trace(lvarchar,integer) to public; grant execute on function SE_InitSRID(integer) to public; grant execute on function SE_Refcount(ST_Geometry) to public; grant execute on function SE_Sbspace(ST_Geometry) to public; grant execute on function SE_CreateSrid(float,float,float,float,varchar(64)) to public; grant execute on function SE_CreateSrtext(int,varchar(64)) to public; grant execute on function SE_CreateSrtextList(int) to public; grant execute on function SE_SrtextCount(int) to public; grant execute on function SE_InRowSize(ST_Geometry) to public; grant execute on function SE_OutOfRowSize(ST_Geometry) to public; grant execute on function SE_TotalSize(ST_Geometry) to public; delete from informix.systraceclasses where name = 'SE_Trace'; insert into informix.systraceclasses(name) values ('SE_Trace'); ", "f", " drop function SE_Release(); drop function SE_Trace(lvarchar,integer); drop function SE_InitSRID(integer); drop function SE_Refcount(ST_Geometry); drop function SE_Sbspace(ST_Geometry); drop function SE_CreateSrid(float,float,float,float,varchar(64)); drop function SE_CreateSrtext(int,varchar(64)); drop function SE_CreateSrtextList(int); drop function SE_SrtextCount(int); drop function SE_UdtMigrate(pointer); drop function SE_InRowSize(ST_Geometry); drop function SE_OutOfRowSize(ST_Geometry); drop function SE_TotalSize(ST_Geometry); delete from informix.systraceclasses where name = 'SE_Trace'; ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "miscfuncs.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "sdefuncs.sql", "%SYSBLDUSER%", 0, "create function SE_Instr (lvarchar,char) returns int with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Instr)' language c; create function SE_StringCat (lvarchar,lvarchar) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StringCat)' language c; create function SE_ToChar (float) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ToChar)' language c; create function SE_ToNumber (lvarchar) returns float with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ToNumber)' language c; create function SE_Rtrim (lvarchar,lvarchar) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Rtrim)' language c; create function SE_Ltrim (lvarchar,lvarchar) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ltrim)' language c; create function SE_Lineage_Delete (lvarchar,int) returns lvarchar with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Delete)' language c; create function SE_Lineage_Insert (lvarchar,int,char) returns lvarchar with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Insert)' language c; create function SE_Lineage_Update (lvarchar,int,char) returns lvarchar with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Update)' language c; create function SE_Lineage_Exists (lvarchar,int) returns boolean with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Exists)' language c; grant execute on function SE_Instr (lvarchar,char) to public; grant execute on function SE_StringCat (lvarchar,lvarchar) to public; grant execute on function SE_ToChar (float) to public; grant execute on function SE_ToNumber (lvarchar) to public; grant execute on function SE_Rtrim (lvarchar,lvarchar) to public; grant execute on function SE_Ltrim (lvarchar,lvarchar) to public; grant execute on function SE_Lineage_Delete (lvarchar,int) to public; grant execute on function SE_Lineage_Insert (lvarchar,int,char) to public; grant execute on function SE_Lineage_Update (lvarchar,int,char) to public; grant execute on function SE_Lineage_Exists (lvarchar,int) to public; ", "f", " drop function SE_Instr (lvarchar,char); drop function SE_StringCat (lvarchar,lvarchar); drop function SE_ToChar (float); drop function SE_ToNumber (lvarchar); drop function SE_Rtrim (lvarchar,lvarchar); drop function SE_Ltrim (lvarchar,lvarchar); drop function SE_Lineage_Delete (lvarchar,int); drop function SE_Lineage_Insert (lvarchar,int,char); drop function SE_Lineage_Update (lvarchar,int,char); drop function SE_Lineage_Exists (lvarchar,int); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "sdefuncs.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "dissolve.sql", "%SYSBLDUSER%", 0, "create function SE_Dissolve_Init(ST_Geometry) returns pointer with (not variant, parallelizable, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Init)' language c; create function SE_Dissolve_Iter(pointer,St_Geometry) returns pointer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Iter)' language c; create function SE_Dissolve_Combine(pointer,pointer) returns pointer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Combine)' language c; create function SE_Dissolve_Final(pointer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Final)' language c; create aggregate SE_Dissolve with (init = SE_Dissolve_Init, iter = SE_Dissolve_Iter, combine = SE_Dissolve_Combine, final = SE_Dissolve_Final); grant execute on function SE_Dissolve_Init(ST_Geometry) to public; grant execute on function SE_Dissolve_Iter(pointer,ST_Geometry) to public; grant execute on function SE_Dissolve_Combine(pointer,pointer) to public; grant execute on function SE_Dissolve_Final(pointer) to public; ", "f", " drop aggregate SE_Dissolve; drop function SE_Dissolve_Init(ST_Geometry); drop function SE_Dissolve_Iter(pointer,ST_Geometry); drop function SE_Dissolve_Combine(pointer,pointer); drop function SE_Dissolve_Final(pointer); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "dissolve.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "viewtable.sql", "%SYSBLDUSER%", 0, "CREATE PROCEDURE create_se_views() DEFINE tab_exists INT; SELECT count(*) INTO tab_exists FROM informix.systables WHERE tabname='se_views'; IF (tab_exists = 0) THEN CREATE TABLE se_views ( view_name varchar(128) NOT NULL, view_col varchar(128) NOT NULL, real_tabname varchar(128) NOT NULL, real_colname varchar(128) NOT NULL ); END IF END PROCEDURE; EXECUTE PROCEDURE create_se_views(); DROP PROCEDURE create_se_views(); ", "f", " DROP TABLE se_views; ", "f" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "boundingbox.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "CREATE FUNCTION SE_BoundingBox (tab_name varchar(128), col_name varchar(128)) RETURNS ST_Polygon DEFINE idx_name varchar(128); DEFINE type_name varchar(128); DEFINE retval ST_Geometry; DEFINE nrows integer; DEFINE tab_type char(1); DEFINE real_tab varchar(128); DEFINE real_col varchar(128); LET idx_name = NULL; LET type_name = NULL; LET retval = NULL; LET nrows = 0; LET real_tab = NULL; LET real_col = NULL; SELECT count(*) INTO nrows FROM informix.systables st WHERE st.tabname = tab_name; IF (nrows = 0) THEN RAISE EXCEPTION -206, 0, tab_name; END IF SELECT count(*) INTO nrows FROM informix.systables st, informix.syscolumns sc WHERE st.tabname = tab_name AND sc.tabid = st.tabid AND sc.colname = col_name; IF (nrows = 0) THEN RAISE EXCEPTION -217, 0, col_name; END IF SELECT tabtype INTO tab_type FROM informix.systables WHERE tabname = tab_name; IF (tab_type = 'V') THEN SELECT real_tabname, real_colname INTO real_tab, real_col FROM se_views WHERE view_name = tab_name AND view_col = col_name; IF (real_tab IS NULL) THEN RAISE EXCEPTION -746, 0, 'The view name is not found in the table se_view.'; END IF IF (real_col IS NULL) THEN RAISE EXCEPTION -746, 0, 'The column name is not found in the table se_view.'; END IF ELSE LET real_tab = tab_name; LET real_col = col_name; END IF FOREACH SELECT si.idxname, sx.name INTO idx_name, type_name FROM informix.systables st, informix.syscolumns sc, informix.sysindices si, informix.sysams sa, informix.sysxtdtypes sx WHERE -- identify table with name st.tabname = real_tab AND -- identify column with name on identified table sc.tabid = st.tabid AND sc.colname = real_col AND -- identify rtree index on identified column si.tabid = sc.tabid AND si.indexkeys::lvarchar like sc.colno || ' [%]' AND sa.am_id = si.amid AND sa.am_name = 'rtree' AND -- identify extended type of identified column sx.extended_id = sc.extended_id END FOREACH; IF (idx_name IS NULL) THEN RAISE EXCEPTION -319; END IF CALL ST_GeomIn(rtreeRootBB(idx_name, type_name)) RETURNING retval; RETURN retval::ST_Polygon; END FUNCTION; GRANT EXECUTE ON FUNCTION SE_BoundingBox(varchar(128),varchar(128)) to public; alter function Equal(ST_Geometry,ST_Geometry) with (Modify External Name = ""$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryEqual)""); ", "f", " DROP FUNCTION SE_BoundingBox(varchar(128),varchar(128)); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "boundingbox.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "geometry.%SYSBLDDIR%", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "boundingbox.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "updowncasts.sql", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "boundingbox.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "viewtable.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "kml.sql", "%SYSBLDUSER%", 0, "create function SE_AsKML(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsKML)' language c; grant execute on function SE_AsKML(ST_Geometry) to public; create function ST_AsKML(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsKML)' language c; grant execute on function ST_AsKML(ST_Geometry) to public; create function ST_AsKML(ST_Geometry,lvarchar) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsKMLattr)' language c; grant execute on function ST_AsKML(ST_Geometry,lvarchar) to public; create function SE_EnvelopeAsKML(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeAsKML)' language c; grant execute on function SE_EnvelopeAsKML(ST_Geometry) to public; create function ST_GeomFromKML(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromKML)' language c; grant execute on function ST_GeomFromKML(lvarchar) to public; create function ST_GeomFromKML(lvarchar, integer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromKMLsrid)' language c; grant execute on function ST_GeomFromKML(lvarchar, integer) to public; create function ST_PointFromKML(lvarchar) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromKML)' language c; grant execute on function ST_PointFromKML(lvarchar) to public; create function ST_PointFromKML(lvarchar, integer) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromKMLsrid)' language c; grant execute on function ST_PointFromKML(lvarchar, integer) to public; create function ST_LineFromKML(lvarchar) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromKML)' language c; grant execute on function ST_LineFromKML(lvarchar) to public; create function ST_LineFromKML(lvarchar, integer) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromKMLsrid)' language c; grant execute on function ST_LineFromKML(lvarchar, integer) to public; create function ST_PolyFromKML(lvarchar) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromKML)' language c; grant execute on function ST_PolyFromKML(lvarchar) to public; create function ST_PolyFromKML(lvarchar, integer) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromKMLsrid)' language c; grant execute on function ST_PolyFromKML(lvarchar, integer) to public; create function ST_MPointFromKML(lvarchar) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromKML)' language c; grant execute on function ST_MPointFromKML(lvarchar) to public; create function ST_MPointFromKML(lvarchar, integer) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromKMLsrid)' language c; grant execute on function ST_MPointFromKML(lvarchar, integer) to public; create function ST_MLineFromKML(lvarchar) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromKML)' language c; grant execute on function ST_MLineFromKML(lvarchar) to public; create function ST_MLineFromKML(lvarchar, integer) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromKMLsrid)' language c; grant execute on function ST_MLineFromKML(lvarchar, integer) to public; create function ST_MPolyFromKML(lvarchar) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromKML)' language c; grant execute on function ST_MPolyFromKML(lvarchar) to public; create function ST_MPolyFromKML(lvarchar, integer) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromKMLsrid)' language c; grant execute on function ST_MPolyFromKML(lvarchar, integer) to public; create function SE_EnvelopeFromKML(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromKML)' language c; grant execute on function SE_EnvelopeFromKML(lvarchar) to public; create function SE_EnvelopeFromKML(lvarchar, integer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromKMLsrid)' language c; grant execute on function SE_EnvelopeFromKML(lvarchar, integer) to public; create function WFSDescKMLType(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlPoint)' language c; create function WFSDescKMLType(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlLine)' language c; create function WFSDescKMLType(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlPoly)' language c; create function WFSDescKMLType(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlMPoint)' language c; create function WFSDescKMLType(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlMLine)' language c; create function WFSDescKMLType(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlMPoly)' language c; create function WFSReadKMLType(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlPoint)' language c; create function WFSReadKMLType(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlLine)' language c; create function WFSReadKMLType(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlPoly)' language c; create function WFSReadKMLType(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlMPoint)' language c; create function WFSReadKMLType(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlMLine)' language c; create function WFSReadKMLType(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlMPoly)' language c; create function WFSWriteKMLType(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlPoint)' language c; create function WFSWriteKMLType(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlLine)' language c; create function WFSWriteKMLType(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlPoly)' language c; create function WFSWriteKMLType(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlMPoint)' language c; create function WFSWriteKMLType(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlMLine)' language c; create function WFSWriteKMLType(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlMPoly)' language c; grant execute on function WFSDescKMLType(ST_Point) to public; grant execute on function WFSDescKMLType(ST_LineString) to public; grant execute on function WFSDescKMLType(ST_Polygon) to public; grant execute on function WFSDescKMLType(ST_MultiPoint) to public; grant execute on function WFSDescKMLType(ST_MultiLineString) to public; grant execute on function WFSDescKMLType(ST_MultiPolygon) to public; grant execute on function WFSReadKMLType(ST_Point) to public; grant execute on function WFSReadKMLType(ST_LineString) to public; grant execute on function WFSReadKMLType(ST_Polygon) to public; grant execute on function WFSReadKMLType(ST_MultiPoint) to public; grant execute on function WFSReadKMLType(ST_MultiLineString) to public; grant execute on function WFSReadKMLType(ST_MultiPolygon) to public; grant execute on function WFSWriteKMLType(ST_Point) to public; grant execute on function WFSWriteKMLType(ST_LineString) to public; grant execute on function WFSWriteKMLType(ST_Polygon) to public; grant execute on function WFSWriteKMLType(ST_MultiPoint) to public; grant execute on function WFSWriteKMLType(ST_MultiLineString) to public; grant execute on function WFSWriteKMLType(ST_MultiPolygon) to public; ", "f", " drop function SE_AsKML(ST_Geometry); drop function ST_AsKML(ST_Geometry); drop function ST_AsKML(ST_Geometry, lvarchar); drop function SE_EnvelopeAsKML(ST_Geometry); drop function ST_GeomFromKML(lvarchar); drop function ST_GeomFromKML(lvarchar, integer); drop function ST_PointFromKML(lvarchar); drop function ST_PointFromKML(lvarchar, integer); drop function ST_LineFromKML(lvarchar); drop function ST_LineFromKML(lvarchar, integer); drop function ST_PolyFromKML(lvarchar); drop function ST_PolyFromKML(lvarchar, integer); drop function ST_MPointFromKML(lvarchar); drop function ST_MPointFromKML(lvarchar, integer); drop function ST_MLineFromKML(lvarchar); drop function ST_MLineFromKML(lvarchar, integer); drop function ST_MPolyFromKML(lvarchar); drop function ST_MPolyFromKML(lvarchar, integer); drop function SE_EnvelopeFromKML(lvarchar); drop function SE_EnvelopeFromKML(lvarchar, integer); drop function WFSDescKMLType(ST_Point); drop function WFSDescKMLType(ST_LineString); drop function WFSDescKMLType(ST_Polygon); drop function WFSDescKMLType(ST_MultiPoint); drop function WFSDescKMLType(ST_MultiLineString); drop function WFSDescKMLType(ST_MultiPolygon); drop function WFSReadKMLType(ST_Point); drop function WFSReadKMLType(ST_LineString); drop function WFSReadKMLType(ST_Polygon); drop function WFSReadKMLType(ST_MultiPoint); drop function WFSReadKMLType(ST_MultiLineString); drop function WFSReadKMLType(ST_MultiPolygon); drop function WFSWriteKMLType(ST_Point); drop function WFSWriteKMLType(ST_LineString); drop function WFSWriteKMLType(ST_Polygon); drop function WFSWriteKMLType(ST_MultiPoint); drop function WFSWriteKMLType(ST_MultiLineString); drop function WFSWriteKMLType(ST_MultiPolygon); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "kml.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "gml.sql", "%SYSBLDUSER%", 0, "create function SE_AsGML(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsGML)' language c; grant execute on function SE_AsGML(ST_Geometry) to public; create function ST_AsGML(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsGML)' language c; grant execute on function ST_AsGML(ST_Geometry) to public; create function ST_AsGML(ST_Geometry, integer) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsGML2)' language c; grant execute on function ST_AsGML(ST_Geometry, integer) to public; create function SE_EnvelopeAsGML(ST_Geometry) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeAsGML)' language c; grant execute on function SE_EnvelopeAsGML(ST_Geometry) to public; create function SE_EnvelopeAsGML(ST_Geometry, integer) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeAsGML2)' language c; grant execute on function SE_EnvelopeAsGML(ST_Geometry, integer) to public; create function ST_GeomFromGML(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromGML)' language c; grant execute on function ST_GeomFromGML(lvarchar) to public; create function ST_GeomFromGML(lvarchar, integer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromGMLsrid)' language c; grant execute on function ST_GeomFromGML(lvarchar, integer) to public; create function ST_PointFromGML(lvarchar) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromGML)' language c; grant execute on function ST_PointFromGML(lvarchar) to public; create function ST_PointFromGML(lvarchar, integer) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromGMLsrid)' language c; grant execute on function ST_PointFromGML(lvarchar, integer) to public; create function ST_LineFromGML(lvarchar) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromGML)' language c; grant execute on function ST_LineFromGML(lvarchar) to public; create function ST_LineFromGML(lvarchar, integer) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromGMLsrid)' language c; grant execute on function ST_LineFromGML(lvarchar, integer) to public; create function ST_PolyFromGML(lvarchar) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromGML)' language c; grant execute on function ST_PolyFromGML(lvarchar) to public; create function ST_PolyFromGML(lvarchar, integer) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromGMLsrid)' language c; grant execute on function ST_PolyFromGML(lvarchar, integer) to public; create function ST_MPointFromGML(lvarchar) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromGML)' language c; grant execute on function ST_MPointFromGML(lvarchar) to public; create function ST_MPointFromGML(lvarchar, integer) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromGMLsrid)' language c; grant execute on function ST_MPointFromGML(lvarchar, integer) to public; create function ST_MLineFromGML(lvarchar) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromGML)' language c; grant execute on function ST_MLineFromGML(lvarchar) to public; create function ST_MLineFromGML(lvarchar, integer) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromGMLsrid)' language c; grant execute on function ST_MLineFromGML(lvarchar, integer) to public; create function ST_MPolyFromGML(lvarchar) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromGML)' language c; grant execute on function ST_MPolyFromGML(lvarchar) to public; create function ST_MPolyFromGML(lvarchar, integer) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromGMLsrid)' language c; grant execute on function ST_MPolyFromGML(lvarchar, integer) to public; create function SE_EnvelopeFromGML(lvarchar) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromGML)' language c; grant execute on function SE_EnvelopeFromGML(lvarchar) to public; create function SE_EnvelopeFromGML(lvarchar, integer) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromGMLsrid)' language c; grant execute on function SE_EnvelopeFromGML(lvarchar, integer) to public; ", "f", " drop function SE_AsGML(ST_Geometry); drop function ST_AsGML(ST_Geometry); drop function ST_AsGML(ST_Geometry, integer); drop function SE_EnvelopeAsGML(ST_Geometry); drop function SE_EnvelopeAsGML(ST_Geometry, integer); drop function ST_GeomFromGML(lvarchar); drop function ST_GeomFromGML(lvarchar, integer); drop function ST_PointFromGML(lvarchar); drop function ST_PointFromGML(lvarchar, integer); drop function ST_LineFromGML(lvarchar); drop function ST_LineFromGML(lvarchar, integer); drop function ST_PolyFromGML(lvarchar); drop function ST_PolyFromGML(lvarchar, integer); drop function ST_MPointFromGML(lvarchar); drop function ST_MPointFromGML(lvarchar, integer); drop function ST_MLineFromGML(lvarchar); drop function ST_MLineFromGML(lvarchar, integer); drop function ST_MPolyFromGML(lvarchar); drop function ST_MPolyFromGML(lvarchar, integer); drop function SE_EnvelopeFromGML(lvarchar); drop function SE_EnvelopeFromGML(lvarchar, integer); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "gml.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "gml2n3.sql", "%SYSBLDUSER%", 0, " create function WFSDescSchemaType(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaPoint)' language c; create function WFSDescSchemaType(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaLine)' language c; create function WFSDescSchemaType(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaPolygon)' language c; create function WFSDescSchemaType(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaMPoint)' language c; create function WFSDescSchemaType(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaMLine)' language c; create function WFSDescSchemaType(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaMPolygon)' language c; create function WFSDescGML2Type(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2Point)' language c; create function WFSDescGML2Type(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2Line)' language c; create function WFSDescGML2Type(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2Poly)' language c; create function WFSDescGML2Type(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2MPoint)' language c; create function WFSDescGML2Type(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2MLine)' language c; create function WFSDescGML2Type(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2MPoly)' language c; create function WFSDescGML3Type(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3Point)' language c; create function WFSDescGML3Type(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3Line)' language c; create function WFSDescGML3Type(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3Poly)' language c; create function WFSDescGML3Type(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3MPoint)' language c; create function WFSDescGML3Type(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3MLine)' language c; create function WFSDescGML3Type(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3MPoly)' language c; create function WFSReadGML2Type(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2Point)' language c; create function WFSReadGML2Type(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2Line)' language c; create function WFSReadGML2Type(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2Poly)' language c; create function WFSReadGML2Type(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2MPoint)' language c; create function WFSReadGML2Type(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2MLine)' language c; create function WFSReadGML2Type(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2MPoly)' language c; create function WFSReadGML3Type(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3Point)' language c; create function WFSReadGML3Type(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3Line)' language c; create function WFSReadGML3Type(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3Poly)' language c; create function WFSReadGML3Type(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3MPoint)' language c; create function WFSReadGML3Type(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3MLine)' language c; create function WFSReadGML3Type(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3MPoly)' language c; create function WFSWriteGML2Type(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2Point)' language c; create function WFSWriteGML2Type(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2Line)' language c; create function WFSWriteGML2Type(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2Poly)' language c; create function WFSWriteGML2Type(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2MPoint)' language c; create function WFSWriteGML2Type(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2MLine)' language c; create function WFSWriteGML2Type(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2MPoly)' language c; create function WFSWriteGML3Type(ST_Point) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3Point)' language c; create function WFSWriteGML3Type(ST_LineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3Line)' language c; create function WFSWriteGML3Type(ST_Polygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3Poly)' language c; create function WFSWriteGML3Type(ST_MultiPoint) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3MPoint)' language c; create function WFSWriteGML3Type(ST_MultiLineString) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3MLine)' language c; create function WFSWriteGML3Type(ST_MultiPolygon) returns lvarchar external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3MPoly)' language c; grant execute on function WFSDescSchemaType(ST_Point) to public; grant execute on function WFSDescSchemaType(ST_LineString) to public; grant execute on function WFSDescSchemaType(ST_Polygon) to public; grant execute on function WFSDescSchemaType(ST_MultiPoint) to public; grant execute on function WFSDescSchemaType(ST_MultiLineString) to public; grant execute on function WFSDescSchemaType(ST_MultiPolygon) to public; grant execute on function WFSDescGML2Type(ST_Point) to public; grant execute on function WFSDescGML2Type(ST_LineString) to public; grant execute on function WFSDescGML2Type(ST_Polygon) to public; grant execute on function WFSDescGML2Type(ST_MultiPoint) to public; grant execute on function WFSDescGML2Type(ST_MultiLineString) to public; grant execute on function WFSDescGML2Type(ST_MultiPolygon) to public; grant execute on function WFSDescGML3Type(ST_Point) to public; grant execute on function WFSDescGML3Type(ST_LineString) to public; grant execute on function WFSDescGML3Type(ST_Polygon) to public; grant execute on function WFSDescGML3Type(ST_MultiPoint) to public; grant execute on function WFSDescGML3Type(ST_MultiLineString) to public; grant execute on function WFSDescGML3Type(ST_MultiPolygon) to public; grant execute on function WFSReadGML2Type(ST_Point) to public; grant execute on function WFSReadGML2Type(ST_LineString) to public; grant execute on function WFSReadGML2Type(ST_Polygon) to public; grant execute on function WFSReadGML2Type(ST_MultiPoint) to public; grant execute on function WFSReadGML2Type(ST_MultiLineString) to public; grant execute on function WFSReadGML2Type(ST_MultiPolygon) to public; grant execute on function WFSReadGML3Type(ST_Point) to public; grant execute on function WFSReadGML3Type(ST_LineString) to public; grant execute on function WFSReadGML3Type(ST_Polygon) to public; grant execute on function WFSReadGML3Type(ST_MultiPoint) to public; grant execute on function WFSReadGML3Type(ST_MultiLineString) to public; grant execute on function WFSReadGML3Type(ST_MultiPolygon) to public; grant execute on function WFSWriteGML2Type(ST_Point) to public; grant execute on function WFSWriteGML2Type(ST_LineString) to public; grant execute on function WFSWriteGML2Type(ST_Polygon) to public; grant execute on function WFSWriteGML2Type(ST_MultiPoint) to public; grant execute on function WFSWriteGML2Type(ST_MultiLineString) to public; grant execute on function WFSWriteGML2Type(ST_MultiPolygon) to public; grant execute on function WFSWriteGML3Type(ST_Point) to public; grant execute on function WFSWriteGML3Type(ST_LineString) to public; grant execute on function WFSWriteGML3Type(ST_Polygon) to public; grant execute on function WFSWriteGML3Type(ST_MultiPoint) to public; grant execute on function WFSWriteGML3Type(ST_MultiLineString) to public; grant execute on function WFSWriteGML3Type(ST_MultiPolygon) to public; ", "f", " drop function WFSDescSchemaType(ST_Point); drop function WFSDescSchemaType(ST_LineString); drop function WFSDescSchemaType(ST_Polygon); drop function WFSDescSchemaType(ST_MultiPoint); drop function WFSDescSchemaType(ST_MultiLineString); drop function WFSDescSchemaType(ST_MultiPolygon); drop function WFSDescGML2Type(ST_Point); drop function WFSDescGML2Type(ST_LineString); drop function WFSDescGML2Type(ST_Polygon); drop function WFSDescGML2Type(ST_MultiPoint); drop function WFSDescGML2Type(ST_MultiLineString); drop function WFSDescGML2Type(ST_MultiPolygon); drop function WFSDescGML3Type(ST_Point); drop function WFSDescGML3Type(ST_LineString); drop function WFSDescGML3Type(ST_Polygon); drop function WFSDescGML3Type(ST_MultiPoint); drop function WFSDescGML3Type(ST_MultiLineString); drop function WFSDescGML3Type(ST_MultiPolygon); drop function WFSReadGML2Type(ST_Point); drop function WFSReadGML2Type(ST_LineString); drop function WFSReadGML2Type(ST_Polygon); drop function WFSReadGML2Type(ST_MultiPoint); drop function WFSReadGML2Type(ST_MultiLineString); drop function WFSReadGML2Type(ST_MultiPolygon); drop function WFSReadGML3Type(ST_Point); drop function WFSReadGML3Type(ST_LineString); drop function WFSReadGML3Type(ST_Polygon); drop function WFSReadGML3Type(ST_MultiPoint); drop function WFSReadGML3Type(ST_MultiLineString); drop function WFSReadGML3Type(ST_MultiPolygon); drop function WFSWriteGML2Type(ST_Point); drop function WFSWriteGML2Type(ST_LineString); drop function WFSWriteGML2Type(ST_Polygon); drop function WFSWriteGML2Type(ST_MultiPoint); drop function WFSWriteGML2Type(ST_MultiLineString); drop function WFSWriteGML2Type(ST_MultiPolygon); drop function WFSWriteGML3Type(ST_Point); drop function WFSWriteGML3Type(ST_LineString); drop function WFSWriteGML3Type(ST_Polygon); drop function WFSWriteGML3Type(ST_MultiPoint); drop function WFSWriteGML3Type(ST_MultiLineString); drop function WFSWriteGML3Type(ST_MultiPolygon); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "gml2n3.sql", "%SYSBLDUSER%", 0, "gml.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "vertex.sql", "%SYSBLDUSER%", 0, "create function SE_VertexUpdate(ST_Geometry,ST_Point,ST_Point) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_VertexUpdate)' language c; create function SE_VertexAppend(ST_LineString,ST_Point) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_VertexAppend)' language c; create function SE_VertexDelete(ST_Geometry,ST_Point) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_VertexDelete)' language c; create function SE_PerpendicularPoint(ST_Linestring,ST_Point) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PerpendicularPoint)' language c; create function SE_PerpendicularPoint(ST_MultiLinestring,ST_Point) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PerpendicularPoint)' language c; grant execute on function SE_VertexUpdate(ST_Geometry,ST_Point,ST_Point) to public; grant execute on function SE_VertexAppend(ST_LineString,ST_Point) to public; grant execute on function SE_VertexDelete(ST_Geometry,ST_Point) to public; grant execute on function SE_PerpendicularPoint(ST_Linestring,ST_Point) to public; grant execute on function SE_PerpendicularPoint(ST_MultiLinestring,ST_Point) to public; ", "f", " drop function SE_VertexUpdate(ST_Geometry,ST_Point,ST_Point); drop function SE_VertexAppend(ST_LineString,ST_Point); drop function SE_VertexDelete(ST_Geometry,ST_Point); drop function SE_PerpendicularPoint(ST_Linestring,ST_Point); drop function SE_PerpendicularPoint(ST_MultiLinestring,ST_Point); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "vertex.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "stats.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "create function statcollect(ST_Geometry,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_Curve,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_GeomCollection,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_LineString,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_MultiCurve,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_MultiLineString,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_MultiPoint,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_MultiPolygon,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_MultiSurface,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_Point,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_Polygon,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statcollect(ST_Surface,float,float) returns stat with (not variant, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)' language c; create function statprint(ST_Geometry,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_Curve,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_GeomCollection,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_LineString,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_MultiCurve,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_MultiLineString,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_MultiPoint,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_MultiPolygon,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_MultiSurface,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_Point,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_Polygon,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function statprint(ST_Surface,stat) returns lvarchar with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)' language c; create function ST_StatDump(lvarchar,lvarchar,lvarchar) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_StatDump)' language c; grant execute on function statcollect(ST_Geometry,float,float) to public; grant execute on function statcollect(ST_Curve,float,float) to public; grant execute on function statcollect(ST_GeomCollection,float,float) to public; grant execute on function statcollect(ST_LineString,float,float) to public; grant execute on function statcollect(ST_MultiCurve,float,float) to public; grant execute on function statcollect(ST_MultiLineString,float,float) to public; grant execute on function statcollect(ST_MultiPoint,float,float) to public; grant execute on function statcollect(ST_MultiPolygon,float,float) to public; grant execute on function statcollect(ST_MultiSurface,float,float) to public; grant execute on function statcollect(ST_Point,float,float) to public; grant execute on function statcollect(ST_Polygon,float,float) to public; grant execute on function statcollect(ST_Surface,float,float) to public; grant execute on function statprint(ST_Geometry,stat) to public; grant execute on function statprint(ST_Curve,stat) to public; grant execute on function statprint(ST_GeomCollection,stat) to public; grant execute on function statprint(ST_LineString,stat) to public; grant execute on function statprint(ST_MultiCurve,stat) to public; grant execute on function statprint(ST_MultiLineString,stat) to public; grant execute on function statprint(ST_MultiPoint,stat) to public; grant execute on function statprint(ST_MultiPolygon,stat) to public; grant execute on function statprint(ST_MultiSurface,stat) to public; grant execute on function statprint(ST_Point,stat) to public; grant execute on function statprint(ST_Polygon,stat) to public; grant execute on function statprint(ST_Surface,stat) to public; grant execute on function ST_StatDump(lvarchar,lvarchar,lvarchar) to public; ", "f", " drop function statcollect(ST_Geometry,float,float); drop function statcollect(ST_Curve,float,float); drop function statcollect(ST_GeomCollection,float,float); drop function statcollect(ST_LineString,float,float); drop function statcollect(ST_MultiCurve,float,float); drop function statcollect(ST_MultiLineString,float,float); drop function statcollect(ST_MultiPoint,float,float); drop function statcollect(ST_MultiPolygon,float,float); drop function statcollect(ST_MultiSurface,float,float); drop function statcollect(ST_Point,float,float); drop function statcollect(ST_Polygon,float,float); drop function statcollect(ST_Surface,float,float); drop function statprint(ST_Geometry,stat); drop function statprint(ST_Curve,stat); drop function statprint(ST_GeomCollection,stat); drop function statprint(ST_LineString,stat); drop function statprint(ST_MultiCurve,stat); drop function statprint(ST_MultiLineString,stat); drop function statprint(ST_MultiPoint,stat); drop function statprint(ST_MultiPolygon,stat); drop function statprint(ST_MultiSurface,stat); drop function statprint(ST_Point,stat); drop function statprint(ST_Polygon,stat); drop function statprint(ST_Surface,stat); drop function ST_StatDump(lvarchar,lvarchar,lvarchar); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "stats.%SYSBLDDIR%", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "tempassign.sql", "%SYSBLDUSER%", 0, "create function TempAssign(ST_Geometry) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_Curve) returns ST_Curve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_MultiCurve) returns ST_MultiCurve with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_Surface) returns ST_Surface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_MultiSurface) returns ST_MultiSurface with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_Point) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_MultiPoint) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_LineString) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_MultiLineString) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_Polygon) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_MultiPolygon) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; create function TempAssign(ST_GeomCollection) returns ST_GeomCollection with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)' language c; grant execute on function TempAssign (ST_Geometry) to public; grant execute on function TempAssign (ST_Curve) to public; grant execute on function TempAssign (ST_MultiCurve) to public; grant execute on function TempAssign (ST_Surface) to public; grant execute on function TempAssign (ST_MultiSurface) to public; grant execute on function TempAssign (ST_Point) to public; grant execute on function TempAssign (ST_MultiPoint) to public; grant execute on function TempAssign (ST_LineString) to public; grant execute on function TempAssign (ST_MultiLineString) to public; grant execute on function TempAssign (ST_Polygon) to public; grant execute on function TempAssign (ST_MultiPolygon) to public; grant execute on function TempAssign (ST_GeomCollection) to public; ", "f", " drop function TempAssign(ST_Geometry); drop function TempAssign(ST_Curve); drop function TempAssign(ST_MultiCurve); drop function TempAssign(ST_Surface); drop function TempAssign(ST_MultiSurface); drop function TempAssign(ST_Point); drop function TempAssign(ST_MultiPoint); drop function TempAssign(ST_LineString); drop function TempAssign(ST_MultiLineString); drop function TempAssign(ST_Polygon); drop function TempAssign(ST_MultiPolygon); drop function TempAssign(ST_GeomCollection); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "tempassign.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "costfuncs.sql", "%SYSBLDUSER%", 0, "create function ST_OverlapsCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_OverlapsCost)' language c; create function SE_EqualCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EqualCost)' language c; create function ST_ContainsCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ContainsCost)' language c; create function ST_WithinCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WithinCost)' language c; create function SE_EnvelopesIntersectCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopesIntersectCost)' language c; create function ST_IntersectsCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IntersectsCost)' language c; create function ST_TouchesCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_TouchesCost)' language c; create function ST_CrossesCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CrossesCost)' language c; create function ST_EqualsCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_EqualsCost)' language c; create function ST_DisjointCost(pointer,pointer) returns integer with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DisjointCost)' language c; create function ST_CostTest(lvarchar,lvarchar,lvarchar,ST_Geometry) returns integer external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CostTest)' language c; grant execute on function ST_OverlapsCost(pointer,pointer) to public; grant execute on function SE_EqualCost(pointer,pointer) to public; grant execute on function ST_ContainsCost(pointer,pointer) to public; grant execute on function ST_WithinCost(pointer,pointer) to public; grant execute on function SE_EnvelopesIntersectCost(pointer,pointer) to public; grant execute on function ST_IntersectsCost(pointer,pointer) to public; grant execute on function ST_TouchesCost(pointer,pointer) to public; grant execute on function ST_CrossesCost(pointer,pointer) to public; grant execute on function ST_EqualsCost(pointer,pointer) to public; grant execute on function ST_DisjointCost(pointer,pointer) to public; grant execute on function ST_CostTest(lvarchar,lvarchar,lvarchar,ST_Geometry) to public; ", "f", " drop function ST_OverlapsCost(pointer,pointer); drop function SE_EqualCost(pointer,pointer); drop function ST_ContainsCost(pointer,pointer); drop function ST_WithinCost(pointer,pointer); drop function SE_EnvelopesIntersectCost(pointer,pointer); drop function ST_IntersectsCost(pointer,pointer); drop function ST_TouchesCost(pointer,pointer); drop function ST_CrossesCost(pointer,pointer); drop function ST_EqualsCost(pointer,pointer); drop function ST_DisjointCost(pointer,pointer); drop function ST_CostTest(lvarchar,lvarchar,lvarchar,ST_Geometry); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "costfuncs.sql", "%SYSBLDUSER%", 0, "opclass.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "altercost.sql", "%SYSBLDUSER%", 0, "alter function ST_Overlaps(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function Equal(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Contains(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Within(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Intersects(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Touches(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Crosses(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Equals(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Disjoint(ST_Geometry,ST_Geometry) with (drop percall_cost); alter function ST_Overlaps(ST_Geometry,ST_Geometry) with (add costfunc = ST_OverlapsCost); alter function Equal(ST_Geometry,ST_Geometry) with (add costfunc = SE_EqualCost); alter function ST_Contains(ST_Geometry,ST_Geometry) with (add costfunc = ST_ContainsCost); alter function ST_Within(ST_Geometry,ST_Geometry) with (add costfunc = ST_WithinCost); alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) with (add costfunc = SE_EnvelopesIntersectCost); alter function ST_Intersects(ST_Geometry,ST_Geometry) with (add costfunc = ST_IntersectsCost); alter function ST_Touches(ST_Geometry,ST_Geometry) with (add costfunc = ST_TouchesCost); alter function ST_Crosses(ST_Geometry,ST_Geometry) with (add costfunc = ST_CrossesCost); alter function ST_Equals(ST_Geometry,ST_Geometry) with (add costfunc = ST_EqualsCost); alter function ST_Disjoint(ST_Geometry,ST_Geometry) with (add costfunc = ST_DisjointCost); ", "f", " alter function ST_Overlaps(ST_Geometry,ST_Geometry) with (drop costfunc); alter function Equal(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Contains(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Within(ST_Geometry,ST_Geometry) with (drop costfunc); alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Intersects(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Touches(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Crosses(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Equals(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Disjoint(ST_Geometry,ST_Geometry) with (drop costfunc); alter function ST_Overlaps(ST_Geometry,ST_Geometry) with (add percall_cost = 1000); alter function Equal(ST_Geometry,ST_Geometry) with (add percall_cost = 1000); alter function ST_Contains(ST_Geometry,ST_Geometry) with (add percall_cost = 1000); alter function ST_Within(ST_Geometry,ST_Geometry) with (add percall_cost = 1000); alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) with (add percall_cost = 500); alter function ST_Intersects(ST_Geometry,ST_Geometry) with (add percall_cost = 1000); alter function ST_Touches(ST_Geometry,ST_Geometry) with (add percall_cost = 1000); alter function ST_Crosses(ST_Geometry,ST_Geometry) with (add percall_cost = 1000); alter function ST_Equals(ST_Geometry,ST_Geometry) with (add percall_cost = 8000); alter function ST_Disjoint(ST_Geometry,ST_Geometry) with (add percall_cost = 8000); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "altercost.sql", "%SYSBLDUSER%", 0, "costfuncs.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "selectivity.sql", "%SYSBLDUSER%", 0, "create function ST_OverlapsSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_OverlapsSelectivity)' language c; create function SE_EqualSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EqualSelectivity)' language c; create function ST_ContainsSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ContainsSelectivity)' language c; create function ST_WithinSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WithinSelectivity)' language c; create function SE_EnvelopesIntersectSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopesIntersectSelectivity)' language c; create function ST_IntersectsSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IntersectsSelectivity)' language c; create function ST_TouchesSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_TouchesSelectivity)' language c; create function ST_CrossesSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CrossesSelectivity)' language c; create function ST_EqualsSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_EqualsSelectivity)' language c; create function ST_DisjointSelectivity(pointer,pointer) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DisjointSelectivity)' language c; create function ST_SelectivityTest(lvarchar,lvarchar,lvarchar,ST_Geometry) returns float external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SelectivityTest)' language c; grant execute on function ST_OverlapsSelectivity(pointer,pointer) to public; grant execute on function SE_EqualSelectivity(pointer,pointer) to public; grant execute on function ST_ContainsSelectivity(pointer,pointer) to public; grant execute on function ST_WithinSelectivity(pointer,pointer) to public; grant execute on function SE_EnvelopesIntersectSelectivity(pointer,pointer) to public; grant execute on function ST_IntersectsSelectivity(pointer,pointer) to public; grant execute on function ST_TouchesSelectivity(pointer,pointer) to public; grant execute on function ST_CrossesSelectivity(pointer,pointer) to public; grant execute on function ST_EqualsSelectivity(pointer,pointer) to public; grant execute on function ST_DisjointSelectivity(pointer,pointer) to public; grant execute on function ST_SelectivityTest(lvarchar,lvarchar,lvarchar,ST_Geometry) to public; alter function ST_Overlaps(ST_Geometry,ST_Geometry) with (add selfunc = ST_OverlapsSelectivity); alter function Equal(ST_Geometry,ST_Geometry) with (add selfunc = SE_EqualSelectivity); alter function ST_Contains(ST_Geometry,ST_Geometry) with (add selfunc = ST_ContainsSelectivity); alter function ST_Within(ST_Geometry,ST_Geometry) with (add selfunc = ST_WithinSelectivity); alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) with (add selfunc = SE_EnvelopesIntersectSelectivity); alter function ST_Intersects(ST_Geometry,ST_Geometry) with (add selfunc = ST_IntersectsSelectivity); alter function ST_Touches(ST_Geometry,ST_Geometry) with (add selfunc = ST_TouchesSelectivity); alter function ST_Crosses(ST_Geometry,ST_Geometry) with (add selfunc = ST_CrossesSelectivity); alter function ST_Equals(ST_Geometry,ST_Geometry) with (add selfunc = ST_EqualsSelectivity); alter function ST_Disjoint(ST_Geometry,ST_Geometry) with (add selfunc = ST_DisjointSelectivity); ", "f", " alter function ST_Overlaps(ST_Geometry,ST_Geometry) with (drop selfunc); alter function Equal(ST_Geometry,ST_Geometry) with (drop selfunc); alter function ST_Contains(ST_Geometry,ST_Geometry) with (drop selfunc); alter function ST_Within(ST_Geometry,ST_Geometry) with (drop selfunc); alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) with (drop selfunc); alter function ST_Intersects(ST_Geometry,ST_Geometry) with (drop selfunc); alter function ST_Touches(ST_Geometry,ST_Geometry) with (drop selfunc); alter function ST_Crosses(ST_Geometry,ST_Geometry) with (drop selfunc); alter function ST_Equals(ST_Geometry,ST_Geometry) with (drop selfunc); alter function ST_Disjoint(ST_Geometry,ST_Geometry) with (drop selfunc); drop function ST_OverlapsSelectivity(pointer,pointer); drop function SE_EqualSelectivity(pointer,pointer); drop function ST_ContainsSelectivity(pointer,pointer); drop function ST_WithinSelectivity(pointer,pointer); drop function SE_EnvelopesIntersectSelectivity(pointer,pointer); drop function ST_IntersectsSelectivity(pointer,pointer); drop function ST_TouchesSelectivity(pointer,pointer); drop function ST_CrossesSelectivity(pointer,pointer); drop function ST_EqualsSelectivity(pointer,pointer); drop function ST_DisjointSelectivity(pointer,pointer); drop function ST_SelectivityTest(lvarchar,lvarchar,lvarchar,ST_Geometry); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "selectivity.sql", "%SYSBLDUSER%", 0, "opclass.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "params.sql", "%SYSBLDUSER%", 0, "create function SE_ParamSet(lvarchar,lvarchar) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamSet)' language c; create function SE_ParamSet() returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamSetUsage)' language c; create function SE_ParamGet(lvarchar) returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamGetOne)' language c; create function SE_ParamGet() returns lvarchar with (not variant) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamGetAll)' language c; grant execute on function SE_ParamSet(lvarchar,lvarchar) to public; grant execute on function SE_ParamSet() to public; grant execute on function SE_ParamGet(lvarchar) to public; grant execute on function SE_ParamGet() to public; ", "f", " drop function SE_ParamSet(lvarchar,lvarchar); drop function SE_ParamSet(); drop function SE_ParamGet(lvarchar); drop function SE_ParamGet(); ", "f" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 15, "Ispatial", "%SYSBLDUSER%", 0, "insert into sysbldiprovided (bldi_id, bld_id) values ( ""Ispatial"", ""%SYSBLDNAME%"" ); ", "f", "delete from sysbldiprovided where bldi_id = ""Ispatial"" and bld_id = ""%SYSBLDNAME%""; ", "f" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 15, "ifxrltree1", "%SYSBLDUSER%", 0, "insert into sysbldirequired (bldi_id, bld_id) values ( ""ifxrltree1"", ""%SYSBLDNAME%"" ); ", "f", "delete from sysbldirequired where bldi_id = ""ifxrltree1"" and bld_id = ""%SYSBLDNAME%""; ", "f" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "uom_table.sql", "%SYSBLDUSER%", 0, " create table sde.st_units_of_measure ( unit_name varchar(128) not null primary key, unit_type varchar(16) not null, conversion_factor double precision not null, description varchar(255) ); ", "f", " drop table st_units_of_measure; ", "f" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "remake_metatable.sql", "%SYSBLDUSER%", 0, " -- SE_MetadataTable needs to be created after st_units_of_measure (and spatial_references) -- for dbexport/dbimport to work CREATE PROCEDURE SE_setup_metatable() DEFINE tab_exists INT; LET tab_exists = 0; SELECT count(*) INTO tab_exists FROM informix.systables WHERE tabname='se_metadatatable'; IF (tab_exists = 1) THEN DROP TABLE SE_MetadataTable; CREATE TABLE SE_MetadataTable ( smd SE_Metadata ); REVOKE ALL ON SE_MetadataTable FROM public; END IF END PROCEDURE; -- SE_setup_metatable EXECUTE PROCEDURE SE_setup_metatable(); DROP PROCEDURE SE_setup_metatable(); ", "f", "", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "remake_metatable.sql", "%SYSBLDUSER%", 0, "uom_table.sql", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "remake_metatable.sql", "%SYSBLDUSER%", 0, "metadata_tables.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "uom_udrs.sql", "%SYSBLDUSER%", 0, " create function ST_Buffer(ST_Geometry,float,varchar(128)) returns ST_Geometry with (not variant, parallelizable, percall_cost=8000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Buffer_uom)' language c; create function ST_Distance(ST_Geometry,ST_Geometry,varchar(128)) returns float with (not variant, parallelizable, percall_cost=300) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Distance_uom)' language c; create function ST_Length(ST_Curve,varchar(128)) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthCurve_uom)' language c; create function ST_Area(ST_Surface,varchar(128)) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaSurface_uom)' language c; create function ST_Perimeter(ST_Surface,varchar(128)) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterSurface_uom)' language c; create function ST_Length(ST_MultiCurve,varchar(128)) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthMultiCurve_uom)' language c; create function ST_Area(ST_MultiSurface,varchar(128)) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaMultiSurface_uom)' language c; create function ST_Perimeter(ST_MultiSurface,varchar(128)) returns float with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterMultiSurface_uom)' language c; create function SE_CreateSrid( integer, varchar(64) default null, varchar(64) default null, integer default null) returns integer with (handlesnulls, stack=256000) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrid_factory)' language c; grant execute on function ST_Buffer (ST_Geometry,float, varchar(128)) to public; grant execute on function ST_Distance (ST_Geometry,ST_Geometry, varchar(128)) to public; grant execute on function ST_Length (ST_Curve, varchar(128)) to public; grant execute on function ST_Area (ST_Surface, varchar(128)) to public; grant execute on function ST_Perimeter (ST_Surface, varchar(128)) to public; grant execute on function ST_Length (ST_MultiCurve, varchar(128)) to public; grant execute on function ST_Area (ST_MultiSurface, varchar(128)) to public; grant execute on function ST_Perimeter (ST_MultiSurface, varchar(128)) to public; grant execute on function SE_CreateSrid(integer, varchar(64), varchar(64), integer) to public; ", "f", " drop function ST_Buffer(ST_Geometry,float, varchar(128)); drop function ST_Distance(ST_Geometry,ST_Geometry, varchar(128)); drop function ST_Length(ST_Curve, varchar(128)); drop function ST_Area(ST_Surface, varchar(128)); drop function ST_Perimeter(ST_Surface, varchar(128)); drop function ST_Length(ST_MultiCurve, varchar(128)); drop function ST_Area(ST_MultiSurface, varchar(128)); drop function ST_Perimeter(ST_MultiSurface, varchar(128)); drop function SE_CreateSrid(integer, varchar(64), varchar(64), integer); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "uom_udrs.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "srs_uom_load.sql", "%SYSBLDUSER%", 0, "create procedure SE_TEMP_load_uom() external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Load_uom)' language c; create procedure SE_TEMP_load_srs() external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Load_srs)' language c; execute procedure SE_TEMP_load_uom(); execute procedure SE_TEMP_load_srs(); drop procedure SE_TEMP_load_uom(); drop procedure SE_TEMP_load_srs(); ", "f", " delete from sde.spatial_references where srtext in ('PROJCS','GEOGCS'); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "srs_uom_load.sql", "%SYSBLDUSER%", 0, "remake_metatable.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "spatial_references_expand.sql", "%SYSBLDUSER%", 0, " create view sde.spatial_references_expand( srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, srtext) as select srid, description, auth_name, auth_srid, falsex, falsey, xyunits, falsez, zunits, falsem, munits, CASE WHEN srtext IN ('PROJCS','GEOGCS') THEN SE_CreateSrtext(srid, srtext) ELSE srtext END as srtext from sde.spatial_references; ", "f", "drop view sde.spatial_references_expand;", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "spatial_references_expand.sql", "%SYSBLDUSER%", 0, "metadata_tables.sql", "%SYSBLDUSER%" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "spatial_references_expand.sql", "%SYSBLDUSER%", 0, "miscfuncs.%SYSBLDDIR%", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "bson_udrs.sql", "%SYSBLDUSER%", 0, " create function SE_GeomFromBSON(bson,varchar(255)) returns ST_Geometry with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromBSON)' language c; create function SE_PointFromBSON(bson,varchar(255)) returns ST_Point with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromBSON)' language c; create function SE_LineFromBSON(bson,varchar(255)) returns ST_LineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromBSON)' language c; create function SE_PolyFromBSON(bson,varchar(255)) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromBSON)' language c; create function SE_MPointFromBSON(bson,varchar(255)) returns ST_MultiPoint with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromBSON)' language c; create function SE_MLineFromBSON(bson,varchar(255)) returns ST_MultiLineString with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromBSON)' language c; create function SE_MPolyFromBSON(bson,varchar(255)) returns ST_MultiPolygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromBSON)' language c; create function SE_BBoxFromBSON(bson,varchar(255)) returns ST_Polygon with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_BBoxFromBSON)' language c; create function SE_GeomFromBSON(bson,varchar(255), integer) returns ST_Geometry with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromBSON_srid)' language c; create function SE_PointFromBSON(bson,varchar(255), integer) returns ST_Point with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromBSON_srid)' language c; create function SE_LineFromBSON(bson,varchar(255), integer) returns ST_LineString with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromBSON_srid)' language c; create function SE_PolyFromBSON(bson,varchar(255), integer) returns ST_Polygon with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromBSON_srid)' language c; create function SE_MPointFromBSON(bson,varchar(255), integer) returns ST_MultiPoint with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromBSON_srid)' language c; create function SE_MLineFromBSON(bson,varchar(255), integer) returns ST_MultiLineString with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromBSON_srid)' language c; create function SE_MPolyFromBSON(bson,varchar(255), integer) returns ST_MultiPolygon with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromBSON_srid)' language c; create function SE_BBoxFromBSON(bson,varchar(255), integer) returns ST_Polygon with (handlesnulls, not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_BBoxFromBSON_srid)' language c; grant execute on function SE_GeomFromBSON (bson,varchar(255)) to public; grant execute on function SE_PointFromBSON (bson,varchar(255)) to public; grant execute on function SE_LineFromBSON (bson,varchar(255)) to public; grant execute on function SE_PolyFromBSON (bson,varchar(255)) to public; grant execute on function SE_MPointFromBSON (bson,varchar(255)) to public; grant execute on function SE_MLineFromBSON (bson,varchar(255)) to public; grant execute on function SE_MPolyFromBSON (bson,varchar(255)) to public; grant execute on function SE_BBoxFromBSON (bson,varchar(255)) to public; grant execute on function SE_GeomFromBSON (bson,varchar(255), integer) to public; grant execute on function SE_PointFromBSON (bson,varchar(255), integer) to public; grant execute on function SE_LineFromBSON (bson,varchar(255), integer) to public; grant execute on function SE_PolyFromBSON (bson,varchar(255), integer) to public; grant execute on function SE_MPointFromBSON (bson,varchar(255), integer) to public; grant execute on function SE_MLineFromBSON (bson,varchar(255), integer) to public; grant execute on function SE_MPolyFromBSON (bson,varchar(255), integer) to public; grant execute on function SE_BBoxFromBSON (bson,varchar(255), integer) to public; ", "f", " drop function SE_GeomFromBSON (bson,varchar(255)); drop function SE_PointFromBSON (bson,varchar(255)); drop function SE_LineFromBSON (bson,varchar(255)); drop function SE_PolyFromBSON (bson,varchar(255)); drop function SE_MPointFromBSON (bson,varchar(255)); drop function SE_MLineFromBSON (bson,varchar(255)); drop function SE_MPolyFromBSON (bson,varchar(255)); drop function SE_BBoxFromBSON (bson,varchar(255)); drop function SE_GeomFromBSON (bson,varchar(255), integer); drop function SE_PointFromBSON (bson,varchar(255), integer); drop function SE_LineFromBSON (bson,varchar(255), integer); drop function SE_PolyFromBSON (bson,varchar(255), integer); drop function SE_MPointFromBSON (bson,varchar(255), integer); drop function SE_MLineFromBSON (bson,varchar(255), integer); drop function SE_MPolyFromBSON (bson,varchar(255), integer); drop function SE_BBoxFromBSON (bson,varchar(255), integer); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "bson_udrs.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "asbson.sql", "%SYSBLDUSER%", 0, " create function SE_AsBSON(ST_Geometry) returns bson with (not variant, parallelizable) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsBSON)' language c; grant execute on function SE_AsBSON (ST_Geometry) to public; ", "f", " drop function SE_AsBSON (ST_Geometry); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "asbson.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "api_interface.sql", "%SYSBLDUSER%", 0, " create function SE_API_make_point() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_point)' language c; create function SE_API_make_linestring() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_linestring)' language c; create function SE_API_make_polygon() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_polygon)' language c; create function SE_API_make_multipoint() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_multipoint)' language c; create function SE_API_make_multilinestring() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_multilinestring)' language c; create function SE_API_make_multipolygon() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_multipolygon)' language c; create function SE_API_length() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_length)' language c; create function SE_API_generalize() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_generalize)' language c; create function SE_API_output() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_output)' language c; create function SE_API_geodesic_distance() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_geodesic_distance)' language c; create function SE_API_getxy() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_getxy)' language c; create function SE_API_union() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_union)' language c; create function SE_API_operation_ph1() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph1)' language c; create function SE_API_operation_ph2() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph2)' language c; create function SE_API_operation_ph3() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph3)' language c; create function SE_API_operation_ph4() returns pointer with (not variant, internal, handlesnulls) external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph4)' language c; ", "f", " drop function SE_API_make_point (); drop function SE_API_make_linestring (); drop function SE_API_make_polygon (); drop function SE_API_make_multipoint (); drop function SE_API_make_multilinestring (); drop function SE_API_make_multipolygon (); drop function SE_API_length (); drop function SE_API_generalize (); drop function SE_API_output (); drop function SE_API_geodesic_distance (); drop function SE_API_getxy(); drop function SE_API_union(); drop function SE_API_operation_ph1(); drop function SE_API_operation_ph2(); drop function SE_API_operation_ph3(); drop function SE_API_operation_ph4(); ", "f" ); insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner, need_obj_kind, need_obj_signature, need_obj_owner) values ( "%SYSBLDNAME%", 0, "api_interface.sql", "%SYSBLDUSER%", 0, "types.sql", "%SYSBLDUSER%" ); insert into sysbldobjects (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql, create_can_fail, drop_sql, drop_can_fail) values ( "%SYSBLDNAME%", 0, "sysbldregistered", "%SYSBLDUSER%", 0, "insert into sysbldregistered (bld_id) values ( ""%SYSBLDNAME%"" ); ", "f", "delete from sysbldregistered where bld_id = ""%SYSBLDNAME%""; ", "f" );