objects.sql 232 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176
  1. -- Generated by BladeSmith 3.60.TC2 DO NOT MODIFY. --
  2. execute procedure ifx_allow_newline('t');
  3. insert into sysbldobjects
  4. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5. create_can_fail, drop_sql, drop_can_fail)
  6. values
  7. (
  8. "%SYSBLDNAME%", 0, "metadata_tables.sql",
  9. "%SYSBLDUSER%", 0,
  10. "------------------------------------------------------------------------
  11. -- SE_setup_tables
  12. --
  13. -- This procedure creates the spatial_references and geometry_columns
  14. -- tables if they do not already exist.
  15. --
  16. -- This procedure replaces the 8.1x version of SE_setup_tables, which
  17. -- copied entries from the sde database's spatial_references and
  18. -- geometry_columns tables (if they exist) into the current database's
  19. -- tables. This was to allow migration from SDE3.0.2.2 to ArcSde8.1.
  20. -- Direct migration is no longer supported, you must first register
  21. -- spatial datablade version 8.1x.
  22. ------------------------------------------------------------------------
  23. CREATE PROCEDURE SE_setup_tables()
  24. DEFINE tab_exists INT;
  25. LET tab_exists = 0;
  26. SELECT count(*) INTO tab_exists FROM informix.systables
  27. WHERE tabname='spatial_references';
  28. IF (tab_exists = 0) THEN
  29. -- Metadata tables do not exist; fresh install
  30. CREATE TABLE sde.spatial_references
  31. (
  32. srid integer NOT NULL,
  33. description varchar(64),
  34. auth_name varchar(255),
  35. auth_srid int,
  36. falsex float NOT NULL,
  37. falsey float NOT NULL,
  38. xyunits float NOT NULL,
  39. falsez float NOT NULL,
  40. zunits float NOT NULL,
  41. falsem float NOT NULL,
  42. munits float NOT NULL,
  43. srtext char(2048) NOT NULL,
  44. PRIMARY KEY (srid)
  45. CONSTRAINT sde.sp_ref_pk
  46. );
  47. CREATE TABLE sde.geometry_columns
  48. (
  49. f_table_catalog varchar(32) NOT NULL,
  50. f_table_schema varchar(32) NOT NULL,
  51. f_table_name varchar(128) NOT NULL,
  52. f_geometry_column varchar(128) NOT NULL,
  53. storage_type integer,
  54. geometry_type integer NOT NULL,
  55. coord_dimension integer,
  56. srid integer NOT NULL,
  57. PRIMARY KEY (f_table_catalog, f_table_schema,
  58. f_table_name, f_geometry_column)
  59. CONSTRAINT sde.geocol_pk,
  60. FOREIGN KEY(srid) REFERENCES sde.spatial_references(srid)
  61. CONSTRAINT sde.geocol_fk
  62. );
  63. CREATE VIEW sde.spatial_ref_sys AS
  64. SELECT srid, auth_name, auth_srid, srtext FROM sde.spatial_references;
  65. create opaque type SE_Metadata
  66. (internallength = variable, alignment = 8);
  67. create table SE_MetadataTable
  68. (
  69. smd SE_Metadata
  70. );
  71. revoke all on SE_MetadataTable from public;
  72. END IF
  73. END PROCEDURE; -- SE_setup_tables
  74. EXECUTE PROCEDURE SE_setup_tables();
  75. DROP PROCEDURE SE_setup_tables();
  76. ",
  77. "f",
  78. "drop table sde.geometry_columns;
  79. drop table sde.spatial_references;
  80. drop table SE_MetadataTable;
  81. drop type SE_Metadata restrict;
  82. ",
  83. "f"
  84. );
  85. insert into sysbldobjects
  86. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  87. create_can_fail, drop_sql, drop_can_fail)
  88. values
  89. (
  90. "%SYSBLDNAME%", 0, "addsrids.sql",
  91. "%SYSBLDUSER%", 0,
  92. "------------------------------------------------------------------------
  93. -- SE_add_srids
  94. --
  95. -- The procedure inserts several entries into the spatial references
  96. -- table if they do not already exist. These entries are intended
  97. -- for use by the sample shapefile data that is supplied along with
  98. -- the datablade. They represent four very common datums and each
  99. -- has a false origin and scale factors suitable for worldwide
  100. -- unprojected (lat/lon) data.
  101. ------------------------------------------------------------------------
  102. CREATE PROCEDURE SE_add_srids();
  103. DEFINE ZeroInUse INT;
  104. DEFINE LastSrid INT;
  105. DEFINE FoundUnk INT;
  106. DEFINE FoundWGS84 INT;
  107. DEFINE FoundNAD27 INT;
  108. DEFINE FoundNAD83 INT;
  109. DEFINE FoundOldHI INT;
  110. LET ZeroInUse = 0;
  111. LET LastSrid = 0;
  112. LET FoundUnk = 0;
  113. LET FoundWGS84 = 0;
  114. LET FoundNAD27 = 0;
  115. LET FoundNAD83 = 0;
  116. LET FoundOldHI = 0;
  117. SELECT count(*) INTO ZeroInUse FROM sde.spatial_references WHERE srid = 0;
  118. -- Correct srtext field for unknown spatial reference systems
  119. UPDATE sde.spatial_references
  120. SET srtext = 'UNKNOWN' WHERE srtext = 'WORLD';
  121. -- Check if each of the SRIDs we are about to insert already exists.
  122. SELECT count(*) INTO FoundUnk FROM sde.spatial_references
  123. WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232
  124. AND srtext = 'UNKNOWN';
  125. SELECT count(*) INTO FoundWGS84 FROM sde.spatial_references
  126. WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232
  127. AND srtext = 'GEOGCS[""GCS_WGS_1984"",DATUM[""D_WGS_1984"",SPHEROID[""WGS_1984"",6378137,298.257223563]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]';
  128. SELECT count(*) INTO FoundNAD27 FROM sde.spatial_references
  129. WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232
  130. 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]]';
  131. SELECT count(*) INTO FoundNAD83 FROM sde.spatial_references
  132. WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232
  133. 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]]';
  134. SELECT count(*) INTO FoundOldHI FROM sde.spatial_references
  135. WHERE falsex = -180 AND falsey = -90 AND xyunits = 5965232
  136. AND srtext = 'GEOGCS[""GCS_Old_Hawaiian"",DATUM[""D_Old_Hawaiian"",SPHEROID[""Clarke_1866"",6378206.4,294.9786982]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]';
  137. IF (ZeroInUse = 0) THEN
  138. -- srid 0 is not in use, so use it for generic worldwide data
  139. INSERT INTO sde.spatial_references
  140. (srid, description, auth_name, auth_srid, falsex, falsey,
  141. xyunits, falsez, zunits, falsem, munits, srtext)
  142. VALUES (0, 'Unspecified datum for use with unprojected lat/lon coords',
  143. NULL, NULL, -180, -90,
  144. 5965232, -50000, 1000, -1000, 1000, 'UNKNOWN');
  145. LET FoundUnk = 1;
  146. END IF
  147. SELECT max(srid) INTO LastSrid FROM sde.spatial_references;
  148. IF (FoundUnk = 0) THEN
  149. LET LastSrid = LastSrid + 1;
  150. INSERT INTO sde.spatial_references
  151. (srid, description, auth_name, auth_srid, falsex, falsey,
  152. xyunits, falsez, zunits, falsem, munits, srtext)
  153. VALUES (LastSrid,
  154. 'Unspecified datum for use with unprojected lat/lon coords',
  155. NULL, NULL, -180, -90,
  156. 5965232, -50000, 1000, -1000, 1000, 'UNKNOWN');
  157. END IF
  158. IF (FoundOldHI = 0) THEN
  159. LET LastSrid = LastSrid + 1;
  160. INSERT INTO sde.spatial_references
  161. (srid, description, auth_name, auth_srid, falsex, falsey,
  162. xyunits, falsez, zunits, falsem, munits, srtext)
  163. VALUES (LastSrid,
  164. 'Old Hawaiian datum for use with unprojected lat/lon coords',
  165. 'EPSG', 4135, -180, -90, 5965232, -50000, 1000, -1000, 1000,
  166. 'GEOGCS[""GCS_Old_Hawaiian"",DATUM[""D_Old_Hawaiian"",SPHEROID[""Clarke_1866"",6378206.4,294.9786982]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]');
  167. END IF
  168. IF (FoundNAD27 = 0) THEN
  169. LET LastSrid = LastSrid + 1;
  170. INSERT INTO sde.spatial_references
  171. (srid, description, auth_name, auth_srid, falsex, falsey,
  172. xyunits, falsez, zunits, falsem, munits, srtext)
  173. VALUES (LastSrid,
  174. 'NAD 1927 datum for use with unprojected lat/lon coords',
  175. 'EPSG', 4267, -180, -90, 5965232, -50000, 1000, -1000, 1000,
  176. 'GEOGCS[""GCS_North_American_1927"",DATUM[""D_North_American_1927"",SPHEROID[""Clarke_1866"",6378206.4,294.9786982]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]');
  177. END IF
  178. IF (FoundNAD83 = 0) THEN
  179. LET LastSrid = LastSrid + 1;
  180. INSERT INTO sde.spatial_references
  181. (srid, description, auth_name, auth_srid, falsex, falsey,
  182. xyunits, falsez, zunits, falsem, munits, srtext)
  183. VALUES (LastSrid,
  184. 'NAD 1983 datum for use with unprojected lat/lon coords',
  185. 'EPSG', 4269, -180, -90, 5965232, -50000, 1000, -1000, 1000,
  186. 'GEOGCS[""GCS_North_American_1983"",DATUM[""D_North_American_1983"",SPHEROID[""GRS_1980"",6378137,298.257222101]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]');
  187. END IF
  188. IF (FoundWGS84 = 0) THEN
  189. LET LastSrid = LastSrid + 1;
  190. INSERT INTO sde.spatial_references
  191. (srid, description, auth_name, auth_srid, falsex, falsey,
  192. xyunits, falsez, zunits, falsem, munits, srtext)
  193. VALUES (LastSrid,
  194. 'WGS 84 datum for use with unprojected lat/lon coords',
  195. 'EPSG', 4326, -180, -90, 5965232, -50000, 1000, -1000, 1000,
  196. 'GEOGCS[""GCS_WGS_1984"",DATUM[""D_WGS_1984"",SPHEROID[""WGS_1984"",6378137,298.257223563]],PRIMEM[""Greenwich"",0],UNIT[""Degree"",0.0174532925199433]]');
  197. END IF
  198. END PROCEDURE;
  199. EXECUTE PROCEDURE SE_add_srids();
  200. DROP PROCEDURE SE_add_srids();
  201. ",
  202. "f",
  203. "-- No drop statements needed for this object
  204. ",
  205. "f"
  206. );
  207. insert into sysbldobjdepends
  208. (bld_id, obj_kind, obj_signature, obj_owner,
  209. need_obj_kind, need_obj_signature, need_obj_owner)
  210. values
  211. (
  212. "%SYSBLDNAME%",
  213. 0, "addsrids.sql",
  214. "%SYSBLDUSER%",
  215. 0, "metadata_tables.sql",
  216. "%SYSBLDUSER%"
  217. );
  218. insert into sysbldobjects
  219. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  220. create_can_fail, drop_sql, drop_can_fail)
  221. values
  222. (
  223. "%SYSBLDNAME%", 0, "sbspace.sql",
  224. "%SYSBLDUSER%", 0,
  225. "create function SE_TestSbspace(varchar(255)) returns lvarchar
  226. with (variant)
  227. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_TestSbspace)'
  228. language c;
  229. grant execute on function SE_TestSbspace(varchar(255)) to public;
  230. -- Verify that a default sbspace has been created.
  231. -- The Spatial DataBlade needs this to store metadata.
  232. select SE_TestSbspace(""SBSPACENAME"") from informix.systables where tabname='systables';
  233. -- Verify that a system sbspace has been created. This is needed
  234. -- if you run update statistics medium or high on a Spatial column.
  235. select SE_TestSbspace(""SYSSBSPACENAME"") from informix.systables where tabname='systables';
  236. ",
  237. "f",
  238. "
  239. drop function SE_TestSbspace(varchar(255));
  240. ",
  241. "f"
  242. );
  243. insert into sysbldobjdepends
  244. (bld_id, obj_kind, obj_signature, obj_owner,
  245. need_obj_kind, need_obj_signature, need_obj_owner)
  246. values
  247. (
  248. "%SYSBLDNAME%",
  249. 0, "sbspace.sql",
  250. "%SYSBLDUSER%",
  251. 0, "addsrids.sql",
  252. "%SYSBLDUSER%"
  253. );
  254. insert into sysbldobjects
  255. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  256. create_can_fail, drop_sql, drop_can_fail)
  257. values
  258. (
  259. "%SYSBLDNAME%", 0, "spreftriggers.sql",
  260. "%SYSBLDUSER%", 0,
  261. "create procedure SE_SpRefInsTrigger(
  262. integer,
  263. varchar(64),
  264. varchar(255),
  265. int,
  266. float,
  267. float,
  268. float,
  269. float,
  270. float,
  271. float,
  272. float,
  273. char(2048))
  274. with (not variant, handlesnulls)
  275. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpRefInsTrigger)'
  276. language c;
  277. create procedure SE_SpRefUpdTrigger(
  278. integer,
  279. integer,
  280. varchar(64),
  281. varchar(255),
  282. int,
  283. float,
  284. float,
  285. float,
  286. float,
  287. float,
  288. float,
  289. float,
  290. char(2048))
  291. with (not variant, handlesnulls)
  292. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpRefUpdTrigger)'
  293. language c;
  294. create procedure SE_SpRefDelTrigger(integer)
  295. with (not variant)
  296. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpRefDelTrigger)'
  297. language c;
  298. grant execute on procedure SE_SpRefInsTrigger(
  299. integer,
  300. varchar(64),
  301. varchar(255),
  302. int,
  303. float,
  304. float,
  305. float,
  306. float,
  307. float,
  308. float,
  309. float,
  310. char(2048)) to public;
  311. grant execute on procedure SE_SpRefUpdTrigger(
  312. integer,
  313. integer,
  314. varchar(64),
  315. varchar(255),
  316. int,
  317. float,
  318. float,
  319. float,
  320. float,
  321. float,
  322. float,
  323. float,
  324. char(2048)) to public;
  325. grant execute on procedure SE_SpRefDelTrigger(integer) to public;
  326. create procedure SE_UoMInsTrigger(
  327. varchar(128),
  328. varchar(16),
  329. double precision,
  330. varchar(255))
  331. with (not variant, handlesnulls)
  332. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UoMInsTrigger)'
  333. language c;
  334. create procedure SE_UoMUpdTrigger(
  335. varchar(128),
  336. varchar(128),
  337. varchar(16),
  338. double precision,
  339. varchar(255))
  340. with (not variant, handlesnulls)
  341. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UoMUpdTrigger)'
  342. language c;
  343. create procedure SE_UoMDelTrigger(varchar(128))
  344. with (not variant)
  345. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UoMDelTrigger)'
  346. language c;
  347. grant execute on procedure SE_UoMInsTrigger(
  348. varchar(128),
  349. varchar(16),
  350. double precision,
  351. varchar(255)) to public;
  352. grant execute on procedure SE_UoMUpdTrigger(
  353. varchar(128),
  354. varchar(128),
  355. varchar(16),
  356. double precision,
  357. varchar(255)) to public;
  358. grant execute on procedure SE_UoMDelTrigger(varchar(128)) to public;
  359. create trigger SE_SpRefInsTrig
  360. insert on sde.spatial_references
  361. referencing new as spref
  362. for each row (execute procedure SE_SpRefInsTrigger(
  363. spref.srid,
  364. spref.description,
  365. spref.auth_name,
  366. spref.auth_srid,
  367. spref.falsex,
  368. spref.falsey,
  369. spref.xyunits,
  370. spref.falsez,
  371. spref.zunits,
  372. spref.falsem,
  373. spref.munits,
  374. spref.srtext));
  375. create trigger SE_SpRefUpdTrig
  376. update on sde.spatial_references
  377. referencing
  378. old as old_spref
  379. new as new_spref
  380. for each row (execute procedure SE_SpRefUpdTrigger(
  381. old_spref.srid,
  382. new_spref.srid,
  383. new_spref.description,
  384. new_spref.auth_name,
  385. new_spref.auth_srid,
  386. new_spref.falsex,
  387. new_spref.falsey,
  388. new_spref.xyunits,
  389. new_spref.falsez,
  390. new_spref.zunits,
  391. new_spref.falsem,
  392. new_spref.munits,
  393. new_spref.srtext));
  394. create trigger SE_SpRefDelTrig
  395. delete on sde.spatial_references
  396. referencing old as spref
  397. for each row (execute procedure SE_SpRefDelTrigger(spref.srid));
  398. create trigger SE_UoMInsTrig
  399. insert on sde.st_units_of_measure
  400. referencing new as uom
  401. for each row (execute procedure SE_UoMInsTrigger(
  402. uom.unit_name,
  403. uom.unit_type,
  404. uom.conversion_factor,
  405. uom.description));
  406. create trigger SE_UomUpdTrig
  407. update on sde.st_units_of_measure
  408. referencing
  409. old as old_uom
  410. new as new_uom
  411. for each row (
  412. execute procedure SE_UoMUpdTrigger(
  413. old_uom.unit_name,
  414. new_uom.unit_name,
  415. new_uom.unit_type,
  416. new_uom.conversion_factor,
  417. new_uom.description));
  418. create trigger SE_UoMDelTrig
  419. delete on sde.st_units_of_measure
  420. referencing old as uom
  421. for each row (execute procedure SE_UoMDelTrigger(uom.unit_name));
  422. ",
  423. "f",
  424. "
  425. create procedure SE_DropSpRefTriggers()
  426. begin
  427. on exception in (-634) end exception with resume
  428. drop trigger SE_SpRefInsTrig;
  429. drop trigger SE_SpRefUpdTrig;
  430. drop trigger SE_SpRefDelTrig;
  431. drop trigger SE_UoMInsTrig;
  432. drop trigger SE_UoMUpdTrig;
  433. drop trigger SE_UoMDelTrig;
  434. end
  435. end procedure;
  436. execute procedure SE_DropSpRefTriggers();
  437. drop procedure SE_DropSpRefTriggers();
  438. drop procedure SE_SpRefInsTrigger(
  439. integer,
  440. varchar(64),
  441. varchar(255),
  442. int,
  443. float,
  444. float,
  445. float,
  446. float,
  447. float,
  448. float,
  449. float,
  450. char(2048));
  451. drop procedure SE_SpRefUpdTrigger(
  452. integer,
  453. integer,
  454. varchar(64),
  455. varchar(255),
  456. int,
  457. float,
  458. float,
  459. float,
  460. float,
  461. float,
  462. float,
  463. float,
  464. char(2048));
  465. drop procedure SE_SpRefDelTrigger(integer);
  466. drop procedure SE_UoMInsTrigger(
  467. varchar(128),
  468. varchar(16),
  469. double precision,
  470. varchar(255));
  471. drop procedure SE_UoMUpdTrigger(
  472. varchar(128),
  473. varchar(128),
  474. varchar(16),
  475. double precision,
  476. varchar(255));
  477. drop procedure SE_UoMDelTrigger(varchar(128));
  478. ",
  479. "f"
  480. );
  481. insert into sysbldobjdepends
  482. (bld_id, obj_kind, obj_signature, obj_owner,
  483. need_obj_kind, need_obj_signature, need_obj_owner)
  484. values
  485. (
  486. "%SYSBLDNAME%",
  487. 0, "spreftriggers.sql",
  488. "%SYSBLDUSER%",
  489. 0, "srs_uom_load.sql",
  490. "%SYSBLDUSER%"
  491. );
  492. insert into sysbldobjdepends
  493. (bld_id, obj_kind, obj_signature, obj_owner,
  494. need_obj_kind, need_obj_signature, need_obj_owner)
  495. values
  496. (
  497. "%SYSBLDNAME%",
  498. 0, "spreftriggers.sql",
  499. "%SYSBLDUSER%",
  500. 0, "sbspace.sql",
  501. "%SYSBLDUSER%"
  502. );
  503. insert into sysbldobjects
  504. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  505. create_can_fail, drop_sql, drop_can_fail)
  506. values
  507. (
  508. "%SYSBLDNAME%", 0, "pdqfuncs.%SYSBLDDIR%",
  509. "%SYSBLDUSER%", 0,
  510. "
  511. create function SE_MetadataIn (lvarchar) returns SE_Metadata
  512. with (not variant)
  513. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)'
  514. language c;
  515. create function SE_MetadataOut (SE_Metadata) returns lvarchar
  516. with (not variant)
  517. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)'
  518. language c;
  519. create function SE_MetadataSend (SE_Metadata) returns sendrecv
  520. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)'
  521. language c;
  522. create function SE_MetadataRecv (sendrecv) returns SE_Metadata
  523. with (not variant)
  524. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)'
  525. language c;
  526. create function SE_MetadataImpT (impexp) returns SE_Metadata
  527. with (not variant)
  528. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)'
  529. language c;
  530. create function SE_MetadataExpT (SE_Metadata) returns impexp
  531. with (not variant)
  532. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)'
  533. language c;
  534. create function SE_MetadataImpB (impexpbin) returns SE_Metadata
  535. with (not variant)
  536. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataFromText)'
  537. language c;
  538. create function SE_MetadataExpB (SE_Metadata) returns impexpbin
  539. with (not variant)
  540. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataToText)'
  541. language c;
  542. create procedure Destroy(SE_Metadata)
  543. with (not variant)
  544. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataDestroy)'
  545. language c;
  546. create function LOhandles(SE_Metadata) returns lolist
  547. with (not variant)
  548. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataLOhandles)'
  549. language c;
  550. create function SE_MetadataDump(int) returns lvarchar
  551. with (not variant)
  552. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataDump)'
  553. language c;
  554. grant usage on type SE_Metadata to public;
  555. grant execute on function SE_MetadataIn (lvarchar) to public;
  556. grant execute on function SE_MetadataOut (SE_Metadata) to public;
  557. grant execute on function SE_MetadataSend (SE_Metadata) to public;
  558. grant execute on function SE_MetadataRecv (sendrecv) to public;
  559. grant execute on function SE_MetadataImpT (impexp) to public;
  560. grant execute on function SE_MetadataExpT (SE_Metadata) to public;
  561. grant execute on function SE_MetadataImpB (impexpbin) to public;
  562. grant execute on function SE_MetadataExpB (SE_Metadata) to public;
  563. grant execute on procedure Destroy(SE_Metadata) to public;
  564. grant execute on function LOhandles(SE_Metadata) to public;
  565. grant execute on function SE_MetadataDump(int) to public;
  566. create cast (SE_Metadata as lvarchar with SE_MetadataOut);
  567. create cast (SE_Metadata as sendrecv with SE_MetadataSend);
  568. create cast (SE_Metadata as impexp with SE_MetadataExpT);
  569. create cast (SE_Metadata as impexpbin with SE_MetadataExpB);
  570. create implicit cast (lvarchar as SE_Metadata with SE_MetadataIn);
  571. create implicit cast (sendrecv as SE_Metadata with SE_MetadataRecv);
  572. create implicit cast (impexp as SE_Metadata with SE_MetadataImpT);
  573. create implicit cast (impexpbin as SE_Metadata with SE_MetadataImpB);
  574. ",
  575. "f",
  576. "
  577. drop cast (SE_Metadata as lvarchar);
  578. drop cast (SE_Metadata as sendrecv);
  579. drop cast (SE_Metadata as impexp);
  580. drop cast (SE_Metadata as impexpbin);
  581. drop cast (lvarchar as SE_Metadata);
  582. drop cast (sendrecv as SE_Metadata);
  583. drop cast (impexp as SE_Metadata);
  584. drop cast (impexpbin as SE_Metadata);
  585. drop function SE_MetadataIn (lvarchar);
  586. drop function SE_MetadataOut (SE_Metadata);
  587. drop function SE_MetadataRecv (sendrecv);
  588. drop function SE_MetadataSend (SE_Metadata);
  589. drop function SE_MetadataImpT (impexp);
  590. drop function SE_MetadataExpT (SE_Metadata);
  591. drop function SE_MetadataImpB (impexpbin);
  592. drop function SE_MetadataExpB (SE_Metadata);
  593. drop procedure Destroy (SE_Metadata);
  594. drop function LOhandles (SE_Metadata);
  595. drop function SE_MetadataDump(int);
  596. ",
  597. "f"
  598. );
  599. insert into sysbldobjdepends
  600. (bld_id, obj_kind, obj_signature, obj_owner,
  601. need_obj_kind, need_obj_signature, need_obj_owner)
  602. values
  603. (
  604. "%SYSBLDNAME%",
  605. 0, "pdqfuncs.%SYSBLDDIR%",
  606. "%SYSBLDUSER%",
  607. 0, "spreftriggers.sql",
  608. "%SYSBLDUSER%"
  609. );
  610. insert into sysbldobjects
  611. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  612. create_can_fail, drop_sql, drop_can_fail)
  613. values
  614. (
  615. "%SYSBLDNAME%", 0, "types.sql",
  616. "%SYSBLDUSER%", 0,
  617. "create opaque type ST_Geometry
  618. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  619. create opaque type ST_Curve
  620. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  621. create opaque type ST_MultiCurve
  622. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  623. create opaque type ST_Surface
  624. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  625. create opaque type ST_MultiSurface
  626. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  627. create opaque type ST_Point
  628. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  629. create opaque type ST_MultiPoint
  630. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  631. create opaque type ST_LineString
  632. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  633. create opaque type ST_MultiLineString
  634. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  635. create opaque type ST_Polygon
  636. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  637. create opaque type ST_MultiPolygon
  638. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  639. create opaque type ST_GeomCollection
  640. (internallength = variable, cannothash, maxlen = 2048, alignment = 8);
  641. grant usage on type ST_Geometry to public;
  642. grant usage on type ST_Curve to public;
  643. grant usage on type ST_MultiCurve to public;
  644. grant usage on type ST_Surface to public;
  645. grant usage on type ST_MultiSurface to public;
  646. grant usage on type ST_Point to public;
  647. grant usage on type ST_MultiPoint to public;
  648. grant usage on type ST_LineString to public;
  649. grant usage on type ST_MultiLineString to public;
  650. grant usage on type ST_Polygon to public;
  651. grant usage on type ST_MultiPolygon to public;
  652. grant usage on type ST_GeomCollection to public;
  653. ",
  654. "f",
  655. "
  656. drop type ST_Geometry restrict;
  657. drop type ST_Curve restrict;
  658. drop type ST_MultiCurve restrict;
  659. drop type ST_Surface restrict;
  660. drop type ST_MultiSurface restrict;
  661. drop type ST_Point restrict;
  662. drop type ST_MultiPoint restrict;
  663. drop type ST_LineString restrict;
  664. drop type ST_MultiLineString restrict;
  665. drop type ST_Polygon restrict;
  666. drop type ST_MultiPolygon restrict;
  667. drop type ST_GeomCollection restrict;
  668. ",
  669. "f"
  670. );
  671. insert into sysbldobjects
  672. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  673. create_can_fail, drop_sql, drop_can_fail)
  674. values
  675. (
  676. "%SYSBLDNAME%", 0, "deepcopy.%SYSBLDDIR%",
  677. "%SYSBLDUSER%", 0,
  678. "create function DeepCopy(ST_Geometry) returns ST_Geometry
  679. with (not variant, parallelizable)
  680. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  681. language c;
  682. create function DeepCopy(ST_Curve) returns ST_Curve
  683. with (not variant, parallelizable)
  684. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  685. language c;
  686. create function DeepCopy(ST_MultiCurve) returns ST_MultiCurve
  687. with (not variant, parallelizable)
  688. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  689. language c;
  690. create function DeepCopy(ST_Surface) returns ST_Surface
  691. with (not variant, parallelizable)
  692. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  693. language c;
  694. create function DeepCopy(ST_MultiSurface) returns ST_MultiSurface
  695. with (not variant, parallelizable)
  696. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  697. language c;
  698. create function DeepCopy(ST_Point) returns ST_Point
  699. with (not variant, parallelizable)
  700. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  701. language c;
  702. create function DeepCopy(ST_MultiPoint) returns ST_MultiPoint
  703. with (not variant, parallelizable)
  704. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  705. language c;
  706. create function DeepCopy(ST_LineString) returns ST_LineString
  707. with (not variant, parallelizable)
  708. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  709. language c;
  710. create function DeepCopy(ST_MultiLineString) returns ST_MultiLineString
  711. with (not variant, parallelizable)
  712. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  713. language c;
  714. create function DeepCopy(ST_Polygon) returns ST_Polygon
  715. with (not variant, parallelizable)
  716. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  717. language c;
  718. create function DeepCopy(ST_MultiPolygon) returns ST_MultiPolygon
  719. with (not variant, parallelizable)
  720. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  721. language c;
  722. create function DeepCopy(ST_GeomCollection) returns ST_GeomCollection
  723. with (not variant, parallelizable)
  724. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDeepCopy)'
  725. language c;
  726. grant execute on function DeepCopy (ST_Geometry) to public;
  727. grant execute on function DeepCopy (ST_Curve) to public;
  728. grant execute on function DeepCopy (ST_MultiCurve) to public;
  729. grant execute on function DeepCopy (ST_Surface) to public;
  730. grant execute on function DeepCopy (ST_MultiSurface) to public;
  731. grant execute on function DeepCopy (ST_Point) to public;
  732. grant execute on function DeepCopy (ST_MultiPoint) to public;
  733. grant execute on function DeepCopy (ST_LineString) to public;
  734. grant execute on function DeepCopy (ST_MultiLineString) to public;
  735. grant execute on function DeepCopy (ST_Polygon) to public;
  736. grant execute on function DeepCopy (ST_MultiPolygon) to public;
  737. grant execute on function DeepCopy (ST_GeomCollection) to public;
  738. ",
  739. "f",
  740. "
  741. drop function DeepCopy(ST_Geometry);
  742. drop function DeepCopy(ST_Curve);
  743. drop function DeepCopy(ST_MultiCurve);
  744. drop function DeepCopy(ST_Surface);
  745. drop function DeepCopy(ST_MultiSurface);
  746. drop function DeepCopy(ST_Point);
  747. drop function DeepCopy(ST_MultiPoint);
  748. drop function DeepCopy(ST_LineString);
  749. drop function DeepCopy(ST_MultiLineString);
  750. drop function DeepCopy(ST_Polygon);
  751. drop function DeepCopy(ST_MultiPolygon);
  752. drop function DeepCopy(ST_GeomCollection);
  753. ",
  754. "f"
  755. );
  756. insert into sysbldobjdepends
  757. (bld_id, obj_kind, obj_signature, obj_owner,
  758. need_obj_kind, need_obj_signature, need_obj_owner)
  759. values
  760. (
  761. "%SYSBLDNAME%",
  762. 0, "deepcopy.%SYSBLDDIR%",
  763. "%SYSBLDUSER%",
  764. 0, "types.sql",
  765. "%SYSBLDUSER%"
  766. );
  767. insert into sysbldobjects
  768. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  769. create_can_fail, drop_sql, drop_can_fail)
  770. values
  771. (
  772. "%SYSBLDNAME%", 0, "hdrdepchk.sql",
  773. "%SYSBLDUSER%", 0,
  774. "
  775. CREATE PROCEDURE SE_HdrDepChk()
  776. DEFINE nmajor integer;
  777. DEFINE slevel integer;
  778. SELECT dbinfo('version','major') INTO nmajor
  779. FROM systables WHERE tabid = 1;
  780. IF ( nmajor >= 11 ) THEN
  781. insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner,
  782. need_obj_kind, need_obj_signature, need_obj_owner)
  783. values ( '%SYSBLDNAME%', 0, 'pdqinit.%SYSBLDDIR%', '%SYSBLDUSER%', 0, 'hdrlog.%SYSBLDDIR%',
  784. '%SYSBLDUSER%' );
  785. ELIF ( nmajor = 10 ) THEN
  786. 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;
  787. IF ( slevel >= 6 ) THEN
  788. insert into sysbldobjdepends (bld_id, obj_kind, obj_signature, obj_owner,
  789. need_obj_kind, need_obj_signature, need_obj_owner)
  790. values ( '%SYSBLDNAME%', 0, 'pdqinit.%SYSBLDDIR%', '%SYSBLDUSER%', 0, 'hdrlog.%SYSBLDDIR%',
  791. '%SYSBLDUSER%' );
  792. END IF
  793. END IF
  794. END PROCEDURE;
  795. EXECUTE PROCEDURE SE_HdrDepChk();
  796. DROP PROCEDURE SE_HdrDepChk;
  797. ",
  798. "f",
  799. " ",
  800. "t"
  801. );
  802. insert into sysbldobjects
  803. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  804. create_can_fail, drop_sql, drop_can_fail)
  805. values
  806. (
  807. "%SYSBLDNAME%", 0, "pdqinit.%SYSBLDDIR%",
  808. "%SYSBLDUSER%", 0,
  809. "create function Assign(SE_Metadata) returns SE_Metadata
  810. with (not variant)
  811. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataAssign)'
  812. language c;
  813. create function SE_MetadataPrep() returns SE_Metadata
  814. with (not variant)
  815. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataPrep)'
  816. language c;
  817. create procedure SE_MetadataInitOnSec(SE_Metadata)
  818. with (not variant)
  819. external name
  820. '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataInitOnSec)'
  821. language c;
  822. create procedure SE_MetadataInitFromLO(lvarchar)
  823. with (not variant)
  824. external name
  825. '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataInitFromLO)'
  826. language c;
  827. create procedure SE_MetadataDestroyLO(lvarchar)
  828. with (not variant)
  829. external name
  830. '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MetadataDestroyLO)'
  831. language c;
  832. grant execute on function Assign(SE_Metadata) to public;
  833. grant execute on function SE_MetadataPrep() to public;
  834. grant execute on procedure SE_MetadataInitOnSec(SE_Metadata) to public;
  835. grant execute on procedure SE_MetadataInitFromLO(lvarchar) to public;
  836. grant execute on procedure SE_MetadataDestroyLO(lvarchar) to public;
  837. create function SE_MetadataInit() returns varchar(255)
  838. define dri_type char(20);
  839. define major_version integer;
  840. select DBINFO('version','major') into major_version from sysmaster:systables where tabid = 1;
  841. if major_version < 11 then
  842. select lower(type) into dri_type from sysmaster:sysdri;
  843. else
  844. select decode(ha_type,0,'not initialized',1,'primary','secondary') into dri_type from sysmaster:sysha_type;
  845. end if
  846. if dri_type = 'secondary' then
  847. begin
  848. define smd_ret SE_Metadata;
  849. select smd into smd_ret from SE_MetadataTable;
  850. execute procedure SE_MetadataInitOnSec(smd_ret);
  851. return 'SUCCESS: SE_Metadata is reinitialized.';
  852. end
  853. else
  854. begin
  855. delete from SE_MetadataTable;
  856. insert into SE_MetadataTable values (SE_MetadataPrep());
  857. return 'SUCCESS: SE_Metadata is reinitialized.';
  858. end
  859. end if
  860. end function;
  861. ",
  862. "f",
  863. "
  864. drop procedure SE_MetadataInit;
  865. drop procedure SE_MetadataInitOnSec(SE_Metadata);
  866. drop procedure SE_MetadataInitFromLO(lvarchar);
  867. drop procedure SE_MetadataDestroyLO(lvarchar);
  868. drop function SE_MetadataPrep();
  869. drop function Assign (SE_Metadata);
  870. ",
  871. "f"
  872. );
  873. insert into sysbldobjdepends
  874. (bld_id, obj_kind, obj_signature, obj_owner,
  875. need_obj_kind, need_obj_signature, need_obj_owner)
  876. values
  877. (
  878. "%SYSBLDNAME%",
  879. 0, "pdqinit.%SYSBLDDIR%",
  880. "%SYSBLDUSER%",
  881. 0, "deepcopy.%SYSBLDDIR%",
  882. "%SYSBLDUSER%"
  883. );
  884. insert into sysbldobjdepends
  885. (bld_id, obj_kind, obj_signature, obj_owner,
  886. need_obj_kind, need_obj_signature, need_obj_owner)
  887. values
  888. (
  889. "%SYSBLDNAME%",
  890. 0, "pdqinit.%SYSBLDDIR%",
  891. "%SYSBLDUSER%",
  892. 0, "hdrdepchk.sql",
  893. "%SYSBLDUSER%"
  894. );
  895. insert into sysbldobjdepends
  896. (bld_id, obj_kind, obj_signature, obj_owner,
  897. need_obj_kind, need_obj_signature, need_obj_owner)
  898. values
  899. (
  900. "%SYSBLDNAME%",
  901. 0, "pdqinit.%SYSBLDDIR%",
  902. "%SYSBLDUSER%",
  903. 0, "pdqfuncs.%SYSBLDDIR%",
  904. "%SYSBLDUSER%"
  905. );
  906. insert into sysbldobjects
  907. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  908. create_can_fail, drop_sql, drop_can_fail)
  909. values
  910. (
  911. "%SYSBLDNAME%", 0, "metainitrun",
  912. "%SYSBLDUSER%", 0,
  913. "
  914. execute function SE_MetadataInit();
  915. ",
  916. "f",
  917. "
  918. ",
  919. "f"
  920. );
  921. insert into sysbldobjdepends
  922. (bld_id, obj_kind, obj_signature, obj_owner,
  923. need_obj_kind, need_obj_signature, need_obj_owner)
  924. values
  925. (
  926. "%SYSBLDNAME%",
  927. 0, "metainitrun",
  928. "%SYSBLDUSER%",
  929. 0, "pdqinit.%SYSBLDDIR%",
  930. "%SYSBLDUSER%"
  931. );
  932. insert into sysbldobjdepends
  933. (bld_id, obj_kind, obj_signature, obj_owner,
  934. need_obj_kind, need_obj_signature, need_obj_owner)
  935. values
  936. (
  937. "%SYSBLDNAME%",
  938. 0, "metainitrun",
  939. "%SYSBLDUSER%",
  940. 0, "srs_uom_load.sql",
  941. "%SYSBLDUSER%"
  942. );
  943. insert into sysbldobjdepends
  944. (bld_id, obj_kind, obj_signature, obj_owner,
  945. need_obj_kind, need_obj_signature, need_obj_owner)
  946. values
  947. (
  948. "%SYSBLDNAME%",
  949. 0, "pdqinit.%SYSBLDDIR%",
  950. "%SYSBLDUSER%",
  951. 0, "pdqfuncs.%SYSBLDDIR%",
  952. "%SYSBLDUSER%"
  953. );
  954. insert into sysbldobjects
  955. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  956. create_can_fail, drop_sql, drop_can_fail)
  957. values
  958. (
  959. "%SYSBLDNAME%", 0,
  960. "semifuncchk.sql",
  961. "%SYSBLDUSER%", 0,
  962. "
  963. create function SE_MIfunc_Check(lvarchar)
  964. returns integer
  965. external name
  966. '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MIfunc_Check)'
  967. language c;
  968. grant execute on function SE_MIfunc_Check(lvarchar) to public;
  969. ",
  970. "t",
  971. "
  972. drop function SE_MIfunc_Check(lvarchar);
  973. ",
  974. "t"
  975. );
  976. insert into sysbldobjdepends
  977. (bld_id, obj_kind, obj_signature, obj_owner,
  978. need_obj_kind, need_obj_signature, need_obj_owner)
  979. values
  980. (
  981. "%SYSBLDNAME%",
  982. 0, "semifuncchk.sql",
  983. "%SYSBLDUSER%",
  984. 0, "pdqinit.%SYSBLDDIR%",
  985. "%SYSBLDUSER%"
  986. );
  987. insert into sysbldobjects
  988. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  989. create_can_fail, drop_sql, drop_can_fail)
  990. values
  991. (
  992. "%SYSBLDNAME%", 0, "geometry.%SYSBLDDIR%",
  993. "%SYSBLDUSER%", 0,
  994. "create function ST_GeomIn(lvarchar) returns ST_Geometry
  995. with (not variant, parallelizable)
  996. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomIn)'
  997. language c;
  998. create function ST_GeomOut(ST_Geometry) returns lvarchar
  999. with (not variant, parallelizable)
  1000. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  1001. language c;
  1002. create function ST_GeomSend(ST_Geometry) returns sendrecv
  1003. with (not variant, parallelizable)
  1004. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1005. language c;
  1006. create function ST_GeomRecv(sendrecv) returns ST_Geometry
  1007. with (not variant, parallelizable)
  1008. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomRecv)'
  1009. language c;
  1010. create function ST_GeomImpT(impexp) returns ST_Geometry
  1011. with (not variant, parallelizable)
  1012. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomIn)'
  1013. language c;
  1014. create function ST_GeomExpT(ST_Geometry) returns impexp
  1015. with (not variant, parallelizable)
  1016. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  1017. language c;
  1018. create function ST_GeomImpB(impexpbin) returns ST_Geometry
  1019. with (not variant, parallelizable)
  1020. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomRecv)'
  1021. language c;
  1022. create function ST_GeomExpB(ST_Geometry) returns impexpbin
  1023. with (not variant, parallelizable)
  1024. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1025. language c;
  1026. create function Assign(ST_Geometry) returns ST_Geometry
  1027. with (not variant, parallelizable)
  1028. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  1029. language c;
  1030. create procedure Destroy(ST_Geometry)
  1031. with (not variant, parallelizable)
  1032. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  1033. language c;
  1034. create function LOhandles(ST_Geometry) returns lolist
  1035. with (not variant, parallelizable)
  1036. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  1037. language c;
  1038. create function SE_GeomFromSde(lvarchar,lvarchar,integer) returns ST_Geometry
  1039. with (not variant, parallelizable, handlesnulls)
  1040. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromSde)'
  1041. language c;
  1042. create function SE_GeomFromShape(lvarchar,integer) returns ST_Geometry
  1043. with (not variant, parallelizable)
  1044. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromShape)'
  1045. language c;
  1046. create function ST_GeomFromText(lvarchar,int) returns ST_Geometry
  1047. with (not variant, parallelizable)
  1048. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromText)'
  1049. language c;
  1050. create function ST_GeomFromWKB(lvarchar,integer) returns ST_Geometry
  1051. with (not variant, parallelizable)
  1052. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromWKB)'
  1053. language c;
  1054. create function SE_ShapeToSQL(lvarchar) returns ST_Geometry
  1055. with (not variant, parallelizable)
  1056. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ShapeToSQL)'
  1057. language c;
  1058. create function ST_WKTToSQL(lvarchar) returns ST_Geometry
  1059. with (not variant, parallelizable)
  1060. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WKTToSQL)'
  1061. language c;
  1062. create function ST_WKBToSQL(lvarchar) returns ST_Geometry
  1063. with (not variant, parallelizable)
  1064. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WKBToSQL)'
  1065. language c;
  1066. grant execute on function ST_GeomIn (lvarchar) to public;
  1067. grant execute on function ST_GeomOut (ST_Geometry) to public;
  1068. grant execute on function ST_GeomSend (ST_Geometry) to public;
  1069. grant execute on function ST_GeomRecv (sendrecv) to public;
  1070. grant execute on function ST_GeomImpT (impexp) to public;
  1071. grant execute on function ST_GeomExpT (ST_Geometry) to public;
  1072. grant execute on function ST_GeomImpB (impexpbin) to public;
  1073. grant execute on function ST_GeomExpB (ST_Geometry) to public;
  1074. grant execute on function Assign (ST_Geometry) to public;
  1075. grant execute on procedure Destroy (ST_Geometry) to public;
  1076. grant execute on function LOhandles (ST_Geometry) to public;
  1077. grant execute on function SE_GeomFromSde (lvarchar,lvarchar,integer) to public;
  1078. grant execute on function SE_GeomFromShape (lvarchar,integer) to public;
  1079. grant execute on function ST_GeomFromText (lvarchar,integer) to public;
  1080. grant execute on function ST_GeomFromWKB (lvarchar,integer) to public;
  1081. grant execute on function SE_ShapeToSQL(lvarchar) to public;
  1082. grant execute on function ST_WKTToSQL(lvarchar) to public;
  1083. grant execute on function ST_WKBToSQL(lvarchar) to public;
  1084. create implicit cast (lvarchar as ST_Geometry with ST_GeomIn);
  1085. create explicit cast (ST_Geometry as lvarchar with ST_GeomOut);
  1086. create explicit cast (ST_Geometry as sendrecv with ST_GeomSend);
  1087. create implicit cast (sendrecv as ST_Geometry with ST_GeomRecv);
  1088. create implicit cast (impexp as ST_Geometry with ST_GeomImpT);
  1089. create explicit cast (ST_Geometry as impexp with ST_GeomExpT);
  1090. create implicit cast (impexpbin as ST_Geometry with ST_GeomImpB);
  1091. create explicit cast (ST_Geometry as impexpbin with ST_GeomExpB);
  1092. ",
  1093. "f",
  1094. "
  1095. drop cast (lvarchar as ST_Geometry);
  1096. drop cast (ST_Geometry as lvarchar);
  1097. drop cast (ST_Geometry as sendrecv);
  1098. drop cast (sendrecv as ST_Geometry);
  1099. drop cast (impexp as ST_Geometry);
  1100. drop cast (ST_Geometry as impexp);
  1101. drop cast (impexpbin as ST_Geometry);
  1102. drop cast (ST_Geometry as impexpbin);
  1103. drop function ST_GeomIn(lvarchar);
  1104. drop function ST_GeomOut(ST_Geometry);
  1105. drop function ST_GeomSend(ST_Geometry);
  1106. drop function ST_GeomRecv(sendrecv);
  1107. drop function ST_GeomImpT(impexp);
  1108. drop function ST_GeomExpT(ST_Geometry);
  1109. drop function ST_GeomImpB(impexpbin);
  1110. drop function ST_GeomExpB(ST_Geometry);
  1111. drop function Assign(ST_Geometry);
  1112. drop procedure Destroy(ST_Geometry);
  1113. drop function LOhandles(ST_Geometry);
  1114. drop function SE_GeomFromSde(lvarchar,lvarchar,integer);
  1115. drop function SE_GeomFromShape(lvarchar,integer);
  1116. drop function ST_GeomFromText(lvarchar,int);
  1117. drop function ST_GeomFromWKB(lvarchar,integer);
  1118. drop function SE_ShapeToSQL(lvarchar);
  1119. drop function ST_WKTToSQL(lvarchar);
  1120. drop function ST_WKBToSQL(lvarchar);
  1121. ",
  1122. "f"
  1123. );
  1124. insert into sysbldobjdepends
  1125. (bld_id, obj_kind, obj_signature, obj_owner,
  1126. need_obj_kind, need_obj_signature, need_obj_owner)
  1127. values
  1128. (
  1129. "%SYSBLDNAME%",
  1130. 0, "geometry.%SYSBLDDIR%",
  1131. "%SYSBLDUSER%",
  1132. 0, "types.sql",
  1133. "%SYSBLDUSER%"
  1134. );
  1135. insert into sysbldobjects
  1136. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  1137. create_can_fail, drop_sql, drop_can_fail)
  1138. values
  1139. (
  1140. "%SYSBLDNAME%", 0, "esri_mm_compate.sql",
  1141. "%SYSBLDUSER%", 0,
  1142. "create function ST_M(ST_Point) returns float
  1143. with (not variant, parallelizable, percall_cost=100)
  1144. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_M)'
  1145. language c;
  1146. create function ST_Z(ST_Point) returns float
  1147. with (not variant, parallelizable, percall_cost=100)
  1148. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Z)'
  1149. language c;
  1150. create function ST_Is3D(ST_Geometry) returns boolean
  1151. with (not variant, parallelizable, percall_cost=10)
  1152. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Is3D)'
  1153. language c;
  1154. create function ST_IsMeasured(ST_Geometry) returns boolean
  1155. with (not variant, parallelizable, percall_cost=10)
  1156. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_IsMeasured)'
  1157. language c;
  1158. create function ST_LocateAlong(ST_Geometry,float) returns ST_Geometry
  1159. with (not variant, parallelizable, percall_cost=5000)
  1160. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateAlong)'
  1161. language c;
  1162. create function ST_LocateBetween(ST_Geometry,float,float) returns ST_Geometry
  1163. with (not variant, parallelizable, percall_cost=500)
  1164. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateBetween)'
  1165. language c;
  1166. create function ST_MinX(ST_Geometry) returns float
  1167. with (not variant, parallelizable)
  1168. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmin)'
  1169. language c;
  1170. create function ST_MaxX(ST_Geometry) returns float
  1171. with (not variant, parallelizable)
  1172. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmax)'
  1173. language c;
  1174. create function ST_MinY(ST_Geometry) returns float
  1175. with (not variant, parallelizable)
  1176. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymin)'
  1177. language c;
  1178. create function ST_MaxY(ST_Geometry) returns float
  1179. with (not variant, parallelizable)
  1180. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymax)'
  1181. language c;
  1182. create function ST_MinZ(ST_Geometry) returns float
  1183. with (not variant, parallelizable)
  1184. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmin)'
  1185. language c;
  1186. create function ST_MaxZ(ST_Geometry) returns float
  1187. with (not variant, parallelizable)
  1188. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmax)'
  1189. language c;
  1190. create function ST_MinM(ST_Geometry) returns float
  1191. with (not variant, parallelizable)
  1192. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmin)'
  1193. language c;
  1194. create function ST_MaxM(ST_Geometry) returns float
  1195. with (not variant, parallelizable)
  1196. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmax)'
  1197. language c;
  1198. create function ST_DistanceToPoint(ST_LineString, ST_Point) returns float
  1199. with (not variant, parallelizable)
  1200. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DistanceToPoint)'
  1201. language c;
  1202. create function ST_PointAtDistance(ST_LineString, d float) returns ST_Point
  1203. with (not variant, parallelizable)
  1204. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointAtDistance)'
  1205. language c;
  1206. create function ST_DistanceToPoint(ST_MultiLineString, ST_Point) returns float
  1207. with (not variant, parallelizable)
  1208. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DistanceToPoint)'
  1209. language c;
  1210. create function ST_PointAtDistance(ST_MultiLineString, float) returns ST_Point
  1211. with (not variant, parallelizable)
  1212. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointAtDistance)'
  1213. language c;
  1214. grant execute on function ST_M (ST_Point) to public;
  1215. grant execute on function ST_Z (ST_Point) to public;
  1216. grant execute on function ST_Is3D (ST_Geometry) to public;
  1217. grant execute on function ST_IsMeasured (ST_Geometry) to public;
  1218. grant execute on function ST_LocateAlong (ST_Geometry,float) to public;
  1219. grant execute on function ST_LocateBetween (ST_Geometry,float,float) to public;
  1220. grant execute on function ST_MaxX (ST_Geometry) to public;
  1221. grant execute on function ST_MinX (ST_Geometry) to public;
  1222. grant execute on function ST_MaxY (ST_Geometry) to public;
  1223. grant execute on function ST_MinY (ST_Geometry) to public;
  1224. grant execute on function ST_MaxZ (ST_Geometry) to public;
  1225. grant execute on function ST_MinZ (ST_Geometry) to public;
  1226. grant execute on function ST_MaxM (ST_Geometry) to public;
  1227. grant execute on function ST_MinM (ST_Geometry) to public;
  1228. grant execute on function ST_DistanceToPoint(ST_LineString, ST_Point) to public;
  1229. grant execute on function ST_PointAtDistance(ST_LineString, float) to public;
  1230. grant execute on function ST_DistanceToPoint(ST_MultiLineString, ST_Point) to public;
  1231. grant execute on function ST_PointAtDistance(ST_MultiLineString, float) to public;
  1232. ",
  1233. "f",
  1234. "drop function ST_M(ST_Point);
  1235. drop function ST_Z(ST_Point);
  1236. drop function ST_Is3D(ST_Geometry);
  1237. drop function ST_IsMeasured(ST_Geometry);
  1238. drop function ST_LocateAlong(ST_Geometry,float);
  1239. drop function ST_LocateBetween(ST_Geometry,float,float);
  1240. drop function ST_MaxX(ST_Geometry);
  1241. drop function ST_MinX(ST_Geometry);
  1242. drop function ST_MaxY(ST_Geometry);
  1243. drop function ST_MinY(ST_Geometry);
  1244. drop function ST_MaxZ(ST_Geometry);
  1245. drop function ST_MinZ(ST_Geometry);
  1246. drop function ST_MaxM(ST_Geometry);
  1247. drop function ST_MinM(ST_Geometry);
  1248. drop function ST_DistanceToPoint(ST_LineString, ST_Point);
  1249. drop function ST_PointAtDistance(ST_LineString, float);
  1250. drop function ST_DistanceToPoint(ST_MultiLineString, ST_Point);
  1251. drop function ST_PointAtDistance(ST_MultiLineString, float);
  1252. ",
  1253. "f"
  1254. );
  1255. insert into sysbldobjdepends
  1256. (bld_id, obj_kind, obj_signature, obj_owner,
  1257. need_obj_kind, need_obj_signature, need_obj_owner)
  1258. values
  1259. (
  1260. "%SYSBLDNAME%",
  1261. 0, "esri_mm_compate.sql",
  1262. "%SYSBLDUSER%",
  1263. 0, "types.sql",
  1264. "%SYSBLDUSER%"
  1265. );
  1266. insert into sysbldobjects
  1267. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  1268. create_can_fail, drop_sql, drop_can_fail)
  1269. values
  1270. (
  1271. "%SYSBLDNAME%", 0, "point.%SYSBLDDIR%",
  1272. "%SYSBLDUSER%", 0,
  1273. "create function ST_PointIn(lvarchar) returns ST_Point
  1274. with (not variant, parallelizable)
  1275. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointIn)'
  1276. language c;
  1277. create function ST_PointOut(ST_Point) returns lvarchar
  1278. with (not variant, parallelizable)
  1279. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  1280. language c;
  1281. create function ST_PointSend(ST_Point) returns sendrecv
  1282. with (not variant, parallelizable)
  1283. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1284. language c;
  1285. create function ST_PointRecv(sendrecv) returns ST_Point
  1286. with (not variant, parallelizable)
  1287. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointRecv)'
  1288. language c;
  1289. create function ST_PointImpT(impexp) returns ST_Point
  1290. with (not variant, parallelizable)
  1291. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointIn)'
  1292. language c;
  1293. create function ST_PointExpT(ST_Point) returns impexp
  1294. with (not variant, parallelizable)
  1295. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  1296. language c;
  1297. create function ST_PointImpB(impexpbin) returns ST_Point
  1298. with (not variant, parallelizable)
  1299. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointRecv)'
  1300. language c;
  1301. create function ST_PointExpB(ST_Point) returns impexpbin
  1302. with (not variant, parallelizable)
  1303. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1304. language c;
  1305. create function Assign(ST_Point) returns ST_Point
  1306. with (not variant, parallelizable)
  1307. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  1308. language c;
  1309. create procedure Destroy(ST_Point)
  1310. with (not variant, parallelizable)
  1311. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  1312. language c;
  1313. create function LOhandles(ST_Point) returns lolist
  1314. with (not variant, parallelizable)
  1315. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  1316. language c;
  1317. create function ST_Point(float,float,integer) returns ST_Point
  1318. with (not variant, parallelizable)
  1319. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromValues)'
  1320. language c;
  1321. create function SE_PointFromSde(lvarchar,lvarchar,integer) returns ST_Point
  1322. with (not variant, parallelizable, handlesnulls)
  1323. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromSde)'
  1324. language c;
  1325. create function SE_PointFromShape(lvarchar,integer) returns ST_Point
  1326. with (not variant, parallelizable)
  1327. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromShape)'
  1328. language c;
  1329. create function ST_PointFromText(lvarchar,integer) returns ST_Point
  1330. with (not variant, parallelizable)
  1331. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromText)'
  1332. language c;
  1333. create function ST_PointFromWKB(lvarchar,integer) returns ST_Point
  1334. with (not variant, parallelizable)
  1335. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromWKB)'
  1336. language c;
  1337. create function SE_M(ST_Point) returns float
  1338. with (not variant, parallelizable, percall_cost=100)
  1339. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_M)'
  1340. language c;
  1341. create function ST_X(ST_Point) returns float
  1342. with (not variant, parallelizable, percall_cost=100)
  1343. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_X)'
  1344. language c;
  1345. create function ST_Y(ST_Point) returns float
  1346. with (not variant, parallelizable, percall_cost=100)
  1347. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Y)'
  1348. language c;
  1349. create function SE_Z(ST_Point) returns float
  1350. with (not variant, parallelizable, percall_cost=100)
  1351. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Z)'
  1352. language c;
  1353. grant execute on function ST_PointIn (lvarchar) to public;
  1354. grant execute on function ST_PointOut (ST_Point) to public;
  1355. grant execute on function ST_PointSend (ST_Point) to public;
  1356. grant execute on function ST_PointRecv (sendrecv) to public;
  1357. grant execute on function ST_PointImpT (impexp) to public;
  1358. grant execute on function ST_PointExpT (ST_Point) to public;
  1359. grant execute on function ST_PointImpB (impexpbin) to public;
  1360. grant execute on function ST_PointExpB (ST_Point) to public;
  1361. grant execute on function Assign (ST_Point) to public;
  1362. grant execute on procedure Destroy (ST_Point) to public;
  1363. grant execute on function LOhandles (ST_Point) to public;
  1364. grant execute on function ST_Point(float,float,integer) to public;
  1365. grant execute on function SE_PointFromSde (lvarchar,lvarchar,integer) to public;
  1366. grant execute on function SE_PointFromShape (lvarchar,integer) to public;
  1367. grant execute on function ST_PointFromText (lvarchar,integer) to public;
  1368. grant execute on function ST_PointFromWKB (lvarchar,integer) to public;
  1369. grant execute on function SE_M (ST_Point) to public;
  1370. grant execute on function ST_X (ST_Point) to public;
  1371. grant execute on function ST_Y (ST_Point) to public;
  1372. grant execute on function SE_Z (ST_Point) to public;
  1373. create implicit cast (lvarchar as ST_Point with ST_PointIn);
  1374. create explicit cast (ST_Point as lvarchar with ST_PointOut);
  1375. create explicit cast (ST_Point as sendrecv with ST_PointSend);
  1376. create implicit cast (sendrecv as ST_Point with ST_PointRecv);
  1377. create implicit cast (impexp as ST_Point with ST_PointImpT);
  1378. create explicit cast (ST_Point as impexp with ST_PointExpT);
  1379. create implicit cast (impexpbin as ST_Point with ST_PointImpB);
  1380. create explicit cast (ST_Point as impexpbin with ST_PointExpB);
  1381. ",
  1382. "f",
  1383. "
  1384. drop cast (lvarchar as ST_Point);
  1385. drop cast (ST_Point as lvarchar);
  1386. drop cast (ST_Point as sendrecv);
  1387. drop cast (sendrecv as ST_Point);
  1388. drop cast (impexp as ST_Point);
  1389. drop cast (ST_Point as impexp);
  1390. drop cast (impexpbin as ST_Point);
  1391. drop cast (ST_Point as impexpbin);
  1392. drop function ST_PointIn(lvarchar);
  1393. drop function ST_PointOut(ST_Point);
  1394. drop function ST_PointSend(ST_Point);
  1395. drop function ST_PointRecv(sendrecv);
  1396. drop function ST_PointImpT(impexp);
  1397. drop function ST_PointExpT(ST_Point);
  1398. drop function ST_PointImpB(impexpbin);
  1399. drop function ST_PointExpB(ST_Point);
  1400. drop function Assign(ST_Point);
  1401. drop procedure Destroy(ST_Point);
  1402. drop function LOhandles(ST_Point);
  1403. drop function ST_Point(float,float,integer);
  1404. drop function SE_PointFromSde(lvarchar,lvarchar,integer);
  1405. drop function SE_PointFromShape(lvarchar,integer);
  1406. drop function ST_PointFromText(lvarchar,integer);
  1407. drop function ST_PointFromWKB(lvarchar,integer);
  1408. drop function SE_M(ST_Point);
  1409. drop function ST_X(ST_Point);
  1410. drop function ST_Y(ST_Point);
  1411. drop function SE_Z(ST_Point);
  1412. ",
  1413. "f"
  1414. );
  1415. insert into sysbldobjdepends
  1416. (bld_id, obj_kind, obj_signature, obj_owner,
  1417. need_obj_kind, need_obj_signature, need_obj_owner)
  1418. values
  1419. (
  1420. "%SYSBLDNAME%",
  1421. 0, "point.%SYSBLDDIR%",
  1422. "%SYSBLDUSER%",
  1423. 0, "types.sql",
  1424. "%SYSBLDUSER%"
  1425. );
  1426. insert into sysbldobjects
  1427. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  1428. create_can_fail, drop_sql, drop_can_fail)
  1429. values
  1430. (
  1431. "%SYSBLDNAME%", 0, "polygon.%SYSBLDDIR%",
  1432. "%SYSBLDUSER%", 0,
  1433. "create function ST_PolyIn(lvarchar) returns ST_Polygon
  1434. with (not variant, parallelizable)
  1435. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyIn)'
  1436. language c;
  1437. create function ST_PolyOut(ST_Polygon) returns lvarchar
  1438. with (not variant, parallelizable)
  1439. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  1440. language c;
  1441. create function ST_PolySend(ST_Polygon) returns sendrecv
  1442. with (not variant, parallelizable)
  1443. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1444. language c;
  1445. create function ST_PolyRecv(sendrecv) returns ST_Polygon
  1446. with (not variant, parallelizable)
  1447. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyRecv)'
  1448. language c;
  1449. create function ST_PolyImpT(impexp) returns ST_Polygon
  1450. with (not variant, parallelizable)
  1451. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyIn)'
  1452. language c;
  1453. create function ST_PolyExpT(ST_Polygon) returns impexp
  1454. with (not variant, parallelizable)
  1455. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  1456. language c;
  1457. create function ST_PolyImpB(impexpbin) returns ST_Polygon
  1458. with (not variant, parallelizable)
  1459. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyRecv)'
  1460. language c;
  1461. create function ST_PolyExpB(ST_Polygon) returns impexpbin
  1462. with (not variant, parallelizable)
  1463. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1464. language c;
  1465. create function Assign(ST_Polygon) returns ST_Polygon
  1466. with (not variant, parallelizable)
  1467. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  1468. language c;
  1469. create procedure Destroy(ST_Polygon)
  1470. with (not variant, parallelizable)
  1471. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  1472. language c;
  1473. create function LOhandles(ST_Polygon) returns lolist
  1474. with (not variant, parallelizable)
  1475. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  1476. language c;
  1477. create function SE_PolyFromSde(lvarchar,lvarchar,integer) returns ST_Polygon
  1478. with (not variant, parallelizable, handlesnulls)
  1479. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromSde)'
  1480. language c;
  1481. create function SE_PolyFromShape(lvarchar,integer) returns ST_Polygon
  1482. with (not variant, parallelizable)
  1483. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromShape)'
  1484. language c;
  1485. create function ST_PolyFromText(lvarchar,integer) returns ST_Polygon
  1486. with (not variant, parallelizable)
  1487. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromText)'
  1488. language c;
  1489. create function ST_PolyFromWKB(lvarchar,integer) returns ST_Polygon
  1490. with (not variant, parallelizable)
  1491. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromWKB)'
  1492. language c;
  1493. create function ST_Polygon(ST_LineString) returns ST_Polygon
  1494. with (not variant, parallelizable)
  1495. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromLineString)'
  1496. language c;
  1497. create function ST_ExteriorRing(ST_Polygon) returns ST_LineString
  1498. with (not variant, parallelizable)
  1499. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ExteriorRing)'
  1500. language c;
  1501. create function ST_InteriorRingN(ST_Polygon,integer) returns ST_LineString
  1502. with (not variant, parallelizable)
  1503. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_InteriorRingN)'
  1504. language c;
  1505. create function ST_NumInteriorRing(ST_Polygon) returns integer
  1506. with (not variant, parallelizable)
  1507. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_NumInteriorRing)'
  1508. language c;
  1509. grant execute on function ST_PolyIn (lvarchar) to public;
  1510. grant execute on function ST_PolyOut (ST_Polygon) to public;
  1511. grant execute on function ST_PolySend (ST_Polygon) to public;
  1512. grant execute on function ST_PolyRecv (sendrecv) to public;
  1513. grant execute on function ST_PolyImpT (impexp) to public;
  1514. grant execute on function ST_PolyExpT (ST_Polygon) to public;
  1515. grant execute on function ST_PolyImpB (impexpbin) to public;
  1516. grant execute on function ST_PolyExpB (ST_Polygon) to public;
  1517. grant execute on function Assign (ST_Polygon) to public;
  1518. grant execute on procedure Destroy (ST_Polygon) to public;
  1519. grant execute on function LOhandles (ST_Polygon) to public;
  1520. grant execute on function SE_PolyFromSde (lvarchar,lvarchar,integer) to public;
  1521. grant execute on function SE_PolyFromShape (lvarchar,integer) to public;
  1522. grant execute on function ST_PolyFromText (lvarchar,integer) to public;
  1523. grant execute on function ST_PolyFromWKB (lvarchar,integer) to public;
  1524. grant execute on function ST_Polygon(ST_LineString) to public;
  1525. grant execute on function ST_ExteriorRing (ST_Polygon) to public;
  1526. grant execute on function ST_InteriorRingN (ST_Polygon,integer) to public;
  1527. grant execute on function ST_NumInteriorRing (ST_Polygon) to public;
  1528. create implicit cast (lvarchar as ST_Polygon with ST_PolyIn);
  1529. create explicit cast (ST_Polygon as lvarchar with ST_PolyOut);
  1530. create explicit cast (ST_Polygon as sendrecv with ST_PolySend);
  1531. create implicit cast (sendrecv as ST_Polygon with ST_PolyRecv);
  1532. create implicit cast (impexp as ST_Polygon with ST_PolyImpT);
  1533. create explicit cast (ST_Polygon as impexp with ST_PolyExpT);
  1534. create implicit cast (impexpbin as ST_Polygon with ST_PolyImpB);
  1535. create explicit cast (ST_Polygon as impexpbin with ST_PolyExpB);
  1536. ",
  1537. "f",
  1538. "
  1539. drop cast (lvarchar as ST_Polygon);
  1540. drop cast (ST_Polygon as lvarchar);
  1541. drop cast (ST_Polygon as sendrecv);
  1542. drop cast (sendrecv as ST_Polygon);
  1543. drop cast (impexp as ST_Polygon);
  1544. drop cast (ST_Polygon as impexp);
  1545. drop cast (impexpbin as ST_Polygon);
  1546. drop cast (ST_Polygon as impexpbin);
  1547. drop function ST_PolyIn(lvarchar);
  1548. drop function ST_PolyOut(ST_Polygon);
  1549. drop function ST_PolySend(ST_Polygon);
  1550. drop function ST_PolyRecv(sendrecv);
  1551. drop function ST_PolyImpT(impexp);
  1552. drop function ST_PolyExpT(ST_Polygon);
  1553. drop function ST_PolyImpB(impexpbin);
  1554. drop function ST_PolyExpB(ST_Polygon);
  1555. drop function Assign(ST_Polygon);
  1556. drop procedure Destroy(ST_Polygon);
  1557. drop function LOhandles(ST_Polygon);
  1558. drop function SE_PolyFromSde(lvarchar,lvarchar,integer);
  1559. drop function SE_PolyFromShape(lvarchar,integer);
  1560. drop function ST_PolyFromText(lvarchar,integer);
  1561. drop function ST_PolyFromWKB(lvarchar,integer);
  1562. drop function ST_Polygon(ST_LineString);
  1563. drop function ST_ExteriorRing(ST_Polygon);
  1564. drop function ST_InteriorRingN(ST_Polygon,integer);
  1565. drop function ST_NumInteriorRing(ST_Polygon);
  1566. ",
  1567. "f"
  1568. );
  1569. insert into sysbldobjdepends
  1570. (bld_id, obj_kind, obj_signature, obj_owner,
  1571. need_obj_kind, need_obj_signature, need_obj_owner)
  1572. values
  1573. (
  1574. "%SYSBLDNAME%",
  1575. 0, "polygon.%SYSBLDDIR%",
  1576. "%SYSBLDUSER%",
  1577. 0, "types.sql",
  1578. "%SYSBLDUSER%"
  1579. );
  1580. insert into sysbldobjects
  1581. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  1582. create_can_fail, drop_sql, drop_can_fail)
  1583. values
  1584. (
  1585. "%SYSBLDNAME%", 0, "linestring.%SYSBLDDIR%",
  1586. "%SYSBLDUSER%", 0,
  1587. "create function ST_LineIn(lvarchar) returns ST_LineString
  1588. with (not variant, parallelizable)
  1589. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineIn)'
  1590. language c;
  1591. create function ST_LineOut(ST_LineString) returns lvarchar
  1592. with (not variant, parallelizable)
  1593. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  1594. language c;
  1595. create function ST_LineSend(ST_LineString) returns sendrecv
  1596. with (not variant, parallelizable)
  1597. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1598. language c;
  1599. create function ST_LineRecv(sendrecv) returns ST_LineString
  1600. with (not variant, parallelizable)
  1601. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineRecv)'
  1602. language c;
  1603. create function ST_LineImpT(impexp) returns ST_LineString
  1604. with (not variant, parallelizable)
  1605. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineIn)'
  1606. language c;
  1607. create function ST_LineExpT(ST_LineString) returns impexp
  1608. with (not variant, parallelizable)
  1609. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  1610. language c;
  1611. create function ST_LineImpB(impexpbin) returns ST_LineString
  1612. with (not variant, parallelizable)
  1613. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineRecv)'
  1614. language c;
  1615. create function ST_LineExpB(ST_LineString) returns impexpbin
  1616. with (not variant, parallelizable)
  1617. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1618. language c;
  1619. create function Assign(ST_LineString) returns ST_LineString
  1620. with (not variant, parallelizable)
  1621. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  1622. language c;
  1623. create procedure Destroy(ST_LineString)
  1624. with (not variant, parallelizable)
  1625. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  1626. language c;
  1627. create function LOhandles(ST_LineString) returns lolist
  1628. with (not variant, parallelizable)
  1629. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  1630. language c;
  1631. create function SE_LineFromSde(lvarchar,lvarchar,integer) returns ST_LineString
  1632. with (not variant, parallelizable, handlesnulls)
  1633. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromSde)'
  1634. language c;
  1635. create function SE_LineFromShape(lvarchar,integer) returns ST_LineString
  1636. with (not variant, parallelizable)
  1637. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromShape)'
  1638. language c;
  1639. create function ST_LineFromText(lvarchar,integer) returns ST_LineString
  1640. with (not variant, parallelizable)
  1641. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromText)'
  1642. language c;
  1643. create function ST_LineFromWKB(lvarchar,integer) returns ST_LineString
  1644. with (not variant, parallelizable)
  1645. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromWKB)'
  1646. language c;
  1647. create function ST_Length(ST_Curve) returns float
  1648. with (not variant, parallelizable)
  1649. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthCurve)'
  1650. language c;
  1651. create function ST_PointN(ST_LineString,integer) returns ST_Point
  1652. with (not variant, parallelizable, percall_cost=50)
  1653. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointN)'
  1654. language c;
  1655. create function SE_Midpoint(ST_LineString) returns ST_Point
  1656. with (not variant, parallelizable, percall_cost=50)
  1657. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Midpoint)'
  1658. language c;
  1659. grant execute on function ST_LineIn (lvarchar) to public;
  1660. grant execute on function ST_LineOut (ST_LineString) to public;
  1661. grant execute on function ST_LineSend (ST_LineString) to public;
  1662. grant execute on function ST_LineRecv (sendrecv) to public;
  1663. grant execute on function ST_LineImpT (impexp) to public;
  1664. grant execute on function ST_LineExpT (ST_LineString) to public;
  1665. grant execute on function ST_LineImpB (impexpbin) to public;
  1666. grant execute on function ST_LineExpB (ST_LineString) to public;
  1667. grant execute on function Assign (ST_LineString) to public;
  1668. grant execute on procedure Destroy (ST_LineString) to public;
  1669. grant execute on function LOhandles (ST_LineString) to public;
  1670. grant execute on function SE_LineFromSde (lvarchar,lvarchar,integer) to public;
  1671. grant execute on function SE_LineFromShape (lvarchar,integer) to public;
  1672. grant execute on function ST_LineFromText (lvarchar,integer) to public;
  1673. grant execute on function ST_LineFromWKB (lvarchar,integer) to public;
  1674. grant execute on function ST_Length (ST_Curve) to public;
  1675. grant execute on function ST_PointN (ST_LineString,integer) to public;
  1676. grant execute on function SE_Midpoint (ST_LineString) to public;
  1677. create implicit cast (lvarchar as ST_LineString with ST_LineIn);
  1678. create explicit cast (ST_LineString as lvarchar with ST_LineOut);
  1679. create explicit cast (ST_LineString as sendrecv with ST_LineSend);
  1680. create implicit cast (sendrecv as ST_LineString with ST_LineRecv);
  1681. create implicit cast (impexp as ST_LineString with ST_LineImpT);
  1682. create explicit cast (ST_LineString as impexp with ST_LineExpT);
  1683. create implicit cast (impexpbin as ST_LineString with ST_LineImpB);
  1684. create explicit cast (ST_LineString as impexpbin with ST_LineExpB);
  1685. ",
  1686. "f",
  1687. "
  1688. drop cast (lvarchar as ST_LineString);
  1689. drop cast (ST_LineString as lvarchar);
  1690. drop cast (ST_LineString as sendrecv);
  1691. drop cast (sendrecv as ST_LineString);
  1692. drop cast (impexp as ST_LineString);
  1693. drop cast (ST_LineString as impexp);
  1694. drop cast (impexpbin as ST_LineString);
  1695. drop cast (ST_LineString as impexpbin);
  1696. drop function ST_LineIn(lvarchar);
  1697. drop function ST_LineOut(ST_LineString);
  1698. drop function ST_LineSend(ST_LineString);
  1699. drop function ST_LineRecv(sendrecv);
  1700. drop function ST_LineImpT(impexp);
  1701. drop function ST_LineExpT(ST_LineString);
  1702. drop function ST_LineImpB(impexpbin);
  1703. drop function ST_LineExpB(ST_LineString);
  1704. drop function Assign(ST_LineString);
  1705. drop procedure Destroy(ST_LineString);
  1706. drop function LOhandles(ST_LineString);
  1707. drop function SE_LineFromSde(lvarchar,lvarchar,integer);
  1708. drop function SE_LineFromShape(lvarchar,integer);
  1709. drop function ST_LineFromText(lvarchar,integer);
  1710. drop function ST_LineFromWKB(lvarchar,integer);
  1711. drop function ST_Length(ST_Curve);
  1712. drop function ST_PointN(ST_LineString,integer);
  1713. drop function SE_Midpoint(ST_LineString);
  1714. ",
  1715. "f"
  1716. );
  1717. insert into sysbldobjdepends
  1718. (bld_id, obj_kind, obj_signature, obj_owner,
  1719. need_obj_kind, need_obj_signature, need_obj_owner)
  1720. values
  1721. (
  1722. "%SYSBLDNAME%",
  1723. 0, "linestring.%SYSBLDDIR%",
  1724. "%SYSBLDUSER%",
  1725. 0, "types.sql",
  1726. "%SYSBLDUSER%"
  1727. );
  1728. insert into sysbldobjects
  1729. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  1730. create_can_fail, drop_sql, drop_can_fail)
  1731. values
  1732. (
  1733. "%SYSBLDNAME%", 0, "mlinestring.%SYSBLDDIR%",
  1734. "%SYSBLDUSER%", 0,
  1735. "create function ST_MLineIn(lvarchar) returns ST_MultiLineString
  1736. with (not variant, parallelizable)
  1737. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineIn)'
  1738. language c;
  1739. create function ST_MLineOut(ST_MultiLineString) returns lvarchar
  1740. with (not variant, parallelizable)
  1741. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  1742. language c;
  1743. create function ST_MLineSend(ST_MultiLineString) returns sendrecv
  1744. with (not variant, parallelizable)
  1745. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1746. language c;
  1747. create function ST_MLineRecv(sendrecv) returns ST_MultiLineString
  1748. with (not variant, parallelizable)
  1749. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineRecv)'
  1750. language c;
  1751. create function ST_MLineImpT(impexp) returns ST_MultiLineString
  1752. with (not variant, parallelizable)
  1753. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineIn)'
  1754. language c;
  1755. create function ST_MLineExpT(ST_MultiLineString) returns impexp
  1756. with (not variant, parallelizable)
  1757. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  1758. language c;
  1759. create function ST_MLineImpB(impexpbin) returns ST_MultiLineString
  1760. with (not variant, parallelizable)
  1761. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineRecv)'
  1762. language c;
  1763. create function ST_MLineExpB(ST_MultiLineString) returns impexpbin
  1764. with (not variant, parallelizable)
  1765. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1766. language c;
  1767. create function Assign(ST_MultiLineString) returns ST_MultiLineString
  1768. with (not variant, parallelizable)
  1769. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  1770. language c;
  1771. create procedure Destroy(ST_MultiLineString)
  1772. with (not variant, parallelizable)
  1773. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  1774. language c;
  1775. create function LOhandles(ST_MultiLineString) returns lolist
  1776. with (not variant, parallelizable)
  1777. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  1778. language c;
  1779. create function SE_MLineFromSde(lvarchar,lvarchar,integer) returns ST_MultiLineString
  1780. with (not variant, parallelizable, handlesnulls)
  1781. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromSde)'
  1782. language c;
  1783. create function SE_MLineFromShape(lvarchar,integer) returns ST_MultiLineString
  1784. with (not variant, parallelizable)
  1785. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromShape)'
  1786. language c;
  1787. create function ST_MLineFromText(lvarchar,integer) returns ST_MultiLineString
  1788. with (not variant, parallelizable)
  1789. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromText)'
  1790. language c;
  1791. create function ST_MLineFromWKB(lvarchar,integer) returns ST_MultiLineString
  1792. with (not variant, parallelizable)
  1793. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromWKB)'
  1794. language c;
  1795. create function ST_Length(ST_MultiCurve) returns float
  1796. with (not variant, parallelizable)
  1797. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthMultiCurve)'
  1798. language c;
  1799. grant execute on function ST_MLineIn (lvarchar) to public;
  1800. grant execute on function ST_MLineOut (ST_MultiLineString) to public;
  1801. grant execute on function ST_MLineSend (ST_MultiLineString) to public;
  1802. grant execute on function ST_MLineRecv (sendrecv) to public;
  1803. grant execute on function ST_MLineImpT (impexp) to public;
  1804. grant execute on function ST_MLineExpT (ST_MultiLineString) to public;
  1805. grant execute on function ST_MLineImpB (impexpbin) to public;
  1806. grant execute on function ST_MLineExpB (ST_MultiLineString) to public;
  1807. grant execute on function Assign (ST_MultiLineString) to public;
  1808. grant execute on procedure Destroy (ST_MultiLineString) to public;
  1809. grant execute on function LOhandles (ST_MultiLineString) to public;
  1810. grant execute on function SE_MLineFromSde (lvarchar,lvarchar,integer) to public;
  1811. grant execute on function SE_MLineFromShape (lvarchar,integer) to public;
  1812. grant execute on function ST_MLineFromText (lvarchar,integer) to public;
  1813. grant execute on function ST_MLineFromWKB (lvarchar,integer) to public;
  1814. grant execute on function ST_Length (ST_MultiCurve) to public;
  1815. create implicit cast (lvarchar as ST_MultiLineString with ST_MLineIn);
  1816. create explicit cast (ST_MultiLineString as lvarchar with ST_MLineOut);
  1817. create explicit cast (ST_MultiLineString as sendrecv with ST_MLineSend);
  1818. create implicit cast (sendrecv as ST_MultiLineString with ST_MLineRecv);
  1819. create implicit cast (impexp as ST_MultiLineString with ST_MLineImpT);
  1820. create explicit cast (ST_MultiLineString as impexp with ST_MLineExpT);
  1821. create implicit cast (impexpbin as ST_MultiLineString with ST_MLineImpB);
  1822. create explicit cast (ST_MultiLineString as impexpbin with ST_MLineExpB);
  1823. ",
  1824. "f",
  1825. "
  1826. drop cast (lvarchar as ST_MultiLineString);
  1827. drop cast (ST_MultiLineString as lvarchar);
  1828. drop cast (ST_MultiLineString as sendrecv);
  1829. drop cast (sendrecv as ST_MultiLineString);
  1830. drop cast (impexp as ST_MultiLineString);
  1831. drop cast (ST_MultiLineString as impexp);
  1832. drop cast (impexpbin as ST_MultiLineString);
  1833. drop cast (ST_MultiLineString as impexpbin);
  1834. drop function ST_MLineIn(lvarchar);
  1835. drop function ST_MLineOut(ST_MultiLineString);
  1836. drop function ST_MLineSend(ST_MultiLineString);
  1837. drop function ST_MLineRecv(sendrecv);
  1838. drop function ST_MLineImpT(impexp);
  1839. drop function ST_MLineExpT(ST_MultiLineString);
  1840. drop function ST_MLineImpB(impexpbin);
  1841. drop function ST_MLineExpB(ST_MultiLineString);
  1842. drop function Assign(ST_MultiLineString);
  1843. drop procedure Destroy(ST_MultiLineString);
  1844. drop function LOhandles(ST_MultiLineString);
  1845. drop function SE_MLineFromSde(lvarchar,lvarchar,integer);
  1846. drop function SE_MLineFromShape(lvarchar,integer);
  1847. drop function ST_MLineFromText(lvarchar,integer);
  1848. drop function ST_MLineFromWKB(lvarchar,integer);
  1849. drop function ST_Length(ST_MultiCurve);
  1850. ",
  1851. "f"
  1852. );
  1853. insert into sysbldobjdepends
  1854. (bld_id, obj_kind, obj_signature, obj_owner,
  1855. need_obj_kind, need_obj_signature, need_obj_owner)
  1856. values
  1857. (
  1858. "%SYSBLDNAME%",
  1859. 0, "mlinestring.%SYSBLDDIR%",
  1860. "%SYSBLDUSER%",
  1861. 0, "types.sql",
  1862. "%SYSBLDUSER%"
  1863. );
  1864. insert into sysbldobjects
  1865. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  1866. create_can_fail, drop_sql, drop_can_fail)
  1867. values
  1868. (
  1869. "%SYSBLDNAME%", 0, "mpoint.%SYSBLDDIR%",
  1870. "%SYSBLDUSER%", 0,
  1871. "create function ST_MPointIn(lvarchar) returns ST_MultiPoint
  1872. with (not variant, parallelizable)
  1873. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointIn)'
  1874. language c;
  1875. create function ST_MPointOut(ST_MultiPoint) returns lvarchar
  1876. with (not variant, parallelizable)
  1877. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  1878. language c;
  1879. create function ST_MPointSend(ST_MultiPoint) returns sendrecv
  1880. with (not variant, parallelizable)
  1881. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1882. language c;
  1883. create function ST_MPointRecv(sendrecv) returns ST_MultiPoint
  1884. with (not variant, parallelizable)
  1885. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointRecv)'
  1886. language c;
  1887. create function ST_MPointImpT(impexp) returns ST_MultiPoint
  1888. with (not variant, parallelizable)
  1889. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointIn)'
  1890. language c;
  1891. create function ST_MPointExpT(ST_MultiPoint) returns impexp
  1892. with (not variant, parallelizable)
  1893. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  1894. language c;
  1895. create function ST_MPointImpB(impexpbin) returns ST_MultiPoint
  1896. with (not variant, parallelizable)
  1897. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointRecv)'
  1898. language c;
  1899. create function ST_MPointExpB(ST_MultiPoint) returns impexpbin
  1900. with (not variant, parallelizable)
  1901. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  1902. language c;
  1903. create function Assign(ST_MultiPoint) returns ST_MultiPoint
  1904. with (not variant, parallelizable)
  1905. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  1906. language c;
  1907. create procedure Destroy(ST_MultiPoint)
  1908. with (not variant, parallelizable)
  1909. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  1910. language c;
  1911. create function LOhandles(ST_MultiPoint) returns lolist
  1912. with (not variant, parallelizable)
  1913. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  1914. language c;
  1915. create function SE_MPointFromSde(lvarchar,lvarchar,integer) returns ST_MultiPoint
  1916. with (not variant, parallelizable, handlesnulls)
  1917. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromSde)'
  1918. language c;
  1919. create function SE_MPointFromShape(lvarchar,integer) returns ST_MultiPoint
  1920. with (not variant, parallelizable)
  1921. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromShape)'
  1922. language c;
  1923. create function ST_MPointFromText(lvarchar,integer) returns ST_MultiPoint
  1924. with (not variant, parallelizable)
  1925. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromText)'
  1926. language c;
  1927. create function ST_MPointFromWKB(lvarchar,integer) returns ST_MultiPoint
  1928. with (not variant, parallelizable)
  1929. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromWKB)'
  1930. language c;
  1931. grant execute on function ST_MPointIn (lvarchar) to public;
  1932. grant execute on function ST_MPointOut (ST_MultiPoint) to public;
  1933. grant execute on function ST_MPointSend (ST_MultiPoint) to public;
  1934. grant execute on function ST_MPointRecv (sendrecv) to public;
  1935. grant execute on function ST_MPointImpT (impexp) to public;
  1936. grant execute on function ST_MPointExpT (ST_MultiPoint) to public;
  1937. grant execute on function ST_MPointImpB (impexpbin) to public;
  1938. grant execute on function ST_MPointExpB (ST_MultiPoint) to public;
  1939. grant execute on function Assign (ST_MultiPoint) to public;
  1940. grant execute on procedure Destroy (ST_MultiPoint) to public;
  1941. grant execute on function LOhandles (ST_MultiPoint) to public;
  1942. grant execute on function SE_MPointFromSde (lvarchar,lvarchar,integer) to public;
  1943. grant execute on function SE_MPointFromShape (lvarchar,integer) to public;
  1944. grant execute on function ST_MPointFromText (lvarchar,integer) to public;
  1945. grant execute on function ST_MPointFromWKB (lvarchar,integer) to public;
  1946. create implicit cast (lvarchar as ST_MultiPoint with ST_MPointIn);
  1947. create explicit cast (ST_MultiPoint as lvarchar with ST_MPointOut);
  1948. create explicit cast (ST_MultiPoint as sendrecv with ST_MPointSend);
  1949. create implicit cast (sendrecv as ST_MultiPoint with ST_MPointRecv);
  1950. create implicit cast (impexp as ST_MultiPoint with ST_MPointImpT);
  1951. create explicit cast (ST_MultiPoint as impexp with ST_MPointExpT);
  1952. create implicit cast (impexpbin as ST_MultiPoint with ST_MPointImpB);
  1953. create explicit cast (ST_MultiPoint as impexpbin with ST_MPointExpB);
  1954. ",
  1955. "f",
  1956. "
  1957. drop cast (lvarchar as ST_MultiPoint);
  1958. drop cast (ST_MultiPoint as lvarchar);
  1959. drop cast (ST_MultiPoint as sendrecv);
  1960. drop cast (sendrecv as ST_MultiPoint);
  1961. drop cast (impexp as ST_MultiPoint);
  1962. drop cast (ST_MultiPoint as impexp);
  1963. drop cast (impexpbin as ST_MultiPoint);
  1964. drop cast (ST_MultiPoint as impexpbin);
  1965. drop function ST_MPointIn(lvarchar);
  1966. drop function ST_MPointOut(ST_MultiPoint);
  1967. drop function ST_MPointSend(ST_MultiPoint);
  1968. drop function ST_MPointRecv(sendrecv);
  1969. drop function ST_MPointImpT(impexp);
  1970. drop function ST_MPointExpT(ST_MultiPoint);
  1971. drop function ST_MPointImpB(impexpbin);
  1972. drop function ST_MPointExpB(ST_MultiPoint);
  1973. drop function Assign(ST_MultiPoint);
  1974. drop procedure Destroy(ST_MultiPoint);
  1975. drop function LOhandles(ST_MultiPoint);
  1976. drop function SE_MPointFromSde(lvarchar,lvarchar,integer);
  1977. drop function SE_MPointFromShape(lvarchar,integer);
  1978. drop function ST_MPointFromText(lvarchar,integer);
  1979. drop function ST_MPointFromWKB(lvarchar,integer);
  1980. ",
  1981. "f"
  1982. );
  1983. insert into sysbldobjdepends
  1984. (bld_id, obj_kind, obj_signature, obj_owner,
  1985. need_obj_kind, need_obj_signature, need_obj_owner)
  1986. values
  1987. (
  1988. "%SYSBLDNAME%",
  1989. 0, "mpoint.%SYSBLDDIR%",
  1990. "%SYSBLDUSER%",
  1991. 0, "types.sql",
  1992. "%SYSBLDUSER%"
  1993. );
  1994. insert into sysbldobjects
  1995. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  1996. create_can_fail, drop_sql, drop_can_fail)
  1997. values
  1998. (
  1999. "%SYSBLDNAME%", 0, "mpolygon.%SYSBLDDIR%",
  2000. "%SYSBLDUSER%", 0,
  2001. "create function ST_MPolyIn(lvarchar) returns ST_MultiPolygon
  2002. with (not variant, parallelizable)
  2003. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyIn)'
  2004. language c;
  2005. create function ST_MPolyOut(ST_MultiPolygon) returns lvarchar
  2006. with (not variant, parallelizable)
  2007. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  2008. language c;
  2009. create function ST_MPolySend(ST_MultiPolygon) returns sendrecv
  2010. with (not variant, parallelizable)
  2011. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2012. language c;
  2013. create function ST_MPolyRecv(sendrecv) returns ST_MultiPolygon
  2014. with (not variant, parallelizable)
  2015. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyRecv)'
  2016. language c;
  2017. create function ST_MPolyImpT(impexp) returns ST_MultiPolygon
  2018. with (not variant, parallelizable)
  2019. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyIn)'
  2020. language c;
  2021. create function ST_MPolyExpT(ST_MultiPolygon) returns impexp
  2022. with (not variant, parallelizable)
  2023. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  2024. language c;
  2025. create function ST_MPolyImpB(impexpbin) returns ST_MultiPolygon
  2026. with (not variant, parallelizable)
  2027. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyRecv)'
  2028. language c;
  2029. create function ST_MPolyExpB(ST_MultiPolygon) returns impexpbin
  2030. with (not variant, parallelizable)
  2031. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2032. language c;
  2033. create function Assign(ST_MultiPolygon) returns ST_MultiPolygon
  2034. with (not variant, parallelizable)
  2035. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  2036. language c;
  2037. create procedure Destroy(ST_MultiPolygon)
  2038. with (not variant, parallelizable)
  2039. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  2040. language c;
  2041. create function LOhandles(ST_MultiPolygon) returns lolist
  2042. with (not variant, parallelizable)
  2043. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  2044. language c;
  2045. create function SE_MPolyFromSde(lvarchar,lvarchar,integer) returns ST_MultiPolygon
  2046. with (not variant, parallelizable, handlesnulls)
  2047. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromSde)'
  2048. language c;
  2049. create function SE_MPolyFromShape(lvarchar,integer) returns ST_MultiPolygon
  2050. with (not variant, parallelizable)
  2051. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromShape)'
  2052. language c;
  2053. create function ST_MPolyFromText(lvarchar,integer) returns ST_MultiPolygon
  2054. with (not variant, parallelizable)
  2055. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromText)'
  2056. language c;
  2057. create function ST_MPolyFromWKB(lvarchar,integer) returns ST_MultiPolygon
  2058. with (not variant, parallelizable)
  2059. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromWKB)'
  2060. language c;
  2061. grant execute on function ST_MPolyIn (lvarchar) to public;
  2062. grant execute on function ST_MPolyOut (ST_MultiPolygon) to public;
  2063. grant execute on function ST_MPolySend (ST_MultiPolygon) to public;
  2064. grant execute on function ST_MPolyRecv (sendrecv) to public;
  2065. grant execute on function ST_MPolyImpT (impexp) to public;
  2066. grant execute on function ST_MPolyExpT (ST_MultiPolygon) to public;
  2067. grant execute on function ST_MPolyImpB (impexpbin) to public;
  2068. grant execute on function ST_MPolyExpB (ST_MultiPolygon) to public;
  2069. grant execute on function Assign (ST_MultiPolygon) to public;
  2070. grant execute on procedure Destroy (ST_MultiPolygon) to public;
  2071. grant execute on function LOhandles (ST_MultiPolygon) to public;
  2072. grant execute on function SE_MPolyFromSde (lvarchar,lvarchar,integer) to public;
  2073. grant execute on function SE_MPolyFromShape (lvarchar,integer) to public;
  2074. grant execute on function ST_MPolyFromText (lvarchar,integer) to public;
  2075. grant execute on function ST_MPolyFromWKB (lvarchar,integer) to public;
  2076. create implicit cast (lvarchar as ST_MultiPolygon with ST_MPolyIn);
  2077. create explicit cast (ST_MultiPolygon as lvarchar with ST_MPolyOut);
  2078. create explicit cast (ST_MultiPolygon as sendrecv with ST_MPolySend);
  2079. create implicit cast (sendrecv as ST_MultiPolygon with ST_MPolyRecv);
  2080. create implicit cast (impexp as ST_MultiPolygon with ST_MPolyImpT);
  2081. create explicit cast (ST_MultiPolygon as impexp with ST_MPolyExpT);
  2082. create implicit cast (impexpbin as ST_MultiPolygon with ST_MPolyImpB);
  2083. create explicit cast (ST_MultiPolygon as impexpbin with ST_MPolyExpB);
  2084. ",
  2085. "f",
  2086. "
  2087. drop cast (lvarchar as ST_MultiPolygon);
  2088. drop cast (ST_MultiPolygon as lvarchar);
  2089. drop cast (ST_MultiPolygon as sendrecv);
  2090. drop cast (sendrecv as ST_MultiPolygon);
  2091. drop cast (impexp as ST_MultiPolygon);
  2092. drop cast (ST_MultiPolygon as impexp);
  2093. drop cast (impexpbin as ST_MultiPolygon);
  2094. drop cast (ST_MultiPolygon as impexpbin);
  2095. drop function ST_MPolyIn(lvarchar);
  2096. drop function ST_MPolyOut(ST_MultiPolygon);
  2097. drop function ST_MPolySend(ST_MultiPolygon);
  2098. drop function ST_MPolyRecv(sendrecv);
  2099. drop function ST_MPolyImpT(impexp);
  2100. drop function ST_MPolyExpT(ST_MultiPolygon);
  2101. drop function ST_MPolyImpB(impexpbin);
  2102. drop function ST_MPolyExpB(ST_MultiPolygon);
  2103. drop function Assign(ST_MultiPolygon);
  2104. drop procedure Destroy(ST_MultiPolygon);
  2105. drop function LOhandles(ST_MultiPolygon);
  2106. drop function SE_MPolyFromSde(lvarchar,lvarchar,integer);
  2107. drop function SE_MPolyFromShape(lvarchar,integer);
  2108. drop function ST_MPolyFromText(lvarchar,integer);
  2109. drop function ST_MPolyFromWKB(lvarchar,integer);
  2110. ",
  2111. "f"
  2112. );
  2113. insert into sysbldobjdepends
  2114. (bld_id, obj_kind, obj_signature, obj_owner,
  2115. need_obj_kind, need_obj_signature, need_obj_owner)
  2116. values
  2117. (
  2118. "%SYSBLDNAME%",
  2119. 0, "mpolygon.%SYSBLDDIR%",
  2120. "%SYSBLDUSER%",
  2121. 0, "types.sql",
  2122. "%SYSBLDUSER%"
  2123. );
  2124. insert into sysbldobjects
  2125. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  2126. create_can_fail, drop_sql, drop_can_fail)
  2127. values
  2128. (
  2129. "%SYSBLDNAME%", 0, "surface.%SYSBLDDIR%",
  2130. "%SYSBLDUSER%", 0,
  2131. "create function ST_SurfaceIn(lvarchar) returns ST_Surface
  2132. with (not variant, parallelizable)
  2133. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceIn)'
  2134. language c;
  2135. create function ST_SurfaceOut(ST_Surface) returns lvarchar
  2136. with (not variant, parallelizable)
  2137. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  2138. language c;
  2139. create function ST_SurfaceSend(ST_Surface) returns sendrecv
  2140. with (not variant, parallelizable)
  2141. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2142. language c;
  2143. create function ST_SurfaceRecv(sendrecv) returns ST_Surface
  2144. with (not variant, parallelizable)
  2145. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceRecv)'
  2146. language c;
  2147. create function ST_SurfaceImpT(impexp) returns ST_Surface
  2148. with (not variant, parallelizable)
  2149. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceIn)'
  2150. language c;
  2151. create function ST_SurfaceExpT(ST_Surface) returns impexp
  2152. with (not variant, parallelizable)
  2153. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  2154. language c;
  2155. create function ST_SurfaceImpB(impexpbin) returns ST_Surface
  2156. with (not variant, parallelizable)
  2157. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SurfaceRecv)'
  2158. language c;
  2159. create function ST_SurfaceExpB(ST_Surface) returns impexpbin
  2160. with (not variant, parallelizable)
  2161. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2162. language c;
  2163. create function Assign(ST_Surface) returns ST_Surface
  2164. with (not variant, parallelizable)
  2165. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  2166. language c;
  2167. create procedure Destroy(ST_Surface)
  2168. with (not variant, parallelizable)
  2169. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  2170. language c;
  2171. create function LOhandles(ST_Surface) returns lolist
  2172. with (not variant, parallelizable)
  2173. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  2174. language c;
  2175. create function ST_Area(ST_Surface) returns float
  2176. with (not variant, parallelizable)
  2177. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaSurface)'
  2178. language c;
  2179. create function ST_Centroid(ST_Surface) returns ST_Point
  2180. with (not variant, parallelizable)
  2181. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CentroidSurface)'
  2182. language c;
  2183. create function ST_Perimeter(ST_Surface) returns float
  2184. with (not variant, parallelizable)
  2185. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterSurface)'
  2186. language c;
  2187. create function ST_PointOnSurface(ST_Surface) returns ST_Point
  2188. with (not variant, parallelizable)
  2189. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointOnSurface)'
  2190. language c;
  2191. grant execute on function ST_SurfaceIn (lvarchar) to public;
  2192. grant execute on function ST_SurfaceOut (ST_Surface) to public;
  2193. grant execute on function ST_SurfaceSend (ST_Surface) to public;
  2194. grant execute on function ST_SurfaceRecv (sendrecv) to public;
  2195. grant execute on function ST_SurfaceImpT (impexp) to public;
  2196. grant execute on function ST_SurfaceExpT (ST_Surface) to public;
  2197. grant execute on function ST_SurfaceImpB (impexpbin) to public;
  2198. grant execute on function ST_SurfaceExpB (ST_Surface) to public;
  2199. grant execute on function Assign (ST_Surface) to public;
  2200. grant execute on procedure Destroy (ST_Surface) to public;
  2201. grant execute on function LOhandles (ST_Surface) to public;
  2202. grant execute on function ST_Area (ST_Surface) to public;
  2203. grant execute on function ST_Centroid (ST_Surface) to public;
  2204. grant execute on function ST_Perimeter (ST_Surface) to public;
  2205. grant execute on function ST_PointOnSurface (ST_Surface) to public;
  2206. create implicit cast (lvarchar as ST_Surface with ST_SurfaceIn);
  2207. create explicit cast (ST_Surface as lvarchar with ST_SurfaceOut);
  2208. create explicit cast (ST_Surface as sendrecv with ST_SurfaceSend);
  2209. create implicit cast (sendrecv as ST_Surface with ST_SurfaceRecv);
  2210. create implicit cast (impexp as ST_Surface with ST_SurfaceImpT);
  2211. create explicit cast (ST_Surface as impexp with ST_SurfaceExpT);
  2212. create implicit cast (impexpbin as ST_Surface with ST_SurfaceImpB);
  2213. create explicit cast (ST_Surface as impexpbin with ST_SurfaceExpB);
  2214. ",
  2215. "f",
  2216. "
  2217. drop cast (lvarchar as ST_Surface);
  2218. drop cast (ST_Surface as lvarchar);
  2219. drop cast (ST_Surface as sendrecv);
  2220. drop cast (sendrecv as ST_Surface);
  2221. drop cast (impexp as ST_Surface);
  2222. drop cast (ST_Surface as impexp);
  2223. drop cast (impexpbin as ST_Surface);
  2224. drop cast (ST_Surface as impexpbin);
  2225. drop function ST_SurfaceIn(lvarchar);
  2226. drop function ST_SurfaceOut(ST_Surface);
  2227. drop function ST_SurfaceSend(ST_Surface);
  2228. drop function ST_SurfaceRecv(sendrecv);
  2229. drop function ST_SurfaceImpT(impexp);
  2230. drop function ST_SurfaceExpT(ST_Surface);
  2231. drop function ST_SurfaceImpB(impexpbin);
  2232. drop function ST_SurfaceExpB(ST_Surface);
  2233. drop function Assign(ST_Surface);
  2234. drop procedure Destroy(ST_Surface);
  2235. drop function LOhandles(ST_Surface);
  2236. drop function ST_Area(ST_Surface);
  2237. drop function ST_Centroid(ST_Surface);
  2238. drop function ST_Perimeter(ST_Surface);
  2239. drop function ST_PointOnSurface(ST_Surface);
  2240. ",
  2241. "f"
  2242. );
  2243. insert into sysbldobjdepends
  2244. (bld_id, obj_kind, obj_signature, obj_owner,
  2245. need_obj_kind, need_obj_signature, need_obj_owner)
  2246. values
  2247. (
  2248. "%SYSBLDNAME%",
  2249. 0, "surface.%SYSBLDDIR%",
  2250. "%SYSBLDUSER%",
  2251. 0, "types.sql",
  2252. "%SYSBLDUSER%"
  2253. );
  2254. insert into sysbldobjects
  2255. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  2256. create_can_fail, drop_sql, drop_can_fail)
  2257. values
  2258. (
  2259. "%SYSBLDNAME%", 0, "msurface.%SYSBLDDIR%",
  2260. "%SYSBLDUSER%", 0,
  2261. "create function ST_MSurfaceIn(lvarchar) returns ST_MultiSurface
  2262. with (not variant, parallelizable)
  2263. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceIn)'
  2264. language c;
  2265. create function ST_MSurfaceOut(ST_MultiSurface) returns lvarchar
  2266. with (not variant, parallelizable)
  2267. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  2268. language c;
  2269. create function ST_MSurfaceSend(ST_MultiSurface) returns sendrecv
  2270. with (not variant, parallelizable)
  2271. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2272. language c;
  2273. create function ST_MSurfaceRecv(sendrecv) returns ST_MultiSurface
  2274. with (not variant, parallelizable)
  2275. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceRecv)'
  2276. language c;
  2277. create function ST_MSurfaceImpT(impexp) returns ST_MultiSurface
  2278. with (not variant, parallelizable)
  2279. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceIn)'
  2280. language c;
  2281. create function ST_MSurfaceExpT(ST_MultiSurface) returns impexp
  2282. with (not variant, parallelizable)
  2283. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  2284. language c;
  2285. create function ST_MSurfaceImpB(impexpbin) returns ST_MultiSurface
  2286. with (not variant, parallelizable)
  2287. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MSurfaceRecv)'
  2288. language c;
  2289. create function ST_MSurfaceExpB(ST_MultiSurface) returns impexpbin
  2290. with (not variant, parallelizable)
  2291. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2292. language c;
  2293. create function Assign(ST_MultiSurface) returns ST_MultiSurface
  2294. with (not variant, parallelizable)
  2295. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  2296. language c;
  2297. create procedure Destroy(ST_MultiSurface)
  2298. with (not variant, parallelizable)
  2299. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  2300. language c;
  2301. create function LOhandles(ST_MultiSurface) returns lolist
  2302. with (not variant, parallelizable)
  2303. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  2304. language c;
  2305. create function ST_Area(ST_MultiSurface) returns float
  2306. with (not variant, parallelizable)
  2307. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaMultiSurface)'
  2308. language c;
  2309. create function ST_Centroid(ST_MultiSurface) returns ST_Point
  2310. with (not variant, parallelizable)
  2311. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CentroidMultiSurface)'
  2312. language c;
  2313. create function ST_Perimeter(ST_MultiSurface) returns float
  2314. with (not variant, parallelizable)
  2315. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterMultiSurface)'
  2316. language c;
  2317. create function ST_PointOnSurface(ST_MultiSurface) returns ST_Point
  2318. with (not variant, parallelizable)
  2319. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointOnMultiSurface)'
  2320. language c;
  2321. grant execute on function ST_MSurfaceIn (lvarchar) to public;
  2322. grant execute on function ST_MSurfaceOut (ST_MultiSurface) to public;
  2323. grant execute on function ST_MSurfaceSend (ST_MultiSurface) to public;
  2324. grant execute on function ST_MSurfaceRecv (sendrecv) to public;
  2325. grant execute on function ST_MSurfaceImpT (impexp) to public;
  2326. grant execute on function ST_MSurfaceExpT (ST_MultiSurface) to public;
  2327. grant execute on function ST_MSurfaceImpB (impexpbin) to public;
  2328. grant execute on function ST_MSurfaceExpB (ST_MultiSurface) to public;
  2329. grant execute on function Assign (ST_MultiSurface) to public;
  2330. grant execute on procedure Destroy (ST_MultiSurface) to public;
  2331. grant execute on function LOhandles (ST_MultiSurface) to public;
  2332. grant execute on function ST_Area (ST_MultiSurface) to public;
  2333. grant execute on function ST_Centroid (ST_MultiSurface) to public;
  2334. grant execute on function ST_Perimeter (ST_MultiSurface) to public;
  2335. grant execute on function ST_PointOnSurface (ST_MultiSurface) to public;
  2336. create implicit cast (lvarchar as ST_MultiSurface with ST_MSurfaceIn);
  2337. create explicit cast (ST_MultiSurface as lvarchar with ST_MSurfaceOut);
  2338. create explicit cast (ST_MultiSurface as sendrecv with ST_MSurfaceSend);
  2339. create implicit cast (sendrecv as ST_MultiSurface with ST_MSurfaceRecv);
  2340. create implicit cast (impexp as ST_MultiSurface with ST_MSurfaceImpT);
  2341. create explicit cast (ST_MultiSurface as impexp with ST_MSurfaceExpT);
  2342. create implicit cast (impexpbin as ST_MultiSurface with ST_MSurfaceImpB);
  2343. create explicit cast (ST_MultiSurface as impexpbin with ST_MSurfaceExpB);
  2344. ",
  2345. "f",
  2346. "
  2347. drop cast (lvarchar as ST_MultiSurface);
  2348. drop cast (ST_MultiSurface as lvarchar);
  2349. drop cast (ST_MultiSurface as sendrecv);
  2350. drop cast (sendrecv as ST_MultiSurface);
  2351. drop cast (impexp as ST_MultiSurface);
  2352. drop cast (ST_MultiSurface as impexp);
  2353. drop cast (impexpbin as ST_MultiSurface);
  2354. drop cast (ST_MultiSurface as impexpbin);
  2355. drop function ST_MSurfaceIn(lvarchar);
  2356. drop function ST_MSurfaceOut(ST_MultiSurface);
  2357. drop function ST_MSurfaceSend(ST_MultiSurface);
  2358. drop function ST_MSurfaceRecv(sendrecv);
  2359. drop function ST_MSurfaceImpT(impexp);
  2360. drop function ST_MSurfaceExpT(ST_MultiSurface);
  2361. drop function ST_MSurfaceImpB(impexpbin);
  2362. drop function ST_MSurfaceExpB(ST_MultiSurface);
  2363. drop function Assign(ST_MultiSurface);
  2364. drop procedure Destroy(ST_MultiSurface);
  2365. drop function LOhandles(ST_MultiSurface);
  2366. drop function ST_Area(ST_MultiSurface);
  2367. drop function ST_Centroid(ST_MultiSurface);
  2368. drop function ST_Perimeter(ST_MultiSurface);
  2369. drop function ST_PointOnSurface(ST_MultiSurface);
  2370. ",
  2371. "f"
  2372. );
  2373. insert into sysbldobjdepends
  2374. (bld_id, obj_kind, obj_signature, obj_owner,
  2375. need_obj_kind, need_obj_signature, need_obj_owner)
  2376. values
  2377. (
  2378. "%SYSBLDNAME%",
  2379. 0, "msurface.%SYSBLDDIR%",
  2380. "%SYSBLDUSER%",
  2381. 0, "types.sql",
  2382. "%SYSBLDUSER%"
  2383. );
  2384. insert into sysbldobjects
  2385. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  2386. create_can_fail, drop_sql, drop_can_fail)
  2387. values
  2388. (
  2389. "%SYSBLDNAME%", 0, "curve.%SYSBLDDIR%",
  2390. "%SYSBLDUSER%", 0,
  2391. "create function ST_CurveIn(lvarchar) returns ST_Curve
  2392. with (not variant, parallelizable)
  2393. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveIn)'
  2394. language c;
  2395. create function ST_CurveOut(ST_Curve) returns lvarchar
  2396. with (not variant, parallelizable)
  2397. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  2398. language c;
  2399. create function ST_CurveSend(ST_Curve) returns sendrecv
  2400. with (not variant, parallelizable)
  2401. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2402. language c;
  2403. create function ST_CurveRecv(sendrecv) returns ST_Curve
  2404. with (not variant, parallelizable)
  2405. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveRecv)'
  2406. language c;
  2407. create function ST_CurveImpT(impexp) returns ST_Curve
  2408. with (not variant, parallelizable)
  2409. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveIn)'
  2410. language c;
  2411. create function ST_CurveExpT(ST_Curve) returns impexp
  2412. with (not variant, parallelizable)
  2413. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  2414. language c;
  2415. create function ST_CurveImpB(impexpbin) returns ST_Curve
  2416. with (not variant, parallelizable)
  2417. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CurveRecv)'
  2418. language c;
  2419. create function ST_CurveExpB(ST_Curve) returns impexpbin
  2420. with (not variant, parallelizable)
  2421. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2422. language c;
  2423. create function Assign(ST_Curve) returns ST_Curve
  2424. with (not variant, parallelizable)
  2425. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  2426. language c;
  2427. create procedure Destroy(ST_Curve)
  2428. with (not variant, parallelizable)
  2429. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  2430. language c;
  2431. create function LOhandles(ST_Curve) returns lolist
  2432. with (not variant, parallelizable)
  2433. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  2434. language c;
  2435. create function ST_EndPoint(ST_Curve) returns ST_Point
  2436. with (not variant, parallelizable, percall_cost=100)
  2437. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_EndPoint)'
  2438. language c;
  2439. create function ST_IsClosed(ST_Curve) returns boolean
  2440. with (not variant, parallelizable)
  2441. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsClosedCurve)'
  2442. language c;
  2443. create function ST_IsRing(ST_Curve) returns boolean
  2444. with (not variant, parallelizable, percall_cost=200)
  2445. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsRing)'
  2446. language c;
  2447. create function ST_StartPoint(ST_Curve) returns ST_Point
  2448. with (not variant, parallelizable, percall_cost=50)
  2449. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_StartPoint)'
  2450. language c;
  2451. grant execute on function ST_CurveIn (lvarchar) to public;
  2452. grant execute on function ST_CurveOut (ST_Curve) to public;
  2453. grant execute on function ST_CurveSend (ST_Curve) to public;
  2454. grant execute on function ST_CurveRecv (sendrecv) to public;
  2455. grant execute on function ST_CurveImpT (impexp) to public;
  2456. grant execute on function ST_CurveExpT (ST_Curve) to public;
  2457. grant execute on function ST_CurveImpB (impexpbin) to public;
  2458. grant execute on function ST_CurveExpB (ST_Curve) to public;
  2459. grant execute on function Assign (ST_Curve) to public;
  2460. grant execute on procedure Destroy (ST_Curve) to public;
  2461. grant execute on function LOhandles (ST_Curve) to public;
  2462. grant execute on function ST_EndPoint (ST_Curve) to public;
  2463. grant execute on function ST_IsClosed (ST_Curve) to public;
  2464. grant execute on function ST_IsRing (ST_Curve) to public;
  2465. grant execute on function ST_StartPoint (ST_Curve) to public;
  2466. create implicit cast (lvarchar as ST_Curve with ST_CurveIn);
  2467. create explicit cast (ST_Curve as lvarchar with ST_CurveOut);
  2468. create explicit cast (ST_Curve as sendrecv with ST_CurveSend);
  2469. create implicit cast (sendrecv as ST_Curve with ST_CurveRecv);
  2470. create implicit cast (impexp as ST_Curve with ST_CurveImpT);
  2471. create explicit cast (ST_Curve as impexp with ST_CurveExpT);
  2472. create implicit cast (impexpbin as ST_Curve with ST_CurveImpB);
  2473. create explicit cast (ST_Curve as impexpbin with ST_CurveExpB);
  2474. ",
  2475. "f",
  2476. "
  2477. drop cast (lvarchar as ST_Curve);
  2478. drop cast (ST_Curve as lvarchar);
  2479. drop cast (ST_Curve as sendrecv);
  2480. drop cast (sendrecv as ST_Curve);
  2481. drop cast (impexp as ST_Curve);
  2482. drop cast (ST_Curve as impexp);
  2483. drop cast (impexpbin as ST_Curve);
  2484. drop cast (ST_Curve as impexpbin);
  2485. drop function ST_CurveIn(lvarchar);
  2486. drop function ST_CurveOut(ST_Curve);
  2487. drop function ST_CurveSend(ST_Curve);
  2488. drop function ST_CurveRecv(sendrecv);
  2489. drop function ST_CurveImpT(impexp);
  2490. drop function ST_CurveExpT(ST_Curve);
  2491. drop function ST_CurveImpB(impexpbin);
  2492. drop function ST_CurveExpB(ST_Curve);
  2493. drop function Assign(ST_Curve);
  2494. drop procedure Destroy(ST_Curve);
  2495. drop function LOhandles(ST_Curve);
  2496. drop function ST_EndPoint(ST_Curve);
  2497. drop function ST_IsClosed(ST_Curve);
  2498. drop function ST_IsRing(ST_Curve);
  2499. drop function ST_StartPoint(ST_Curve);
  2500. ",
  2501. "f"
  2502. );
  2503. insert into sysbldobjdepends
  2504. (bld_id, obj_kind, obj_signature, obj_owner,
  2505. need_obj_kind, need_obj_signature, need_obj_owner)
  2506. values
  2507. (
  2508. "%SYSBLDNAME%",
  2509. 0, "curve.%SYSBLDDIR%",
  2510. "%SYSBLDUSER%",
  2511. 0, "types.sql",
  2512. "%SYSBLDUSER%"
  2513. );
  2514. insert into sysbldobjects
  2515. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  2516. create_can_fail, drop_sql, drop_can_fail)
  2517. values
  2518. (
  2519. "%SYSBLDNAME%", 0, "mcurve.%SYSBLDDIR%",
  2520. "%SYSBLDUSER%", 0,
  2521. "create function ST_MCurveIn(lvarchar) returns ST_MultiCurve
  2522. with (not variant, parallelizable)
  2523. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveIn)'
  2524. language c;
  2525. create function ST_MCurveOut(ST_MultiCurve) returns lvarchar
  2526. with (not variant, parallelizable)
  2527. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  2528. language c;
  2529. create function ST_MCurveSend(ST_MultiCurve) returns sendrecv
  2530. with (not variant, parallelizable)
  2531. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2532. language c;
  2533. create function ST_MCurveRecv(sendrecv) returns ST_MultiCurve
  2534. with (not variant, parallelizable)
  2535. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveRecv)'
  2536. language c;
  2537. create function ST_MCurveImpT(impexp) returns ST_MultiCurve
  2538. with (not variant, parallelizable)
  2539. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveIn)'
  2540. language c;
  2541. create function ST_MCurveExpT(ST_MultiCurve) returns impexp
  2542. with (not variant, parallelizable)
  2543. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  2544. language c;
  2545. create function ST_MCurveImpB(impexpbin) returns ST_MultiCurve
  2546. with (not variant, parallelizable)
  2547. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MCurveRecv)'
  2548. language c;
  2549. create function ST_MCurveExpB(ST_MultiCurve) returns impexpbin
  2550. with (not variant, parallelizable)
  2551. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2552. language c;
  2553. create function Assign(ST_MultiCurve) returns ST_MultiCurve
  2554. with (not variant, parallelizable)
  2555. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  2556. language c;
  2557. create procedure Destroy(ST_MultiCurve)
  2558. with (not variant, parallelizable)
  2559. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  2560. language c;
  2561. create function LOhandles(ST_MultiCurve) returns lolist
  2562. with (not variant, parallelizable)
  2563. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  2564. language c;
  2565. create function ST_IsClosed(ST_MultiCurve) returns boolean
  2566. with (not variant, parallelizable)
  2567. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsClosedMultiCurve)'
  2568. language c;
  2569. grant execute on function ST_MCurveIn (lvarchar) to public;
  2570. grant execute on function ST_MCurveOut (ST_MultiCurve) to public;
  2571. grant execute on function ST_MCurveSend (ST_MultiCurve) to public;
  2572. grant execute on function ST_MCurveRecv (sendrecv) to public;
  2573. grant execute on function ST_MCurveImpT (impexp) to public;
  2574. grant execute on function ST_MCurveExpT (ST_MultiCurve) to public;
  2575. grant execute on function ST_MCurveImpB (impexpbin) to public;
  2576. grant execute on function ST_MCurveExpB (ST_MultiCurve) to public;
  2577. grant execute on function Assign (ST_MultiCurve) to public;
  2578. grant execute on procedure Destroy (ST_MultiCurve) to public;
  2579. grant execute on function LOhandles (ST_MultiCurve) to public;
  2580. grant execute on function ST_IsClosed (ST_MultiCurve) to public;
  2581. create implicit cast (lvarchar as ST_MultiCurve with ST_MCurveIn);
  2582. create explicit cast (ST_MultiCurve as lvarchar with ST_MCurveOut);
  2583. create explicit cast (ST_MultiCurve as sendrecv with ST_MCurveSend);
  2584. create implicit cast (sendrecv as ST_MultiCurve with ST_MCurveRecv);
  2585. create implicit cast (impexp as ST_MultiCurve with ST_MCurveImpT);
  2586. create explicit cast (ST_MultiCurve as impexp with ST_MCurveExpT);
  2587. create implicit cast (impexpbin as ST_MultiCurve with ST_MCurveImpB);
  2588. create explicit cast (ST_MultiCurve as impexpbin with ST_MCurveExpB);
  2589. ",
  2590. "f",
  2591. "
  2592. drop cast (lvarchar as ST_MultiCurve);
  2593. drop cast (ST_MultiCurve as lvarchar);
  2594. drop cast (ST_MultiCurve as sendrecv);
  2595. drop cast (sendrecv as ST_MultiCurve);
  2596. drop cast (impexp as ST_MultiCurve);
  2597. drop cast (ST_MultiCurve as impexp);
  2598. drop cast (impexpbin as ST_MultiCurve);
  2599. drop cast (ST_MultiCurve as impexpbin);
  2600. drop function ST_MCurveIn(lvarchar);
  2601. drop function ST_MCurveOut(ST_MultiCurve);
  2602. drop function ST_MCurveSend(ST_MultiCurve);
  2603. drop function ST_MCurveRecv(sendrecv);
  2604. drop function ST_MCurveImpT(impexp);
  2605. drop function ST_MCurveExpT(ST_MultiCurve);
  2606. drop function ST_MCurveImpB(impexpbin);
  2607. drop function ST_MCurveExpB(ST_MultiCurve);
  2608. drop function Assign(ST_MultiCurve);
  2609. drop procedure Destroy(ST_MultiCurve);
  2610. drop function LOhandles(ST_MultiCurve);
  2611. drop function ST_IsClosed(ST_MultiCurve);
  2612. ",
  2613. "f"
  2614. );
  2615. insert into sysbldobjdepends
  2616. (bld_id, obj_kind, obj_signature, obj_owner,
  2617. need_obj_kind, need_obj_signature, need_obj_owner)
  2618. values
  2619. (
  2620. "%SYSBLDNAME%",
  2621. 0, "mcurve.%SYSBLDDIR%",
  2622. "%SYSBLDUSER%",
  2623. 0, "types.sql",
  2624. "%SYSBLDUSER%"
  2625. );
  2626. insert into sysbldobjects
  2627. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  2628. create_can_fail, drop_sql, drop_can_fail)
  2629. values
  2630. (
  2631. "%SYSBLDNAME%", 0, "geomcoll.%SYSBLDDIR%",
  2632. "%SYSBLDUSER%", 0,
  2633. "create function ST_GeomCollIn(lvarchar) returns ST_GeomCollection
  2634. with (not variant, parallelizable)
  2635. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollIn)'
  2636. language c;
  2637. create function ST_GeomCollOut(ST_GeomCollection) returns lvarchar
  2638. with (not variant, parallelizable)
  2639. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryOut)'
  2640. language c;
  2641. create function ST_GeomCollSend(ST_GeomCollection) returns sendrecv
  2642. with (not variant, parallelizable)
  2643. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2644. language c;
  2645. create function ST_GeomCollRecv(sendrecv) returns ST_GeomCollection
  2646. with (not variant, parallelizable)
  2647. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollRecv)'
  2648. language c;
  2649. create function ST_GeomCollImpT(impexp) returns ST_GeomCollection
  2650. with (not variant, parallelizable)
  2651. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollIn)'
  2652. language c;
  2653. create function ST_GeomCollExpT(ST_GeomCollection) returns impexp
  2654. with (not variant, parallelizable)
  2655. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryExport)'
  2656. language c;
  2657. create function ST_GeomCollImpB(impexpbin) returns ST_GeomCollection
  2658. with (not variant, parallelizable)
  2659. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomCollRecv)'
  2660. language c;
  2661. create function ST_GeomCollExpB(ST_GeomCollection) returns impexpbin
  2662. with (not variant, parallelizable)
  2663. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometrySend)'
  2664. language c;
  2665. create function Assign(ST_GeomCollection) returns ST_GeomCollection
  2666. with (not variant, parallelizable)
  2667. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryAssign)'
  2668. language c;
  2669. create procedure Destroy(ST_GeomCollection)
  2670. with (not variant, parallelizable)
  2671. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryDestroy)'
  2672. language c;
  2673. create function LOhandles(ST_GeomCollection) returns lolist
  2674. with (not variant, parallelizable)
  2675. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryLOhandles)'
  2676. language c;
  2677. create function ST_NumGeometries(ST_GeomCollection) returns integer
  2678. with (not variant, parallelizable)
  2679. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_NumGeometries)'
  2680. language c;
  2681. create function ST_GeometryN(ST_GeomCollection,integer) returns ST_Geometry
  2682. with (not variant, parallelizable)
  2683. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeometryN)'
  2684. language c;
  2685. grant execute on function ST_GeomCollIn (lvarchar) to public;
  2686. grant execute on function ST_GeomCollOut (ST_GeomCollection) to public;
  2687. grant execute on function ST_GeomCollSend (ST_GeomCollection) to public;
  2688. grant execute on function ST_GeomCollRecv (sendrecv) to public;
  2689. grant execute on function ST_GeomCollImpT (impexp) to public;
  2690. grant execute on function ST_GeomCollExpT (ST_GeomCollection) to public;
  2691. grant execute on function ST_GeomCollImpB (impexpbin) to public;
  2692. grant execute on function ST_GeomCollExpB (ST_GeomCollection) to public;
  2693. grant execute on function Assign (ST_GeomCollection) to public;
  2694. grant execute on procedure Destroy (ST_GeomCollection) to public;
  2695. grant execute on function LOhandles (ST_GeomCollection) to public;
  2696. grant execute on function ST_NumGeometries (ST_GeomCollection) to public;
  2697. grant execute on function ST_GeometryN (ST_GeomCollection,integer) to public;
  2698. create implicit cast (lvarchar as ST_GeomCollection with ST_GeomCollIn);
  2699. create explicit cast (ST_GeomCollection as lvarchar with ST_GeomCollOut);
  2700. create explicit cast (ST_GeomCollection as sendrecv with ST_GeomCollSend);
  2701. create implicit cast (sendrecv as ST_GeomCollection with ST_GeomCollRecv);
  2702. create implicit cast (impexp as ST_GeomCollection with ST_GeomCollImpT);
  2703. create explicit cast (ST_GeomCollection as impexp with ST_GeomCollExpT);
  2704. create implicit cast (impexpbin as ST_GeomCollection with ST_GeomCollImpB);
  2705. create explicit cast (ST_GeomCollection as impexpbin with ST_GeomCollExpB);
  2706. ",
  2707. "f",
  2708. "
  2709. drop cast (lvarchar as ST_GeomCollection);
  2710. drop cast (ST_GeomCollection as lvarchar);
  2711. drop cast (ST_GeomCollection as sendrecv);
  2712. drop cast (sendrecv as ST_GeomCollection);
  2713. drop cast (impexp as ST_GeomCollection);
  2714. drop cast (ST_GeomCollection as impexp);
  2715. drop cast (impexpbin as ST_GeomCollection);
  2716. drop cast (ST_GeomCollection as impexpbin);
  2717. drop function ST_GeomCollIn(lvarchar);
  2718. drop function ST_GeomCollOut(ST_GeomCollection);
  2719. drop function ST_GeomCollSend(ST_GeomCollection);
  2720. drop function ST_GeomCollRecv(sendrecv);
  2721. drop function ST_GeomCollImpT(impexp);
  2722. drop function ST_GeomCollExpT(ST_GeomCollection);
  2723. drop function ST_GeomCollImpB(impexpbin);
  2724. drop function ST_GeomCollExpB(ST_GeomCollection);
  2725. drop function Assign(ST_GeomCollection);
  2726. drop procedure Destroy(ST_GeomCollection);
  2727. drop function LOhandles(ST_GeomCollection);
  2728. drop function ST_GeometryN(ST_GeomCollection,integer);
  2729. drop function ST_NumGeometries(ST_GeomCollection);
  2730. ",
  2731. "f"
  2732. );
  2733. insert into sysbldobjdepends
  2734. (bld_id, obj_kind, obj_signature, obj_owner,
  2735. need_obj_kind, need_obj_signature, need_obj_owner)
  2736. values
  2737. (
  2738. "%SYSBLDNAME%",
  2739. 0, "geomcoll.%SYSBLDDIR%",
  2740. "%SYSBLDUSER%",
  2741. 0, "types.sql",
  2742. "%SYSBLDUSER%"
  2743. );
  2744. insert into sysbldobjects
  2745. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  2746. create_can_fail, drop_sql, drop_can_fail)
  2747. values
  2748. (
  2749. "%SYSBLDNAME%", 0, "geomfuncs.sql",
  2750. "%SYSBLDUSER%", 0,
  2751. "create function Compare(ST_Geometry,ST_Geometry) returns int
  2752. with (not variant, parallelizable)
  2753. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryCompare)'
  2754. language c;
  2755. create function NotEqual(ST_Geometry,ST_Geometry) returns boolean
  2756. with (not variant, parallelizable)
  2757. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryNotEqual)'
  2758. language c;
  2759. create function SE_Anno_Text(ST_Geometry) returns lvarchar
  2760. with (not variant, parallelizable)
  2761. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Anno_Text)'
  2762. language c;
  2763. create function SE_Area(ST_Geometry) returns float
  2764. with (not variant, parallelizable)
  2765. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Area)'
  2766. language c;
  2767. create function ST_AsBinary(ST_Geometry) returns ST_Geometry
  2768. with (not variant, parallelizable)
  2769. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsBinary)'
  2770. language c;
  2771. create function ST_AsText(ST_Geometry) returns ST_Geometry
  2772. with (not variant, parallelizable)
  2773. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsText)'
  2774. language c;
  2775. create function SE_AsShape(ST_Geometry) returns ST_Geometry
  2776. with (not variant, parallelizable)
  2777. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsShape)'
  2778. language c;
  2779. create function SE_AsSde(ST_Geometry) returns ST_Geometry
  2780. with (not variant, parallelizable)
  2781. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsSde)'
  2782. language c;
  2783. create function ST_Boundary(ST_Geometry) returns ST_Geometry
  2784. with (not variant, parallelizable)
  2785. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Boundary)'
  2786. language c;
  2787. create function ST_Buffer(ST_Geometry,float) returns ST_Geometry
  2788. with (not variant, parallelizable, percall_cost=8000)
  2789. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Buffer)'
  2790. language c;
  2791. create function ST_ConvexHull(ST_Geometry) returns ST_Geometry
  2792. with (not variant, parallelizable, percall_cost=1000)
  2793. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ConvexHull)'
  2794. language c;
  2795. create function ST_CoordDim(ST_Geometry) returns int
  2796. with (not variant, parallelizable, percall_cost=10)
  2797. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CoordDim)'
  2798. language c;
  2799. create function ST_Difference(ST_Geometry,ST_Geometry) returns ST_Geometry
  2800. with (not variant, parallelizable, percall_cost=8000)
  2801. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Difference)'
  2802. language c;
  2803. create function ST_Dimension(ST_Geometry) returns int
  2804. with (not variant, parallelizable, percall_cost=10)
  2805. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Dimension)'
  2806. language c;
  2807. create function ST_Disjoint(ST_Geometry,ST_Geometry) returns boolean
  2808. with (not variant, parallelizable, percall_cost=1000)
  2809. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Disjoint)'
  2810. language c;
  2811. create function ST_Distance(ST_Geometry,ST_Geometry) returns float
  2812. with (not variant, parallelizable, percall_cost=300)
  2813. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Distance)'
  2814. language c;
  2815. create function ST_Envelope(ST_Geometry) returns ST_Geometry
  2816. with (not variant, parallelizable, percall_cost=50)
  2817. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Envelope)'
  2818. language c;
  2819. create function SE_Generalize(ST_Geometry,float) returns ST_Geometry
  2820. with (not variant, parallelizable)
  2821. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Generalize)'
  2822. language c;
  2823. create function ST_GeometryType(ST_Geometry) returns lvarchar
  2824. with (not variant, parallelizable)
  2825. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeometryType)'
  2826. language c;
  2827. create function ST_Intersection(ST_Geometry,ST_Geometry) returns ST_Geometry
  2828. with (not variant, parallelizable, percall_cost=8000)
  2829. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Intersection)'
  2830. language c;
  2831. create function SE_Is3D(ST_Geometry) returns boolean
  2832. with (not variant, parallelizable, percall_cost=10)
  2833. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Is3D)'
  2834. language c;
  2835. create function ST_IsEmpty(ST_Geometry) returns boolean
  2836. with (not variant, parallelizable, percall_cost=10)
  2837. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsEmpty)'
  2838. language c;
  2839. create function SE_IsMeasured(ST_Geometry) returns boolean
  2840. with (not variant, parallelizable, percall_cost=10)
  2841. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_IsMeasured)'
  2842. language c;
  2843. create function ST_IsSimple(ST_Geometry) returns boolean
  2844. with (not variant, parallelizable, percall_cost=10)
  2845. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsSimple)'
  2846. language c;
  2847. create function ST_IsValid(ST_Geometry) returns boolean
  2848. with (not variant, parallelizable, percall_cost=10)
  2849. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IsValid)'
  2850. language c;
  2851. create function SE_Length(ST_Geometry) returns float
  2852. with (not variant, parallelizable)
  2853. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Length)'
  2854. language c;
  2855. create function SE_LocateAlong(ST_Geometry,float) returns ST_Geometry
  2856. with (not variant, parallelizable, percall_cost=5000)
  2857. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateAlong)'
  2858. language c;
  2859. create function SE_LocateBetween(ST_Geometry,float,float) returns ST_Geometry
  2860. with (not variant, parallelizable, percall_cost=500)
  2861. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LocateBetween)'
  2862. language c;
  2863. create function SE_Mmax(ST_Geometry) returns float
  2864. with (not variant, parallelizable)
  2865. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmax)'
  2866. language c;
  2867. create function SE_Mmin(ST_Geometry) returns float
  2868. with (not variant, parallelizable)
  2869. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Mmin)'
  2870. language c;
  2871. create function ST_NumPoints(ST_Geometry) returns int
  2872. with (not variant, parallelizable, percall_cost=10)
  2873. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_NumPoints)'
  2874. language c;
  2875. create function ST_Relate(ST_Geometry,ST_Geometry,lvarchar) returns boolean
  2876. with (not variant, parallelizable)
  2877. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Relate)'
  2878. language c;
  2879. create function SE_SdeEntity(ST_Geometry) returns int
  2880. with (not variant, parallelizable)
  2881. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SdeEntity)'
  2882. language c;
  2883. create function SE_SpatialKey(ST_Geometry) returns int8
  2884. with (not variant, parallelizable)
  2885. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SpatialKey)'
  2886. language c;
  2887. create function ST_SRID(ST_Geometry) returns int
  2888. with (not variant, parallelizable, percall_cost=10)
  2889. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SRID)'
  2890. language c;
  2891. create function SE_SRID_Authority(integer) returns lvarchar
  2892. with (not variant, parallelizable)
  2893. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SRID_Authority)'
  2894. language c;
  2895. create function ST_SymDifference(ST_Geometry,ST_Geometry) returns ST_Geometry
  2896. with (not variant, parallelizable)
  2897. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SymDifference)'
  2898. language c;
  2899. create function ST_Union(ST_Geometry,ST_Geometry) returns ST_Geometry
  2900. with (not variant, parallelizable)
  2901. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Union)'
  2902. language c;
  2903. create function ST_Transform(ST_Geometry,int) returns ST_Geometry
  2904. with (not variant, parallelizable, stack=90000)
  2905. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Transform)'
  2906. language c;
  2907. create function SE_Xmax(ST_Geometry) returns float
  2908. with (not variant, parallelizable)
  2909. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmax)'
  2910. language c;
  2911. create function SE_Xmin(ST_Geometry) returns float
  2912. with (not variant, parallelizable)
  2913. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Xmin)'
  2914. language c;
  2915. create function SE_Ymax(ST_Geometry) returns float
  2916. with (not variant, parallelizable)
  2917. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymax)'
  2918. language c;
  2919. create function SE_Ymin(ST_Geometry) returns float
  2920. with (not variant, parallelizable)
  2921. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ymin)'
  2922. language c;
  2923. create function SE_Zmax(ST_Geometry) returns float
  2924. with (not variant, parallelizable)
  2925. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmax)'
  2926. language c;
  2927. create function SE_Zmin(ST_Geometry) returns float
  2928. with (not variant, parallelizable)
  2929. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Zmin)'
  2930. language c;
  2931. grant execute on function Compare (ST_Geometry,ST_Geometry) to public;
  2932. grant execute on function NotEqual (ST_Geometry,ST_Geometry) to public;
  2933. grant execute on function SE_Anno_Text (ST_Geometry) to public;
  2934. grant execute on function SE_Area (ST_Geometry) to public;
  2935. grant execute on function ST_AsBinary (ST_Geometry) to public;
  2936. grant execute on function SE_AsShape (ST_Geometry) to public;
  2937. grant execute on function SE_AsSde (ST_Geometry) to public;
  2938. grant execute on function ST_AsText (ST_Geometry) to public;
  2939. grant execute on function ST_Boundary (ST_Geometry) to public;
  2940. grant execute on function ST_Buffer (ST_Geometry,float) to public;
  2941. grant execute on function ST_ConvexHull (ST_Geometry) to public;
  2942. grant execute on function ST_CoordDim (ST_Geometry) to public;
  2943. grant execute on function ST_Difference (ST_Geometry,ST_Geometry) to public;
  2944. grant execute on function ST_Dimension (ST_Geometry) to public;
  2945. grant execute on function ST_Disjoint (ST_Geometry,ST_Geometry) to public;
  2946. grant execute on function ST_Distance (ST_Geometry,ST_Geometry) to public;
  2947. grant execute on function ST_Envelope (ST_Geometry) to public;
  2948. grant execute on function SE_Generalize(ST_Geometry,float) to public;
  2949. grant execute on function ST_GeometryType (ST_Geometry) to public;
  2950. grant execute on function ST_Intersection (ST_Geometry,ST_Geometry) to public;
  2951. grant execute on function SE_Is3D (ST_Geometry) to public;
  2952. grant execute on function ST_IsEmpty (ST_Geometry) to public;
  2953. grant execute on function SE_IsMeasured (ST_Geometry) to public;
  2954. grant execute on function ST_IsSimple (ST_Geometry) to public;
  2955. grant execute on function ST_IsValid (ST_Geometry) to public;
  2956. grant execute on function SE_Length (ST_Geometry) to public;
  2957. grant execute on function SE_LocateAlong (ST_Geometry,float) to public;
  2958. grant execute on function SE_LocateBetween (ST_Geometry,float,float) to public;
  2959. grant execute on function SE_Mmax (ST_Geometry) to public;
  2960. grant execute on function SE_Mmin (ST_Geometry) to public;
  2961. grant execute on function ST_NumPoints (ST_Geometry) to public;
  2962. grant execute on function ST_Relate (ST_Geometry,ST_Geometry,lvarchar) to public;
  2963. grant execute on function SE_SdeEntity (ST_Geometry) to public;
  2964. grant execute on function SE_SpatialKey(ST_Geometry) to public;
  2965. grant execute on function ST_SRID (ST_Geometry) to public;
  2966. grant execute on function SE_SRID_Authority(integer) to public;
  2967. grant execute on function ST_SymDifference (ST_Geometry,ST_Geometry) to public;
  2968. grant execute on function ST_Union (ST_Geometry,ST_Geometry) to public;
  2969. grant execute on function ST_Transform (ST_Geometry,int) to public;
  2970. grant execute on function SE_Xmax (ST_Geometry) to public;
  2971. grant execute on function SE_Xmin (ST_Geometry) to public;
  2972. grant execute on function SE_Ymax (ST_Geometry) to public;
  2973. grant execute on function SE_Ymin (ST_Geometry) to public;
  2974. grant execute on function SE_Zmax (ST_Geometry) to public;
  2975. grant execute on function SE_Zmin (ST_Geometry) to public;
  2976. ",
  2977. "f",
  2978. "
  2979. drop function Compare(ST_Geometry,ST_Geometry);
  2980. drop function NotEqual(ST_Geometry,ST_Geometry);
  2981. drop function SE_Anno_Text(ST_Geometry);
  2982. drop function SE_Area(ST_Geometry);
  2983. drop function ST_AsBinary(ST_Geometry);
  2984. drop function SE_AsShape(ST_Geometry);
  2985. drop function SE_AsSde(ST_Geometry);
  2986. drop function ST_AsText(ST_Geometry);
  2987. drop function ST_Boundary(ST_Geometry);
  2988. drop function ST_Buffer(ST_Geometry,float);
  2989. drop function ST_ConvexHull(ST_Geometry);
  2990. drop function ST_CoordDim(ST_Geometry);
  2991. drop function ST_Difference(ST_Geometry,ST_Geometry);
  2992. drop function ST_Dimension(ST_Geometry);
  2993. drop function ST_Disjoint(ST_Geometry,ST_Geometry);
  2994. drop function ST_Distance(ST_Geometry,ST_Geometry);
  2995. drop function ST_Envelope(ST_Geometry);
  2996. drop function ST_GeometryType(ST_Geometry);
  2997. drop function SE_Generalize(ST_Geometry,float);
  2998. drop function ST_Intersection(ST_Geometry,ST_Geometry);
  2999. drop function SE_Is3D(ST_Geometry);
  3000. drop function ST_IsEmpty(ST_Geometry);
  3001. drop function SE_IsMeasured(ST_Geometry);
  3002. drop function ST_IsSimple(ST_Geometry);
  3003. drop function ST_IsValid(ST_Geometry);
  3004. drop function SE_Length(ST_Geometry);
  3005. drop function SE_LocateAlong(ST_Geometry,float);
  3006. drop function SE_LocateBetween(ST_Geometry,float,float);
  3007. drop function SE_Mmax(ST_Geometry);
  3008. drop function SE_Mmin(ST_Geometry);
  3009. drop function ST_NumPoints(ST_Geometry);
  3010. drop function ST_Relate(ST_Geometry,ST_Geometry,lvarchar);
  3011. drop function SE_SdeEntity(ST_Geometry);
  3012. drop function SE_SpatialKey(ST_Geometry);
  3013. drop function ST_SRID(ST_Geometry);
  3014. drop function SE_SRID_Authority(integer);
  3015. drop function ST_SymDifference(ST_Geometry,ST_Geometry);
  3016. drop function ST_Transform(ST_Geometry,int);
  3017. drop function ST_Union(ST_Geometry,ST_Geometry);
  3018. drop function SE_Xmax(ST_Geometry);
  3019. drop function SE_Xmin(ST_Geometry);
  3020. drop function SE_Ymax(ST_Geometry);
  3021. drop function SE_Ymin(ST_Geometry);
  3022. drop function SE_Zmax(ST_Geometry);
  3023. drop function SE_Zmin(ST_Geometry);
  3024. ",
  3025. "f"
  3026. );
  3027. insert into sysbldobjdepends
  3028. (bld_id, obj_kind, obj_signature, obj_owner,
  3029. need_obj_kind, need_obj_signature, need_obj_owner)
  3030. values
  3031. (
  3032. "%SYSBLDNAME%",
  3033. 0, "geomfuncs.sql",
  3034. "%SYSBLDUSER%",
  3035. 0, "types.sql",
  3036. "%SYSBLDUSER%"
  3037. );
  3038. insert into sysbldobjects
  3039. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3040. create_can_fail, drop_sql, drop_can_fail)
  3041. values
  3042. (
  3043. "%SYSBLDNAME%", 0, "updowncasts.sql",
  3044. "%SYSBLDUSER%", 0,
  3045. "create implicit cast (ST_Curve as ST_Geometry);
  3046. create explicit cast (ST_Curve as ST_LineString);
  3047. create explicit cast (ST_Geometry as ST_Curve);
  3048. create explicit cast (ST_Geometry as ST_GeomCollection);
  3049. create explicit cast (ST_Geometry as ST_LineString);
  3050. create explicit cast (ST_Geometry as ST_MultiCurve);
  3051. create explicit cast (ST_Geometry as ST_MultiLineString);
  3052. create explicit cast (ST_Geometry as ST_MultiPoint);
  3053. create explicit cast (ST_Geometry as ST_MultiPolygon);
  3054. create explicit cast (ST_Geometry as ST_MultiSurface);
  3055. create explicit cast (ST_Geometry as ST_Point);
  3056. create explicit cast (ST_Geometry as ST_Polygon);
  3057. create explicit cast (ST_Geometry as ST_Surface);
  3058. create implicit cast (ST_GeomCollection as ST_Geometry);
  3059. create explicit cast (ST_GeomCollection as ST_MultiCurve);
  3060. create explicit cast (ST_GeomCollection as ST_MultiLineString);
  3061. create explicit cast (ST_GeomCollection as ST_MultiPoint);
  3062. create explicit cast (ST_GeomCollection as ST_MultiPolygon);
  3063. create explicit cast (ST_GeomCollection as ST_MultiSurface);
  3064. create implicit cast (ST_LineString as ST_Curve);
  3065. create implicit cast (ST_LineString as ST_Geometry);
  3066. create implicit cast (ST_MultiCurve as ST_Geometry);
  3067. create implicit cast (ST_MultiCurve as ST_GeomCollection);
  3068. create explicit cast (ST_MultiCurve as ST_MultiLineString);
  3069. create implicit cast (ST_MultiLineString as ST_Geometry);
  3070. create implicit cast (ST_MultiLineString as ST_GeomCollection);
  3071. create implicit cast (ST_MultiLineString as ST_MultiCurve);
  3072. create implicit cast (ST_MultiPoint as ST_Geometry);
  3073. create implicit cast (ST_MultiPoint as ST_GeomCollection);
  3074. create implicit cast (ST_MultiPolygon as ST_Geometry);
  3075. create implicit cast (ST_MultiPolygon as ST_GeomCollection);
  3076. create implicit cast (ST_MultiPolygon as ST_MultiSurface);
  3077. create implicit cast (ST_MultiSurface as ST_Geometry);
  3078. create implicit cast (ST_MultiSurface as ST_GeomCollection);
  3079. create explicit cast (ST_MultiSurface as ST_MultiPolygon);
  3080. create implicit cast (ST_Point as ST_Geometry);
  3081. create implicit cast (ST_Polygon as ST_Geometry);
  3082. create implicit cast (ST_Polygon as ST_Surface);
  3083. create implicit cast (ST_Surface as ST_Geometry);
  3084. create explicit cast (ST_Surface as ST_Polygon);
  3085. ",
  3086. "f",
  3087. "
  3088. drop cast (ST_Curve as ST_Geometry);
  3089. drop cast (ST_GeomCollection as ST_Geometry);
  3090. drop cast (ST_LineString as ST_Geometry);
  3091. drop cast (ST_MultiCurve as ST_Geometry);
  3092. drop cast (ST_Point as ST_Geometry);
  3093. drop cast (ST_Polygon as ST_Geometry);
  3094. drop cast (ST_Surface as ST_Geometry);
  3095. drop cast (ST_MultiLineString as ST_Geometry);
  3096. drop cast (ST_MultiPoint as ST_Geometry);
  3097. drop cast (ST_MultiPolygon as ST_Geometry);
  3098. drop cast (ST_MultiSurface as ST_Geometry);
  3099. drop cast (ST_Geometry as ST_Curve);
  3100. drop cast (ST_Geometry as ST_GeomCollection);
  3101. drop cast (ST_Geometry as ST_LineString);
  3102. drop cast (ST_Geometry as ST_MultiCurve);
  3103. drop cast (ST_Geometry as ST_MultiLineString);
  3104. drop cast (ST_Geometry as ST_MultiPoint);
  3105. drop cast (ST_Geometry as ST_MultiPolygon);
  3106. drop cast (ST_Geometry as ST_MultiSurface);
  3107. drop cast (ST_Geometry as ST_Point);
  3108. drop cast (ST_Geometry as ST_Polygon);
  3109. drop cast (ST_Geometry as ST_Surface);
  3110. drop cast (ST_Curve as ST_LineString);
  3111. drop cast (ST_LineString as ST_Curve);
  3112. drop cast (ST_GeomCollection as ST_MultiCurve);
  3113. drop cast (ST_GeomCollection as ST_MultiLineString);
  3114. drop cast (ST_GeomCollection as ST_MultiPoint);
  3115. drop cast (ST_GeomCollection as ST_MultiPolygon);
  3116. drop cast (ST_GeomCollection as ST_MultiSurface);
  3117. drop cast (ST_MultiCurve as ST_GeomCollection);
  3118. drop cast (ST_MultiCurve as ST_MultiLineString);
  3119. drop cast (ST_MultiLineString as ST_GeomCollection);
  3120. drop cast (ST_MultiLineString as ST_MultiCurve);
  3121. drop cast (ST_MultiPoint as ST_GeomCollection);
  3122. drop cast (ST_MultiPolygon as ST_GeomCollection);
  3123. drop cast (ST_MultiPolygon as ST_MultiSurface);
  3124. drop cast (ST_MultiSurface as ST_GeomCollection);
  3125. drop cast (ST_MultiSurface as ST_MultiPolygon);
  3126. drop cast (ST_Polygon as ST_Surface);
  3127. drop cast (ST_Surface as ST_Polygon);
  3128. ",
  3129. "f"
  3130. );
  3131. insert into sysbldobjdepends
  3132. (bld_id, obj_kind, obj_signature, obj_owner,
  3133. need_obj_kind, need_obj_signature, need_obj_owner)
  3134. values
  3135. (
  3136. "%SYSBLDNAME%",
  3137. 0, "updowncasts.sql",
  3138. "%SYSBLDUSER%",
  3139. 0, "types.sql",
  3140. "%SYSBLDUSER%"
  3141. );
  3142. insert into sysbldobjects
  3143. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3144. create_can_fail, drop_sql, drop_can_fail)
  3145. values
  3146. (
  3147. "%SYSBLDNAME%", 0, "opclass.sql",
  3148. "%SYSBLDUSER%", 0,
  3149. "create function ST_Overlaps(ST_Geometry,ST_Geometry) returns boolean
  3150. with (not variant, parallelizable)
  3151. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Overlaps)'
  3152. language c;
  3153. create function ST_Equals(ST_Geometry,ST_Geometry) returns boolean
  3154. with (not variant, parallelizable)
  3155. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Equals)'
  3156. language c;
  3157. create function ST_Contains(ST_Geometry,ST_Geometry) returns boolean
  3158. with (not variant, parallelizable, commutator = ST_Within)
  3159. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Contains)'
  3160. language c;
  3161. create function ST_Within(ST_Geometry,ST_Geometry) returns boolean
  3162. with (not variant, parallelizable, commutator = ST_Contains)
  3163. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Within)'
  3164. language c;
  3165. create function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) returns boolean
  3166. with (not variant, parallelizable)
  3167. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopesIntersect)'
  3168. language c;
  3169. create function ST_Touches(ST_Geometry,ST_Geometry) returns boolean
  3170. with (not variant, parallelizable, percall_cost=5000)
  3171. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Touches)'
  3172. language c;
  3173. create function ST_Crosses(ST_Geometry,ST_Geometry) returns boolean
  3174. with (not variant, parallelizable, percall_cost=1000)
  3175. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Crosses)'
  3176. language c;
  3177. create function ST_Intersects(ST_Geometry,ST_Geometry) returns boolean
  3178. with (not variant, parallelizable)
  3179. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Intersects)'
  3180. language c;
  3181. create function ST_OrderingEquals(ST_Geometry,ST_Geometry) returns boolean
  3182. with (not variant, parallelizable)
  3183. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_OrderingEquals)'
  3184. language c;
  3185. create function SE_Nearest(ST_Geometry,ST_Geometry) returns boolean
  3186. with (not variant, parallelizable)
  3187. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_NearestStratFunc)'
  3188. language c;
  3189. create function SE_Nearest(ST_Geometry,ST_Geometry,int) returns float
  3190. with (not variant, parallelizable)
  3191. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Nearest)'
  3192. language c;
  3193. create function SE_NearestBBox(ST_Geometry,ST_Geometry) returns boolean
  3194. with (not variant, parallelizable)
  3195. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_NearestStratFunc)'
  3196. language c;
  3197. create function SE_NearestBbox(ST_Geometry,ST_Geometry,int) returns float
  3198. with (not variant, parallelizable)
  3199. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_NearestBBox)'
  3200. language c;
  3201. create function Equal(ST_Geometry,ST_Geometry) returns boolean
  3202. with (not variant, parallelizable)
  3203. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryEqual)'
  3204. language c;
  3205. create function rtUnion(ST_Geometry,ST_Geometry,ST_Geometry) returns integer
  3206. with (not variant, parallelizable)
  3207. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3208. language c;
  3209. create function rtUnion(ST_Curve,ST_Curve,ST_Curve) returns integer
  3210. with (not variant, parallelizable)
  3211. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3212. language c;
  3213. create function rtUnion(ST_GeomCollection,ST_GeomCollection,ST_GeomCollection) returns integer
  3214. with (not variant, parallelizable)
  3215. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3216. language c;
  3217. create function rtUnion(ST_LineString,ST_LineString,ST_LineString) returns integer
  3218. with (not variant, parallelizable)
  3219. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3220. language c;
  3221. create function rtUnion(ST_MultiCurve,ST_MultiCurve,ST_MultiCurve) returns integer
  3222. with (not variant, parallelizable)
  3223. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3224. language c;
  3225. create function rtUnion(ST_MultiLineString,ST_MultiLineString,ST_MultiLineString) returns integer
  3226. with (not variant, parallelizable)
  3227. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3228. language c;
  3229. create function rtUnion(ST_MultiPoint,ST_MultiPoint,ST_MultiPoint) returns integer
  3230. with (not variant, parallelizable)
  3231. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3232. language c;
  3233. create function rtUnion(ST_MultiPolygon,ST_MultiPolygon,ST_MultiPolygon) returns integer
  3234. with (not variant, parallelizable)
  3235. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3236. language c;
  3237. create function rtUnion(ST_MultiSurface,ST_MultiSurface,ST_MultiSurface) returns integer
  3238. with (not variant, parallelizable)
  3239. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3240. language c;
  3241. create function rtUnion(ST_Point,ST_Point,ST_Point) returns integer
  3242. with (not variant, parallelizable)
  3243. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3244. language c;
  3245. create function rtUnion(ST_Polygon,ST_Polygon,ST_Polygon) returns integer
  3246. with (not variant, parallelizable)
  3247. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3248. language c;
  3249. create function rtUnion(ST_Surface,ST_Surface,ST_Surface) returns integer
  3250. with (not variant, parallelizable)
  3251. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeUnion)'
  3252. language c;
  3253. create function rtSize(ST_Geometry,float) returns integer
  3254. with (not variant, parallelizable)
  3255. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSize)'
  3256. language c;
  3257. create function rtInter(ST_Geometry,ST_Geometry,ST_Geometry) returns integer
  3258. with (not variant, parallelizable)
  3259. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeInter)'
  3260. language c;
  3261. create function rtSFCbits(ST_Geometry,pointer) returns integer
  3262. with (not variant, parallelizable)
  3263. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSFCbits)'
  3264. language c;
  3265. create function rtObjLength(ST_Geometry,pointer) returns integer
  3266. with (not variant, parallelizable)
  3267. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeObjLength)'
  3268. language c;
  3269. create function rtSFCvalue(ST_Geometry,integer,pointer) returns integer
  3270. with (not variant, parallelizable)
  3271. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSFCvalue)'
  3272. language c;
  3273. create function rtSetUnion(ST_Geometry,integer,pointer) returns integer
  3274. with (not variant, parallelizable)
  3275. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeSetUnion)'
  3276. language c;
  3277. create function rtreeInfo(ST_Geometry,pointer,pointer,pointer) returns integer
  3278. with (not variant, parallelizable)
  3279. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(RtreeInfo)'
  3280. language c;
  3281. grant execute on function ST_Overlaps(ST_Geometry,ST_Geometry) to public;
  3282. grant execute on function ST_Equals(ST_Geometry,ST_Geometry) to public;
  3283. grant execute on function ST_Contains(ST_Geometry,ST_Geometry) to public;
  3284. grant execute on function ST_Within(ST_Geometry,ST_Geometry) to public;
  3285. grant execute on function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry) to public;
  3286. grant execute on function ST_Intersects(ST_Geometry,ST_Geometry) to public;
  3287. grant execute on function ST_Touches(ST_Geometry,ST_Geometry) to public;
  3288. grant execute on function ST_Crosses(ST_Geometry,ST_Geometry) to public;
  3289. grant execute on function ST_OrderingEquals (ST_Geometry,ST_Geometry) to public;
  3290. grant execute on function SE_Nearest(ST_Geometry,ST_Geometry) to public;
  3291. grant execute on function SE_Nearest(ST_Geometry,ST_Geometry,int) to public;
  3292. grant execute on function SE_NearestBBox(ST_Geometry,ST_Geometry) to public;
  3293. grant execute on function SE_NearestBBox(ST_Geometry,ST_Geometry,int) to public;
  3294. grant execute on function Equal(ST_Geometry,ST_Geometry) to public;
  3295. grant execute on function rtUnion(ST_Geometry,ST_Geometry,ST_Geometry) to public;
  3296. grant execute on function rtUnion(ST_Curve,ST_Curve,ST_Curve) to public;
  3297. grant execute on function rtUnion(ST_GeomCollection,ST_GeomCollection,ST_GeomCollection) to public;
  3298. grant execute on function rtUnion(ST_LineString,ST_LineString,ST_LineString) to public;
  3299. grant execute on function rtUnion(ST_MultiCurve,ST_MultiCurve,ST_MultiCurve) to public;
  3300. grant execute on function rtUnion(ST_MultiLineString,ST_MultiLineString,ST_MultiLineString) to public;
  3301. grant execute on function rtUnion(ST_MultiPoint,ST_MultiPoint,ST_MultiPoint) to public;
  3302. grant execute on function rtUnion(ST_MultiPolygon,ST_MultiPolygon,ST_MultiPolygon) to public;
  3303. grant execute on function rtUnion(ST_MultiSurface,ST_MultiSurface,ST_MultiSurface) to public;
  3304. grant execute on function rtUnion(ST_Point,ST_Point,ST_Point) to public;
  3305. grant execute on function rtUnion(ST_Polygon,ST_Polygon,ST_Polygon) to public;
  3306. grant execute on function rtUnion(ST_Surface,ST_Surface,ST_Surface) to public;
  3307. grant execute on function rtSize(ST_Geometry,float) to public;
  3308. grant execute on function rtInter(ST_Geometry,ST_Geometry,ST_Geometry) to public;
  3309. grant execute on function rtSFCbits(ST_Geometry,pointer) to public;
  3310. grant execute on function rtObjLength(ST_Geometry,pointer) to public;
  3311. grant execute on function rtSFCvalue(ST_Geometry,integer,pointer) to public;
  3312. grant execute on function rtSetUnion(ST_Geometry,integer,pointer) to public;
  3313. grant execute on function rtreeInfo(ST_Geometry,pointer,pointer,pointer) to public;
  3314. create opclass ST_Geometry_ops for rtree
  3315. strategies(ST_Overlaps,Equal,ST_Contains,ST_Within,SE_EnvelopesIntersect,ST_Intersects,ST_Touches,ST_Crosses,ST_OrderingEquals,SE_Nearest,SE_NearestBBox,ST_Equals)
  3316. support(rtUnion,rtSize,rtInter,rtSFCbits,rtObjLength,rtSFCvalue,rtSetUnion);
  3317. ",
  3318. "f",
  3319. "
  3320. drop opclass ST_Geometry_ops restrict;
  3321. drop function ST_Overlaps(ST_Geometry,ST_Geometry);
  3322. drop function ST_Contains(ST_Geometry,ST_Geometry);
  3323. drop function ST_Equals(ST_Geometry,ST_Geometry);
  3324. drop function ST_Within(ST_Geometry,ST_Geometry);
  3325. drop function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry);
  3326. drop function ST_Intersects(ST_Geometry,ST_Geometry);
  3327. drop function ST_Touches(ST_Geometry,ST_Geometry);
  3328. drop function ST_Crosses(ST_Geometry,ST_Geometry);
  3329. drop function ST_OrderingEquals(ST_Geometry,ST_Geometry);
  3330. drop function SE_Nearest(ST_Geometry,ST_Geometry);
  3331. drop function SE_Nearest(ST_Geometry,ST_Geometry,int);
  3332. drop function SE_NearestBBox(ST_Geometry,ST_Geometry);
  3333. drop function SE_NearestBBox(ST_Geometry,ST_Geometry,int);
  3334. drop function Equal(ST_Geometry,ST_Geometry);
  3335. drop function rtUnion(ST_Geometry,ST_Geometry,ST_Geometry);
  3336. drop function rtUnion(ST_Curve,ST_Curve,ST_Curve);
  3337. drop function rtUnion(ST_GeomCollection,ST_GeomCollection,ST_GeomCollection);
  3338. drop function rtUnion(ST_LineString,ST_LineString,ST_LineString);
  3339. drop function rtUnion(ST_MultiCurve,ST_MultiCurve,ST_MultiCurve);
  3340. drop function rtUnion(ST_MultiLineString,ST_MultiLineString,ST_MultiLineString);
  3341. drop function rtUnion(ST_MultiPoint,ST_MultiPoint,ST_MultiPoint);
  3342. drop function rtUnion(ST_MultiPolygon,ST_MultiPolygon,ST_MultiPolygon);
  3343. drop function rtUnion(ST_MultiSurface,ST_MultiSurface,ST_MultiSurface);
  3344. drop function rtUnion(ST_Point,ST_Point,ST_Point);
  3345. drop function rtUnion(ST_Polygon,ST_Polygon,ST_Polygon);
  3346. drop function rtUnion(ST_Surface,ST_Surface,ST_Surface);
  3347. drop function rtSize(ST_Geometry,float);
  3348. drop function rtInter(ST_Geometry,ST_Geometry,ST_Geometry);
  3349. drop function rtObjLength(ST_Geometry,pointer);
  3350. drop function rtSFCbits(ST_Geometry,pointer);
  3351. drop function rtSFCvalue(ST_Geometry,integer,pointer);
  3352. drop function rtSetUnion(ST_Geometry,integer,pointer);
  3353. drop function rtreeInfo(ST_Geometry,pointer,pointer,pointer);
  3354. ",
  3355. "f"
  3356. );
  3357. insert into sysbldobjdepends
  3358. (bld_id, obj_kind, obj_signature, obj_owner,
  3359. need_obj_kind, need_obj_signature, need_obj_owner)
  3360. values
  3361. (
  3362. "%SYSBLDNAME%",
  3363. 0, "opclass.sql",
  3364. "%SYSBLDUSER%",
  3365. 0, "types.sql",
  3366. "%SYSBLDUSER%"
  3367. );
  3368. insert into sysbldobjects
  3369. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3370. create_can_fail, drop_sql, drop_can_fail)
  3371. values
  3372. (
  3373. "%SYSBLDNAME%", 0, "miscfuncs.%SYSBLDDIR%",
  3374. "%SYSBLDUSER%", 0,
  3375. "create function SE_Release() returns lvarchar
  3376. with (not variant)
  3377. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Release)'
  3378. language c;
  3379. create function SE_InitSRID(integer) returns boolean
  3380. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_InitSRID)'
  3381. language c;
  3382. create function SE_Trace(lvarchar,integer) returns lvarchar
  3383. with (not variant, handlesnulls)
  3384. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Trace)'
  3385. language c;
  3386. create function SE_Refcount(ST_Geometry) returns integer
  3387. with (not variant)
  3388. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Refcount)'
  3389. language c;
  3390. create function SE_Sbspace(ST_Geometry) returns lvarchar
  3391. with (not variant)
  3392. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Sbspace)'
  3393. language c;
  3394. create function SE_CreateSrid(float,float,float,float,varchar(64)) returns integer
  3395. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrid)'
  3396. language c;
  3397. create function SE_CreateSrtext(int,varchar(64) default NULL) returns lvarchar
  3398. with (not variant, handlesnulls)
  3399. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrtextType)'
  3400. language c;
  3401. create function SE_CreateSrtextList(int) returns lvarchar
  3402. with (not variant)
  3403. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrtextList)'
  3404. language c;
  3405. create function SE_SrtextCount(int) returns integer
  3406. with (not variant)
  3407. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_SrtextCount)'
  3408. language c;
  3409. create function SE_UdtMigrate(pointer) returns pointer
  3410. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_UdtMigrate)'
  3411. language c;
  3412. create function SE_InRowSize(ST_Geometry) returns integer
  3413. with (not variant)
  3414. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_InRowSize)'
  3415. language c;
  3416. create function SE_OutOfRowSize(ST_Geometry) returns integer
  3417. with (not variant)
  3418. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_OutOfRowSize)'
  3419. language c;
  3420. create function SE_TotalSize(ST_Geometry) returns integer
  3421. with (not variant)
  3422. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_TotalSize)'
  3423. language c;
  3424. grant execute on function SE_Release() to public;
  3425. grant execute on function SE_Trace(lvarchar,integer) to public;
  3426. grant execute on function SE_InitSRID(integer) to public;
  3427. grant execute on function SE_Refcount(ST_Geometry) to public;
  3428. grant execute on function SE_Sbspace(ST_Geometry) to public;
  3429. grant execute on function SE_CreateSrid(float,float,float,float,varchar(64)) to public;
  3430. grant execute on function SE_CreateSrtext(int,varchar(64)) to public;
  3431. grant execute on function SE_CreateSrtextList(int) to public;
  3432. grant execute on function SE_SrtextCount(int) to public;
  3433. grant execute on function SE_InRowSize(ST_Geometry) to public;
  3434. grant execute on function SE_OutOfRowSize(ST_Geometry) to public;
  3435. grant execute on function SE_TotalSize(ST_Geometry) to public;
  3436. delete from informix.systraceclasses where name = 'SE_Trace';
  3437. insert into informix.systraceclasses(name) values ('SE_Trace');
  3438. ",
  3439. "f",
  3440. "
  3441. drop function SE_Release();
  3442. drop function SE_Trace(lvarchar,integer);
  3443. drop function SE_InitSRID(integer);
  3444. drop function SE_Refcount(ST_Geometry);
  3445. drop function SE_Sbspace(ST_Geometry);
  3446. drop function SE_CreateSrid(float,float,float,float,varchar(64));
  3447. drop function SE_CreateSrtext(int,varchar(64));
  3448. drop function SE_CreateSrtextList(int);
  3449. drop function SE_SrtextCount(int);
  3450. drop function SE_UdtMigrate(pointer);
  3451. drop function SE_InRowSize(ST_Geometry);
  3452. drop function SE_OutOfRowSize(ST_Geometry);
  3453. drop function SE_TotalSize(ST_Geometry);
  3454. delete from informix.systraceclasses where name = 'SE_Trace';
  3455. ",
  3456. "f"
  3457. );
  3458. insert into sysbldobjdepends
  3459. (bld_id, obj_kind, obj_signature, obj_owner,
  3460. need_obj_kind, need_obj_signature, need_obj_owner)
  3461. values
  3462. (
  3463. "%SYSBLDNAME%",
  3464. 0, "miscfuncs.%SYSBLDDIR%",
  3465. "%SYSBLDUSER%",
  3466. 0, "types.sql",
  3467. "%SYSBLDUSER%"
  3468. );
  3469. insert into sysbldobjects
  3470. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3471. create_can_fail, drop_sql, drop_can_fail)
  3472. values
  3473. (
  3474. "%SYSBLDNAME%", 0, "sdefuncs.sql",
  3475. "%SYSBLDUSER%", 0,
  3476. "create function SE_Instr (lvarchar,char) returns int
  3477. with (not variant)
  3478. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Instr)'
  3479. language c;
  3480. create function SE_StringCat (lvarchar,lvarchar) returns lvarchar
  3481. with (not variant)
  3482. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StringCat)'
  3483. language c;
  3484. create function SE_ToChar (float) returns lvarchar
  3485. with (not variant)
  3486. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ToChar)'
  3487. language c;
  3488. create function SE_ToNumber (lvarchar) returns float
  3489. with (not variant)
  3490. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ToNumber)'
  3491. language c;
  3492. create function SE_Rtrim (lvarchar,lvarchar) returns lvarchar
  3493. with (not variant)
  3494. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Rtrim)'
  3495. language c;
  3496. create function SE_Ltrim (lvarchar,lvarchar) returns lvarchar
  3497. with (not variant)
  3498. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Ltrim)'
  3499. language c;
  3500. create function SE_Lineage_Delete (lvarchar,int) returns lvarchar
  3501. with (not variant, handlesnulls)
  3502. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Delete)'
  3503. language c;
  3504. create function SE_Lineage_Insert (lvarchar,int,char) returns lvarchar
  3505. with (not variant, handlesnulls)
  3506. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Insert)'
  3507. language c;
  3508. create function SE_Lineage_Update (lvarchar,int,char) returns lvarchar
  3509. with (not variant, handlesnulls)
  3510. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Update)'
  3511. language c;
  3512. create function SE_Lineage_Exists (lvarchar,int) returns boolean
  3513. with (not variant, handlesnulls)
  3514. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Lineage_Exists)'
  3515. language c;
  3516. grant execute on function SE_Instr (lvarchar,char) to public;
  3517. grant execute on function SE_StringCat (lvarchar,lvarchar) to public;
  3518. grant execute on function SE_ToChar (float) to public;
  3519. grant execute on function SE_ToNumber (lvarchar) to public;
  3520. grant execute on function SE_Rtrim (lvarchar,lvarchar) to public;
  3521. grant execute on function SE_Ltrim (lvarchar,lvarchar) to public;
  3522. grant execute on function SE_Lineage_Delete (lvarchar,int) to public;
  3523. grant execute on function SE_Lineage_Insert (lvarchar,int,char) to public;
  3524. grant execute on function SE_Lineage_Update (lvarchar,int,char) to public;
  3525. grant execute on function SE_Lineage_Exists (lvarchar,int) to public;
  3526. ",
  3527. "f",
  3528. "
  3529. drop function SE_Instr (lvarchar,char);
  3530. drop function SE_StringCat (lvarchar,lvarchar);
  3531. drop function SE_ToChar (float);
  3532. drop function SE_ToNumber (lvarchar);
  3533. drop function SE_Rtrim (lvarchar,lvarchar);
  3534. drop function SE_Ltrim (lvarchar,lvarchar);
  3535. drop function SE_Lineage_Delete (lvarchar,int);
  3536. drop function SE_Lineage_Insert (lvarchar,int,char);
  3537. drop function SE_Lineage_Update (lvarchar,int,char);
  3538. drop function SE_Lineage_Exists (lvarchar,int);
  3539. ",
  3540. "f"
  3541. );
  3542. insert into sysbldobjdepends
  3543. (bld_id, obj_kind, obj_signature, obj_owner,
  3544. need_obj_kind, need_obj_signature, need_obj_owner)
  3545. values
  3546. (
  3547. "%SYSBLDNAME%",
  3548. 0, "sdefuncs.sql",
  3549. "%SYSBLDUSER%",
  3550. 0, "types.sql",
  3551. "%SYSBLDUSER%"
  3552. );
  3553. insert into sysbldobjects
  3554. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3555. create_can_fail, drop_sql, drop_can_fail)
  3556. values
  3557. (
  3558. "%SYSBLDNAME%", 0, "dissolve.sql",
  3559. "%SYSBLDUSER%", 0,
  3560. "create function SE_Dissolve_Init(ST_Geometry) returns pointer
  3561. with (not variant, parallelizable, handlesnulls)
  3562. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Init)'
  3563. language c;
  3564. create function SE_Dissolve_Iter(pointer,St_Geometry) returns pointer
  3565. with (not variant, parallelizable)
  3566. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Iter)'
  3567. language c;
  3568. create function SE_Dissolve_Combine(pointer,pointer) returns pointer
  3569. with (not variant, parallelizable)
  3570. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Combine)'
  3571. language c;
  3572. create function SE_Dissolve_Final(pointer) returns ST_Geometry
  3573. with (not variant, parallelizable)
  3574. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Dissolve_Final)'
  3575. language c;
  3576. create aggregate SE_Dissolve
  3577. with (init = SE_Dissolve_Init,
  3578. iter = SE_Dissolve_Iter,
  3579. combine = SE_Dissolve_Combine,
  3580. final = SE_Dissolve_Final);
  3581. grant execute on function SE_Dissolve_Init(ST_Geometry) to public;
  3582. grant execute on function SE_Dissolve_Iter(pointer,ST_Geometry) to public;
  3583. grant execute on function SE_Dissolve_Combine(pointer,pointer) to public;
  3584. grant execute on function SE_Dissolve_Final(pointer) to public;
  3585. ",
  3586. "f",
  3587. "
  3588. drop aggregate SE_Dissolve;
  3589. drop function SE_Dissolve_Init(ST_Geometry);
  3590. drop function SE_Dissolve_Iter(pointer,ST_Geometry);
  3591. drop function SE_Dissolve_Combine(pointer,pointer);
  3592. drop function SE_Dissolve_Final(pointer);
  3593. ",
  3594. "f"
  3595. );
  3596. insert into sysbldobjdepends
  3597. (bld_id, obj_kind, obj_signature, obj_owner,
  3598. need_obj_kind, need_obj_signature, need_obj_owner)
  3599. values
  3600. (
  3601. "%SYSBLDNAME%",
  3602. 0, "dissolve.sql",
  3603. "%SYSBLDUSER%",
  3604. 0, "types.sql",
  3605. "%SYSBLDUSER%"
  3606. );
  3607. insert into sysbldobjects
  3608. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3609. create_can_fail, drop_sql, drop_can_fail)
  3610. values
  3611. (
  3612. "%SYSBLDNAME%", 0, "viewtable.sql",
  3613. "%SYSBLDUSER%", 0,
  3614. "CREATE PROCEDURE create_se_views()
  3615. DEFINE tab_exists INT;
  3616. SELECT count(*) INTO tab_exists FROM informix.systables
  3617. WHERE tabname='se_views';
  3618. IF (tab_exists = 0) THEN
  3619. CREATE TABLE se_views
  3620. (
  3621. view_name varchar(128) NOT NULL,
  3622. view_col varchar(128) NOT NULL,
  3623. real_tabname varchar(128) NOT NULL,
  3624. real_colname varchar(128) NOT NULL
  3625. );
  3626. END IF
  3627. END PROCEDURE;
  3628. EXECUTE PROCEDURE create_se_views();
  3629. DROP PROCEDURE create_se_views();
  3630. ",
  3631. "f",
  3632. "
  3633. DROP TABLE se_views;
  3634. ",
  3635. "f"
  3636. );
  3637. insert into sysbldobjects
  3638. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3639. create_can_fail, drop_sql, drop_can_fail)
  3640. values
  3641. (
  3642. "%SYSBLDNAME%", 0, "boundingbox.%SYSBLDDIR%",
  3643. "%SYSBLDUSER%", 0,
  3644. "CREATE FUNCTION SE_BoundingBox (tab_name varchar(128),
  3645. col_name varchar(128)) RETURNS ST_Polygon
  3646. DEFINE idx_name varchar(128);
  3647. DEFINE type_name varchar(128);
  3648. DEFINE retval ST_Geometry;
  3649. DEFINE nrows integer;
  3650. DEFINE tab_type char(1);
  3651. DEFINE real_tab varchar(128);
  3652. DEFINE real_col varchar(128);
  3653. LET idx_name = NULL;
  3654. LET type_name = NULL;
  3655. LET retval = NULL;
  3656. LET nrows = 0;
  3657. LET real_tab = NULL;
  3658. LET real_col = NULL;
  3659. SELECT count(*) INTO nrows
  3660. FROM informix.systables st
  3661. WHERE st.tabname = tab_name;
  3662. IF (nrows = 0) THEN
  3663. RAISE EXCEPTION -206, 0, tab_name;
  3664. END IF
  3665. SELECT count(*) INTO nrows
  3666. FROM informix.systables st, informix.syscolumns sc
  3667. WHERE
  3668. st.tabname = tab_name AND
  3669. sc.tabid = st.tabid AND
  3670. sc.colname = col_name;
  3671. IF (nrows = 0) THEN
  3672. RAISE EXCEPTION -217, 0, col_name;
  3673. END IF
  3674. SELECT tabtype INTO tab_type FROM informix.systables
  3675. WHERE tabname = tab_name;
  3676. IF (tab_type = 'V') THEN
  3677. SELECT real_tabname, real_colname INTO real_tab, real_col
  3678. FROM se_views WHERE view_name = tab_name AND view_col = col_name;
  3679. IF (real_tab IS NULL) THEN
  3680. RAISE EXCEPTION -746, 0, 'The view name is not found in the table se_view.';
  3681. END IF
  3682. IF (real_col IS NULL) THEN
  3683. RAISE EXCEPTION -746, 0, 'The column name is not found in the table se_view.';
  3684. END IF
  3685. ELSE
  3686. LET real_tab = tab_name;
  3687. LET real_col = col_name;
  3688. END IF
  3689. FOREACH
  3690. SELECT si.idxname, sx.name INTO idx_name, type_name
  3691. FROM informix.systables st, informix.syscolumns sc, informix.sysindices si, informix.sysams sa, informix.sysxtdtypes sx
  3692. WHERE
  3693. -- identify table with name <tab_name>
  3694. st.tabname = real_tab AND
  3695. -- identify column with name <col_name> on identified table
  3696. sc.tabid = st.tabid AND
  3697. sc.colname = real_col AND
  3698. -- identify rtree index on identified column
  3699. si.tabid = sc.tabid AND
  3700. si.indexkeys::lvarchar like sc.colno || ' [%]' AND
  3701. sa.am_id = si.amid AND
  3702. sa.am_name = 'rtree' AND
  3703. -- identify extended type of identified column
  3704. sx.extended_id = sc.extended_id
  3705. END FOREACH;
  3706. IF (idx_name IS NULL) THEN
  3707. RAISE EXCEPTION -319;
  3708. END IF
  3709. CALL ST_GeomIn(rtreeRootBB(idx_name, type_name)) RETURNING retval;
  3710. RETURN retval::ST_Polygon;
  3711. END FUNCTION;
  3712. GRANT EXECUTE ON FUNCTION SE_BoundingBox(varchar(128),varchar(128)) to public;
  3713. alter function Equal(ST_Geometry,ST_Geometry)
  3714. with (Modify External Name = ""$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryEqual)"");
  3715. ",
  3716. "f",
  3717. "
  3718. DROP FUNCTION SE_BoundingBox(varchar(128),varchar(128));
  3719. ",
  3720. "f"
  3721. );
  3722. insert into sysbldobjdepends
  3723. (bld_id, obj_kind, obj_signature, obj_owner,
  3724. need_obj_kind, need_obj_signature, need_obj_owner)
  3725. values
  3726. (
  3727. "%SYSBLDNAME%",
  3728. 0, "boundingbox.%SYSBLDDIR%",
  3729. "%SYSBLDUSER%",
  3730. 0, "geometry.%SYSBLDDIR%",
  3731. "%SYSBLDUSER%"
  3732. );
  3733. insert into sysbldobjdepends
  3734. (bld_id, obj_kind, obj_signature, obj_owner,
  3735. need_obj_kind, need_obj_signature, need_obj_owner)
  3736. values
  3737. (
  3738. "%SYSBLDNAME%",
  3739. 0, "boundingbox.%SYSBLDDIR%",
  3740. "%SYSBLDUSER%",
  3741. 0, "updowncasts.sql",
  3742. "%SYSBLDUSER%"
  3743. );
  3744. insert into sysbldobjdepends
  3745. (bld_id, obj_kind, obj_signature, obj_owner,
  3746. need_obj_kind, need_obj_signature, need_obj_owner)
  3747. values
  3748. (
  3749. "%SYSBLDNAME%",
  3750. 0, "boundingbox.%SYSBLDDIR%",
  3751. "%SYSBLDUSER%",
  3752. 0, "viewtable.sql",
  3753. "%SYSBLDUSER%"
  3754. );
  3755. insert into sysbldobjects
  3756. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3757. create_can_fail, drop_sql, drop_can_fail)
  3758. values
  3759. (
  3760. "%SYSBLDNAME%", 0, "kml.sql",
  3761. "%SYSBLDUSER%", 0,
  3762. "create function SE_AsKML(ST_Geometry) returns lvarchar
  3763. with (not variant, parallelizable)
  3764. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsKML)'
  3765. language c;
  3766. grant execute on function SE_AsKML(ST_Geometry) to public;
  3767. create function ST_AsKML(ST_Geometry) returns lvarchar
  3768. with (not variant, parallelizable)
  3769. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsKML)'
  3770. language c;
  3771. grant execute on function ST_AsKML(ST_Geometry) to public;
  3772. create function ST_AsKML(ST_Geometry,lvarchar) returns lvarchar
  3773. with (not variant, parallelizable)
  3774. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsKMLattr)'
  3775. language c;
  3776. grant execute on function ST_AsKML(ST_Geometry,lvarchar) to public;
  3777. create function SE_EnvelopeAsKML(ST_Geometry) returns lvarchar
  3778. with (not variant, parallelizable)
  3779. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeAsKML)'
  3780. language c;
  3781. grant execute on function SE_EnvelopeAsKML(ST_Geometry) to public;
  3782. create function ST_GeomFromKML(lvarchar) returns ST_Geometry
  3783. with (not variant, parallelizable)
  3784. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromKML)'
  3785. language c;
  3786. grant execute on function ST_GeomFromKML(lvarchar) to public;
  3787. create function ST_GeomFromKML(lvarchar, integer) returns ST_Geometry
  3788. with (not variant, parallelizable)
  3789. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromKMLsrid)'
  3790. language c;
  3791. grant execute on function ST_GeomFromKML(lvarchar, integer) to public;
  3792. create function ST_PointFromKML(lvarchar) returns ST_Point
  3793. with (not variant, parallelizable)
  3794. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromKML)'
  3795. language c;
  3796. grant execute on function ST_PointFromKML(lvarchar) to public;
  3797. create function ST_PointFromKML(lvarchar, integer) returns ST_Point
  3798. with (not variant, parallelizable)
  3799. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromKMLsrid)'
  3800. language c;
  3801. grant execute on function ST_PointFromKML(lvarchar, integer) to public;
  3802. create function ST_LineFromKML(lvarchar) returns ST_LineString
  3803. with (not variant, parallelizable)
  3804. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromKML)'
  3805. language c;
  3806. grant execute on function ST_LineFromKML(lvarchar) to public;
  3807. create function ST_LineFromKML(lvarchar, integer) returns ST_LineString
  3808. with (not variant, parallelizable)
  3809. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromKMLsrid)'
  3810. language c;
  3811. grant execute on function ST_LineFromKML(lvarchar, integer) to public;
  3812. create function ST_PolyFromKML(lvarchar) returns ST_Polygon
  3813. with (not variant, parallelizable)
  3814. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromKML)'
  3815. language c;
  3816. grant execute on function ST_PolyFromKML(lvarchar) to public;
  3817. create function ST_PolyFromKML(lvarchar, integer) returns ST_Polygon
  3818. with (not variant, parallelizable)
  3819. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromKMLsrid)'
  3820. language c;
  3821. grant execute on function ST_PolyFromKML(lvarchar, integer) to public;
  3822. create function ST_MPointFromKML(lvarchar) returns ST_MultiPoint
  3823. with (not variant, parallelizable)
  3824. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromKML)'
  3825. language c;
  3826. grant execute on function ST_MPointFromKML(lvarchar) to public;
  3827. create function ST_MPointFromKML(lvarchar, integer) returns ST_MultiPoint
  3828. with (not variant, parallelizable)
  3829. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromKMLsrid)'
  3830. language c;
  3831. grant execute on function ST_MPointFromKML(lvarchar, integer) to public;
  3832. create function ST_MLineFromKML(lvarchar) returns ST_MultiLineString
  3833. with (not variant, parallelizable)
  3834. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromKML)'
  3835. language c;
  3836. grant execute on function ST_MLineFromKML(lvarchar) to public;
  3837. create function ST_MLineFromKML(lvarchar, integer) returns ST_MultiLineString
  3838. with (not variant, parallelizable)
  3839. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromKMLsrid)'
  3840. language c;
  3841. grant execute on function ST_MLineFromKML(lvarchar, integer) to public;
  3842. create function ST_MPolyFromKML(lvarchar) returns ST_MultiPolygon
  3843. with (not variant, parallelizable)
  3844. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromKML)'
  3845. language c;
  3846. grant execute on function ST_MPolyFromKML(lvarchar) to public;
  3847. create function ST_MPolyFromKML(lvarchar, integer) returns ST_MultiPolygon
  3848. with (not variant, parallelizable)
  3849. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromKMLsrid)'
  3850. language c;
  3851. grant execute on function ST_MPolyFromKML(lvarchar, integer) to public;
  3852. create function SE_EnvelopeFromKML(lvarchar) returns ST_Geometry
  3853. with (not variant, parallelizable)
  3854. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromKML)'
  3855. language c;
  3856. grant execute on function SE_EnvelopeFromKML(lvarchar) to public;
  3857. create function SE_EnvelopeFromKML(lvarchar, integer) returns ST_Geometry
  3858. with (not variant, parallelizable)
  3859. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromKMLsrid)'
  3860. language c;
  3861. grant execute on function SE_EnvelopeFromKML(lvarchar, integer) to public;
  3862. create function WFSDescKMLType(ST_Point)
  3863. returns lvarchar
  3864. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlPoint)' language c;
  3865. create function WFSDescKMLType(ST_LineString)
  3866. returns lvarchar
  3867. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlLine)' language c;
  3868. create function WFSDescKMLType(ST_Polygon)
  3869. returns lvarchar
  3870. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlPoly)' language c;
  3871. create function WFSDescKMLType(ST_MultiPoint)
  3872. returns lvarchar
  3873. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlMPoint)' language c;
  3874. create function WFSDescKMLType(ST_MultiLineString)
  3875. returns lvarchar
  3876. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlMLine)' language c;
  3877. create function WFSDescKMLType(ST_MultiPolygon)
  3878. returns lvarchar
  3879. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdesckmlMPoly)' language c;
  3880. create function WFSReadKMLType(ST_Point)
  3881. returns lvarchar
  3882. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlPoint)' language c;
  3883. create function WFSReadKMLType(ST_LineString)
  3884. returns lvarchar
  3885. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlLine)' language c;
  3886. create function WFSReadKMLType(ST_Polygon)
  3887. returns lvarchar
  3888. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlPoly)' language c;
  3889. create function WFSReadKMLType(ST_MultiPoint)
  3890. returns lvarchar
  3891. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlMPoint)' language c;
  3892. create function WFSReadKMLType(ST_MultiLineString)
  3893. returns lvarchar
  3894. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlMLine)' language c;
  3895. create function WFSReadKMLType(ST_MultiPolygon)
  3896. returns lvarchar
  3897. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadkmlMPoly)' language c;
  3898. create function WFSWriteKMLType(ST_Point)
  3899. returns lvarchar
  3900. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlPoint)' language c;
  3901. create function WFSWriteKMLType(ST_LineString)
  3902. returns lvarchar
  3903. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlLine)' language c;
  3904. create function WFSWriteKMLType(ST_Polygon)
  3905. returns lvarchar
  3906. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlPoly)' language c;
  3907. create function WFSWriteKMLType(ST_MultiPoint)
  3908. returns lvarchar
  3909. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlMPoint)' language c;
  3910. create function WFSWriteKMLType(ST_MultiLineString)
  3911. returns lvarchar
  3912. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlMLine)' language c;
  3913. create function WFSWriteKMLType(ST_MultiPolygon)
  3914. returns lvarchar
  3915. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritekmlMPoly)' language c;
  3916. grant execute on function WFSDescKMLType(ST_Point) to public;
  3917. grant execute on function WFSDescKMLType(ST_LineString) to public;
  3918. grant execute on function WFSDescKMLType(ST_Polygon) to public;
  3919. grant execute on function WFSDescKMLType(ST_MultiPoint) to public;
  3920. grant execute on function WFSDescKMLType(ST_MultiLineString) to public;
  3921. grant execute on function WFSDescKMLType(ST_MultiPolygon) to public;
  3922. grant execute on function WFSReadKMLType(ST_Point) to public;
  3923. grant execute on function WFSReadKMLType(ST_LineString) to public;
  3924. grant execute on function WFSReadKMLType(ST_Polygon) to public;
  3925. grant execute on function WFSReadKMLType(ST_MultiPoint) to public;
  3926. grant execute on function WFSReadKMLType(ST_MultiLineString) to public;
  3927. grant execute on function WFSReadKMLType(ST_MultiPolygon) to public;
  3928. grant execute on function WFSWriteKMLType(ST_Point) to public;
  3929. grant execute on function WFSWriteKMLType(ST_LineString) to public;
  3930. grant execute on function WFSWriteKMLType(ST_Polygon) to public;
  3931. grant execute on function WFSWriteKMLType(ST_MultiPoint) to public;
  3932. grant execute on function WFSWriteKMLType(ST_MultiLineString) to public;
  3933. grant execute on function WFSWriteKMLType(ST_MultiPolygon) to public;
  3934. ",
  3935. "f",
  3936. "
  3937. drop function SE_AsKML(ST_Geometry);
  3938. drop function ST_AsKML(ST_Geometry);
  3939. drop function ST_AsKML(ST_Geometry, lvarchar);
  3940. drop function SE_EnvelopeAsKML(ST_Geometry);
  3941. drop function ST_GeomFromKML(lvarchar);
  3942. drop function ST_GeomFromKML(lvarchar, integer);
  3943. drop function ST_PointFromKML(lvarchar);
  3944. drop function ST_PointFromKML(lvarchar, integer);
  3945. drop function ST_LineFromKML(lvarchar);
  3946. drop function ST_LineFromKML(lvarchar, integer);
  3947. drop function ST_PolyFromKML(lvarchar);
  3948. drop function ST_PolyFromKML(lvarchar, integer);
  3949. drop function ST_MPointFromKML(lvarchar);
  3950. drop function ST_MPointFromKML(lvarchar, integer);
  3951. drop function ST_MLineFromKML(lvarchar);
  3952. drop function ST_MLineFromKML(lvarchar, integer);
  3953. drop function ST_MPolyFromKML(lvarchar);
  3954. drop function ST_MPolyFromKML(lvarchar, integer);
  3955. drop function SE_EnvelopeFromKML(lvarchar);
  3956. drop function SE_EnvelopeFromKML(lvarchar, integer);
  3957. drop function WFSDescKMLType(ST_Point);
  3958. drop function WFSDescKMLType(ST_LineString);
  3959. drop function WFSDescKMLType(ST_Polygon);
  3960. drop function WFSDescKMLType(ST_MultiPoint);
  3961. drop function WFSDescKMLType(ST_MultiLineString);
  3962. drop function WFSDescKMLType(ST_MultiPolygon);
  3963. drop function WFSReadKMLType(ST_Point);
  3964. drop function WFSReadKMLType(ST_LineString);
  3965. drop function WFSReadKMLType(ST_Polygon);
  3966. drop function WFSReadKMLType(ST_MultiPoint);
  3967. drop function WFSReadKMLType(ST_MultiLineString);
  3968. drop function WFSReadKMLType(ST_MultiPolygon);
  3969. drop function WFSWriteKMLType(ST_Point);
  3970. drop function WFSWriteKMLType(ST_LineString);
  3971. drop function WFSWriteKMLType(ST_Polygon);
  3972. drop function WFSWriteKMLType(ST_MultiPoint);
  3973. drop function WFSWriteKMLType(ST_MultiLineString);
  3974. drop function WFSWriteKMLType(ST_MultiPolygon);
  3975. ",
  3976. "f"
  3977. );
  3978. insert into sysbldobjdepends
  3979. (bld_id, obj_kind, obj_signature, obj_owner,
  3980. need_obj_kind, need_obj_signature, need_obj_owner)
  3981. values
  3982. (
  3983. "%SYSBLDNAME%",
  3984. 0, "kml.sql",
  3985. "%SYSBLDUSER%",
  3986. 0, "types.sql",
  3987. "%SYSBLDUSER%"
  3988. );
  3989. insert into sysbldobjects
  3990. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  3991. create_can_fail, drop_sql, drop_can_fail)
  3992. values
  3993. (
  3994. "%SYSBLDNAME%", 0, "gml.sql",
  3995. "%SYSBLDUSER%", 0,
  3996. "create function SE_AsGML(ST_Geometry) returns lvarchar
  3997. with (not variant, parallelizable)
  3998. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsGML)'
  3999. language c;
  4000. grant execute on function SE_AsGML(ST_Geometry) to public;
  4001. create function ST_AsGML(ST_Geometry) returns lvarchar
  4002. with (not variant, parallelizable)
  4003. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsGML)'
  4004. language c;
  4005. grant execute on function ST_AsGML(ST_Geometry) to public;
  4006. create function ST_AsGML(ST_Geometry, integer) returns lvarchar
  4007. with (not variant, parallelizable)
  4008. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AsGML2)'
  4009. language c;
  4010. grant execute on function ST_AsGML(ST_Geometry, integer) to public;
  4011. create function SE_EnvelopeAsGML(ST_Geometry) returns lvarchar
  4012. with (not variant, parallelizable)
  4013. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeAsGML)'
  4014. language c;
  4015. grant execute on function SE_EnvelopeAsGML(ST_Geometry) to public;
  4016. create function SE_EnvelopeAsGML(ST_Geometry, integer) returns lvarchar
  4017. with (not variant, parallelizable)
  4018. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeAsGML2)'
  4019. language c;
  4020. grant execute on function SE_EnvelopeAsGML(ST_Geometry, integer) to public;
  4021. create function ST_GeomFromGML(lvarchar) returns ST_Geometry
  4022. with (not variant, parallelizable)
  4023. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromGML)'
  4024. language c;
  4025. grant execute on function ST_GeomFromGML(lvarchar) to public;
  4026. create function ST_GeomFromGML(lvarchar, integer) returns ST_Geometry
  4027. with (not variant, parallelizable)
  4028. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_GeomFromGMLsrid)'
  4029. language c;
  4030. grant execute on function ST_GeomFromGML(lvarchar, integer) to public;
  4031. create function ST_PointFromGML(lvarchar) returns ST_Point
  4032. with (not variant, parallelizable)
  4033. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromGML)'
  4034. language c;
  4035. grant execute on function ST_PointFromGML(lvarchar) to public;
  4036. create function ST_PointFromGML(lvarchar, integer) returns ST_Point
  4037. with (not variant, parallelizable)
  4038. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PointFromGMLsrid)'
  4039. language c;
  4040. grant execute on function ST_PointFromGML(lvarchar, integer) to public;
  4041. create function ST_LineFromGML(lvarchar) returns ST_LineString
  4042. with (not variant, parallelizable)
  4043. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromGML)'
  4044. language c;
  4045. grant execute on function ST_LineFromGML(lvarchar) to public;
  4046. create function ST_LineFromGML(lvarchar, integer) returns ST_LineString
  4047. with (not variant, parallelizable)
  4048. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LineFromGMLsrid)'
  4049. language c;
  4050. grant execute on function ST_LineFromGML(lvarchar, integer) to public;
  4051. create function ST_PolyFromGML(lvarchar) returns ST_Polygon
  4052. with (not variant, parallelizable)
  4053. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromGML)'
  4054. language c;
  4055. grant execute on function ST_PolyFromGML(lvarchar) to public;
  4056. create function ST_PolyFromGML(lvarchar, integer) returns ST_Polygon
  4057. with (not variant, parallelizable)
  4058. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PolyFromGMLsrid)'
  4059. language c;
  4060. grant execute on function ST_PolyFromGML(lvarchar, integer) to public;
  4061. create function ST_MPointFromGML(lvarchar) returns ST_MultiPoint
  4062. with (not variant, parallelizable)
  4063. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromGML)'
  4064. language c;
  4065. grant execute on function ST_MPointFromGML(lvarchar) to public;
  4066. create function ST_MPointFromGML(lvarchar, integer) returns ST_MultiPoint
  4067. with (not variant, parallelizable)
  4068. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPointFromGMLsrid)'
  4069. language c;
  4070. grant execute on function ST_MPointFromGML(lvarchar, integer) to public;
  4071. create function ST_MLineFromGML(lvarchar) returns ST_MultiLineString
  4072. with (not variant, parallelizable)
  4073. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromGML)'
  4074. language c;
  4075. grant execute on function ST_MLineFromGML(lvarchar) to public;
  4076. create function ST_MLineFromGML(lvarchar, integer) returns ST_MultiLineString
  4077. with (not variant, parallelizable)
  4078. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MLineFromGMLsrid)'
  4079. language c;
  4080. grant execute on function ST_MLineFromGML(lvarchar, integer) to public;
  4081. create function ST_MPolyFromGML(lvarchar) returns ST_MultiPolygon
  4082. with (not variant, parallelizable)
  4083. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromGML)'
  4084. language c;
  4085. grant execute on function ST_MPolyFromGML(lvarchar) to public;
  4086. create function ST_MPolyFromGML(lvarchar, integer) returns ST_MultiPolygon
  4087. with (not variant, parallelizable)
  4088. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_MPolyFromGMLsrid)'
  4089. language c;
  4090. grant execute on function ST_MPolyFromGML(lvarchar, integer) to public;
  4091. create function SE_EnvelopeFromGML(lvarchar) returns ST_Geometry
  4092. with (not variant, parallelizable)
  4093. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromGML)'
  4094. language c;
  4095. grant execute on function SE_EnvelopeFromGML(lvarchar) to public;
  4096. create function SE_EnvelopeFromGML(lvarchar, integer) returns ST_Geometry
  4097. with (not variant, parallelizable)
  4098. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopeFromGMLsrid)'
  4099. language c;
  4100. grant execute on function SE_EnvelopeFromGML(lvarchar, integer) to public;
  4101. ",
  4102. "f",
  4103. "
  4104. drop function SE_AsGML(ST_Geometry);
  4105. drop function ST_AsGML(ST_Geometry);
  4106. drop function ST_AsGML(ST_Geometry, integer);
  4107. drop function SE_EnvelopeAsGML(ST_Geometry);
  4108. drop function SE_EnvelopeAsGML(ST_Geometry, integer);
  4109. drop function ST_GeomFromGML(lvarchar);
  4110. drop function ST_GeomFromGML(lvarchar, integer);
  4111. drop function ST_PointFromGML(lvarchar);
  4112. drop function ST_PointFromGML(lvarchar, integer);
  4113. drop function ST_LineFromGML(lvarchar);
  4114. drop function ST_LineFromGML(lvarchar, integer);
  4115. drop function ST_PolyFromGML(lvarchar);
  4116. drop function ST_PolyFromGML(lvarchar, integer);
  4117. drop function ST_MPointFromGML(lvarchar);
  4118. drop function ST_MPointFromGML(lvarchar, integer);
  4119. drop function ST_MLineFromGML(lvarchar);
  4120. drop function ST_MLineFromGML(lvarchar, integer);
  4121. drop function ST_MPolyFromGML(lvarchar);
  4122. drop function ST_MPolyFromGML(lvarchar, integer);
  4123. drop function SE_EnvelopeFromGML(lvarchar);
  4124. drop function SE_EnvelopeFromGML(lvarchar, integer);
  4125. ",
  4126. "f"
  4127. );
  4128. insert into sysbldobjdepends
  4129. (bld_id, obj_kind, obj_signature, obj_owner,
  4130. need_obj_kind, need_obj_signature, need_obj_owner)
  4131. values
  4132. (
  4133. "%SYSBLDNAME%",
  4134. 0, "gml.sql",
  4135. "%SYSBLDUSER%",
  4136. 0, "types.sql",
  4137. "%SYSBLDUSER%"
  4138. );
  4139. insert into sysbldobjects
  4140. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  4141. create_can_fail, drop_sql, drop_can_fail)
  4142. values
  4143. (
  4144. "%SYSBLDNAME%", 0, "gml2n3.sql",
  4145. "%SYSBLDUSER%", 0,
  4146. "
  4147. create function WFSDescSchemaType(ST_Point)
  4148. returns lvarchar
  4149. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaPoint)' language c;
  4150. create function WFSDescSchemaType(ST_LineString)
  4151. returns lvarchar
  4152. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaLine)' language c;
  4153. create function WFSDescSchemaType(ST_Polygon)
  4154. returns lvarchar
  4155. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaPolygon)' language c;
  4156. create function WFSDescSchemaType(ST_MultiPoint)
  4157. returns lvarchar
  4158. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaMPoint)' language c;
  4159. create function WFSDescSchemaType(ST_MultiLineString)
  4160. returns lvarchar
  4161. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaMLine)' language c;
  4162. create function WFSDescSchemaType(ST_MultiPolygon)
  4163. returns lvarchar
  4164. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescschemaMPolygon)' language c;
  4165. create function WFSDescGML2Type(ST_Point)
  4166. returns lvarchar
  4167. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2Point)' language c;
  4168. create function WFSDescGML2Type(ST_LineString)
  4169. returns lvarchar
  4170. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2Line)' language c;
  4171. create function WFSDescGML2Type(ST_Polygon)
  4172. returns lvarchar
  4173. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2Poly)' language c;
  4174. create function WFSDescGML2Type(ST_MultiPoint)
  4175. returns lvarchar
  4176. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2MPoint)' language c;
  4177. create function WFSDescGML2Type(ST_MultiLineString)
  4178. returns lvarchar
  4179. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2MLine)' language c;
  4180. create function WFSDescGML2Type(ST_MultiPolygon)
  4181. returns lvarchar
  4182. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml2MPoly)' language c;
  4183. create function WFSDescGML3Type(ST_Point)
  4184. returns lvarchar
  4185. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3Point)' language c;
  4186. create function WFSDescGML3Type(ST_LineString)
  4187. returns lvarchar
  4188. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3Line)' language c;
  4189. create function WFSDescGML3Type(ST_Polygon)
  4190. returns lvarchar
  4191. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3Poly)' language c;
  4192. create function WFSDescGML3Type(ST_MultiPoint)
  4193. returns lvarchar
  4194. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3MPoint)' language c;
  4195. create function WFSDescGML3Type(ST_MultiLineString)
  4196. returns lvarchar
  4197. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3MLine)' language c;
  4198. create function WFSDescGML3Type(ST_MultiPolygon)
  4199. returns lvarchar
  4200. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsdescgml3MPoly)' language c;
  4201. create function WFSReadGML2Type(ST_Point)
  4202. returns lvarchar
  4203. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2Point)' language c;
  4204. create function WFSReadGML2Type(ST_LineString)
  4205. returns lvarchar
  4206. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2Line)' language c;
  4207. create function WFSReadGML2Type(ST_Polygon)
  4208. returns lvarchar
  4209. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2Poly)' language c;
  4210. create function WFSReadGML2Type(ST_MultiPoint)
  4211. returns lvarchar
  4212. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2MPoint)' language c;
  4213. create function WFSReadGML2Type(ST_MultiLineString)
  4214. returns lvarchar
  4215. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2MLine)' language c;
  4216. create function WFSReadGML2Type(ST_MultiPolygon)
  4217. returns lvarchar
  4218. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml2MPoly)' language c;
  4219. create function WFSReadGML3Type(ST_Point)
  4220. returns lvarchar
  4221. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3Point)' language c;
  4222. create function WFSReadGML3Type(ST_LineString)
  4223. returns lvarchar
  4224. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3Line)' language c;
  4225. create function WFSReadGML3Type(ST_Polygon)
  4226. returns lvarchar
  4227. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3Poly)' language c;
  4228. create function WFSReadGML3Type(ST_MultiPoint)
  4229. returns lvarchar
  4230. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3MPoint)' language c;
  4231. create function WFSReadGML3Type(ST_MultiLineString)
  4232. returns lvarchar
  4233. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3MLine)' language c;
  4234. create function WFSReadGML3Type(ST_MultiPolygon)
  4235. returns lvarchar
  4236. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfsreadgml3MPoly)' language c;
  4237. create function WFSWriteGML2Type(ST_Point)
  4238. returns lvarchar
  4239. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2Point)' language c;
  4240. create function WFSWriteGML2Type(ST_LineString)
  4241. returns lvarchar
  4242. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2Line)' language c;
  4243. create function WFSWriteGML2Type(ST_Polygon)
  4244. returns lvarchar
  4245. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2Poly)' language c;
  4246. create function WFSWriteGML2Type(ST_MultiPoint)
  4247. returns lvarchar
  4248. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2MPoint)' language c;
  4249. create function WFSWriteGML2Type(ST_MultiLineString)
  4250. returns lvarchar
  4251. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2MLine)' language c;
  4252. create function WFSWriteGML2Type(ST_MultiPolygon)
  4253. returns lvarchar
  4254. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml2MPoly)' language c;
  4255. create function WFSWriteGML3Type(ST_Point)
  4256. returns lvarchar
  4257. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3Point)' language c;
  4258. create function WFSWriteGML3Type(ST_LineString)
  4259. returns lvarchar
  4260. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3Line)' language c;
  4261. create function WFSWriteGML3Type(ST_Polygon)
  4262. returns lvarchar
  4263. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3Poly)' language c;
  4264. create function WFSWriteGML3Type(ST_MultiPoint)
  4265. returns lvarchar
  4266. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3MPoint)' language c;
  4267. create function WFSWriteGML3Type(ST_MultiLineString)
  4268. returns lvarchar
  4269. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3MLine)' language c;
  4270. create function WFSWriteGML3Type(ST_MultiPolygon)
  4271. returns lvarchar
  4272. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(wfswritegml3MPoly)' language c;
  4273. grant execute on function WFSDescSchemaType(ST_Point) to public;
  4274. grant execute on function WFSDescSchemaType(ST_LineString) to public;
  4275. grant execute on function WFSDescSchemaType(ST_Polygon) to public;
  4276. grant execute on function WFSDescSchemaType(ST_MultiPoint) to public;
  4277. grant execute on function WFSDescSchemaType(ST_MultiLineString) to public;
  4278. grant execute on function WFSDescSchemaType(ST_MultiPolygon) to public;
  4279. grant execute on function WFSDescGML2Type(ST_Point) to public;
  4280. grant execute on function WFSDescGML2Type(ST_LineString) to public;
  4281. grant execute on function WFSDescGML2Type(ST_Polygon) to public;
  4282. grant execute on function WFSDescGML2Type(ST_MultiPoint) to public;
  4283. grant execute on function WFSDescGML2Type(ST_MultiLineString) to public;
  4284. grant execute on function WFSDescGML2Type(ST_MultiPolygon) to public;
  4285. grant execute on function WFSDescGML3Type(ST_Point) to public;
  4286. grant execute on function WFSDescGML3Type(ST_LineString) to public;
  4287. grant execute on function WFSDescGML3Type(ST_Polygon) to public;
  4288. grant execute on function WFSDescGML3Type(ST_MultiPoint) to public;
  4289. grant execute on function WFSDescGML3Type(ST_MultiLineString) to public;
  4290. grant execute on function WFSDescGML3Type(ST_MultiPolygon) to public;
  4291. grant execute on function WFSReadGML2Type(ST_Point) to public;
  4292. grant execute on function WFSReadGML2Type(ST_LineString) to public;
  4293. grant execute on function WFSReadGML2Type(ST_Polygon) to public;
  4294. grant execute on function WFSReadGML2Type(ST_MultiPoint) to public;
  4295. grant execute on function WFSReadGML2Type(ST_MultiLineString) to public;
  4296. grant execute on function WFSReadGML2Type(ST_MultiPolygon) to public;
  4297. grant execute on function WFSReadGML3Type(ST_Point) to public;
  4298. grant execute on function WFSReadGML3Type(ST_LineString) to public;
  4299. grant execute on function WFSReadGML3Type(ST_Polygon) to public;
  4300. grant execute on function WFSReadGML3Type(ST_MultiPoint) to public;
  4301. grant execute on function WFSReadGML3Type(ST_MultiLineString) to public;
  4302. grant execute on function WFSReadGML3Type(ST_MultiPolygon) to public;
  4303. grant execute on function WFSWriteGML2Type(ST_Point) to public;
  4304. grant execute on function WFSWriteGML2Type(ST_LineString) to public;
  4305. grant execute on function WFSWriteGML2Type(ST_Polygon) to public;
  4306. grant execute on function WFSWriteGML2Type(ST_MultiPoint) to public;
  4307. grant execute on function WFSWriteGML2Type(ST_MultiLineString) to public;
  4308. grant execute on function WFSWriteGML2Type(ST_MultiPolygon) to public;
  4309. grant execute on function WFSWriteGML3Type(ST_Point) to public;
  4310. grant execute on function WFSWriteGML3Type(ST_LineString) to public;
  4311. grant execute on function WFSWriteGML3Type(ST_Polygon) to public;
  4312. grant execute on function WFSWriteGML3Type(ST_MultiPoint) to public;
  4313. grant execute on function WFSWriteGML3Type(ST_MultiLineString) to public;
  4314. grant execute on function WFSWriteGML3Type(ST_MultiPolygon) to public;
  4315. ",
  4316. "f",
  4317. "
  4318. drop function WFSDescSchemaType(ST_Point);
  4319. drop function WFSDescSchemaType(ST_LineString);
  4320. drop function WFSDescSchemaType(ST_Polygon);
  4321. drop function WFSDescSchemaType(ST_MultiPoint);
  4322. drop function WFSDescSchemaType(ST_MultiLineString);
  4323. drop function WFSDescSchemaType(ST_MultiPolygon);
  4324. drop function WFSDescGML2Type(ST_Point);
  4325. drop function WFSDescGML2Type(ST_LineString);
  4326. drop function WFSDescGML2Type(ST_Polygon);
  4327. drop function WFSDescGML2Type(ST_MultiPoint);
  4328. drop function WFSDescGML2Type(ST_MultiLineString);
  4329. drop function WFSDescGML2Type(ST_MultiPolygon);
  4330. drop function WFSDescGML3Type(ST_Point);
  4331. drop function WFSDescGML3Type(ST_LineString);
  4332. drop function WFSDescGML3Type(ST_Polygon);
  4333. drop function WFSDescGML3Type(ST_MultiPoint);
  4334. drop function WFSDescGML3Type(ST_MultiLineString);
  4335. drop function WFSDescGML3Type(ST_MultiPolygon);
  4336. drop function WFSReadGML2Type(ST_Point);
  4337. drop function WFSReadGML2Type(ST_LineString);
  4338. drop function WFSReadGML2Type(ST_Polygon);
  4339. drop function WFSReadGML2Type(ST_MultiPoint);
  4340. drop function WFSReadGML2Type(ST_MultiLineString);
  4341. drop function WFSReadGML2Type(ST_MultiPolygon);
  4342. drop function WFSReadGML3Type(ST_Point);
  4343. drop function WFSReadGML3Type(ST_LineString);
  4344. drop function WFSReadGML3Type(ST_Polygon);
  4345. drop function WFSReadGML3Type(ST_MultiPoint);
  4346. drop function WFSReadGML3Type(ST_MultiLineString);
  4347. drop function WFSReadGML3Type(ST_MultiPolygon);
  4348. drop function WFSWriteGML2Type(ST_Point);
  4349. drop function WFSWriteGML2Type(ST_LineString);
  4350. drop function WFSWriteGML2Type(ST_Polygon);
  4351. drop function WFSWriteGML2Type(ST_MultiPoint);
  4352. drop function WFSWriteGML2Type(ST_MultiLineString);
  4353. drop function WFSWriteGML2Type(ST_MultiPolygon);
  4354. drop function WFSWriteGML3Type(ST_Point);
  4355. drop function WFSWriteGML3Type(ST_LineString);
  4356. drop function WFSWriteGML3Type(ST_Polygon);
  4357. drop function WFSWriteGML3Type(ST_MultiPoint);
  4358. drop function WFSWriteGML3Type(ST_MultiLineString);
  4359. drop function WFSWriteGML3Type(ST_MultiPolygon);
  4360. ",
  4361. "f"
  4362. );
  4363. insert into sysbldobjdepends
  4364. (bld_id, obj_kind, obj_signature, obj_owner,
  4365. need_obj_kind, need_obj_signature, need_obj_owner)
  4366. values
  4367. (
  4368. "%SYSBLDNAME%",
  4369. 0, "gml2n3.sql",
  4370. "%SYSBLDUSER%",
  4371. 0, "gml.sql",
  4372. "%SYSBLDUSER%"
  4373. );
  4374. insert into sysbldobjects
  4375. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  4376. create_can_fail, drop_sql, drop_can_fail)
  4377. values
  4378. (
  4379. "%SYSBLDNAME%", 0, "vertex.sql",
  4380. "%SYSBLDUSER%", 0,
  4381. "create function SE_VertexUpdate(ST_Geometry,ST_Point,ST_Point) returns ST_Geometry
  4382. with (not variant, parallelizable)
  4383. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_VertexUpdate)'
  4384. language c;
  4385. create function SE_VertexAppend(ST_LineString,ST_Point) returns ST_LineString
  4386. with (not variant, parallelizable)
  4387. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_VertexAppend)'
  4388. language c;
  4389. create function SE_VertexDelete(ST_Geometry,ST_Point) returns ST_Geometry
  4390. with (not variant, parallelizable)
  4391. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_VertexDelete)'
  4392. language c;
  4393. create function SE_PerpendicularPoint(ST_Linestring,ST_Point) returns ST_MultiPoint
  4394. with (not variant, parallelizable)
  4395. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PerpendicularPoint)'
  4396. language c;
  4397. create function SE_PerpendicularPoint(ST_MultiLinestring,ST_Point) returns ST_MultiPoint
  4398. with (not variant, parallelizable)
  4399. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PerpendicularPoint)'
  4400. language c;
  4401. grant execute on function SE_VertexUpdate(ST_Geometry,ST_Point,ST_Point) to public;
  4402. grant execute on function SE_VertexAppend(ST_LineString,ST_Point) to public;
  4403. grant execute on function SE_VertexDelete(ST_Geometry,ST_Point) to public;
  4404. grant execute on function SE_PerpendicularPoint(ST_Linestring,ST_Point) to public;
  4405. grant execute on function SE_PerpendicularPoint(ST_MultiLinestring,ST_Point) to public;
  4406. ",
  4407. "f",
  4408. "
  4409. drop function SE_VertexUpdate(ST_Geometry,ST_Point,ST_Point);
  4410. drop function SE_VertexAppend(ST_LineString,ST_Point);
  4411. drop function SE_VertexDelete(ST_Geometry,ST_Point);
  4412. drop function SE_PerpendicularPoint(ST_Linestring,ST_Point);
  4413. drop function SE_PerpendicularPoint(ST_MultiLinestring,ST_Point);
  4414. ",
  4415. "f"
  4416. );
  4417. insert into sysbldobjdepends
  4418. (bld_id, obj_kind, obj_signature, obj_owner,
  4419. need_obj_kind, need_obj_signature, need_obj_owner)
  4420. values
  4421. (
  4422. "%SYSBLDNAME%",
  4423. 0, "vertex.sql",
  4424. "%SYSBLDUSER%",
  4425. 0, "types.sql",
  4426. "%SYSBLDUSER%"
  4427. );
  4428. insert into sysbldobjects
  4429. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  4430. create_can_fail, drop_sql, drop_can_fail)
  4431. values
  4432. (
  4433. "%SYSBLDNAME%", 0, "stats.%SYSBLDDIR%",
  4434. "%SYSBLDUSER%", 0,
  4435. "create function statcollect(ST_Geometry,float,float) returns stat
  4436. with (not variant, handlesnulls)
  4437. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4438. language c;
  4439. create function statcollect(ST_Curve,float,float) returns stat
  4440. with (not variant, handlesnulls)
  4441. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4442. language c;
  4443. create function statcollect(ST_GeomCollection,float,float) returns stat
  4444. with (not variant, handlesnulls)
  4445. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4446. language c;
  4447. create function statcollect(ST_LineString,float,float) returns stat
  4448. with (not variant, handlesnulls)
  4449. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4450. language c;
  4451. create function statcollect(ST_MultiCurve,float,float) returns stat
  4452. with (not variant, handlesnulls)
  4453. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4454. language c;
  4455. create function statcollect(ST_MultiLineString,float,float) returns stat
  4456. with (not variant, handlesnulls)
  4457. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4458. language c;
  4459. create function statcollect(ST_MultiPoint,float,float) returns stat
  4460. with (not variant, handlesnulls)
  4461. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4462. language c;
  4463. create function statcollect(ST_MultiPolygon,float,float) returns stat
  4464. with (not variant, handlesnulls)
  4465. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4466. language c;
  4467. create function statcollect(ST_MultiSurface,float,float) returns stat
  4468. with (not variant, handlesnulls)
  4469. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4470. language c;
  4471. create function statcollect(ST_Point,float,float) returns stat
  4472. with (not variant, handlesnulls)
  4473. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4474. language c;
  4475. create function statcollect(ST_Polygon,float,float) returns stat
  4476. with (not variant, handlesnulls)
  4477. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4478. language c;
  4479. create function statcollect(ST_Surface,float,float) returns stat
  4480. with (not variant, handlesnulls)
  4481. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatCollect)'
  4482. language c;
  4483. create function statprint(ST_Geometry,stat) returns lvarchar
  4484. with (not variant, parallelizable)
  4485. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4486. language c;
  4487. create function statprint(ST_Curve,stat) returns lvarchar
  4488. with (not variant, parallelizable)
  4489. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4490. language c;
  4491. create function statprint(ST_GeomCollection,stat) returns lvarchar
  4492. with (not variant, parallelizable)
  4493. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4494. language c;
  4495. create function statprint(ST_LineString,stat) returns lvarchar
  4496. with (not variant, parallelizable)
  4497. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4498. language c;
  4499. create function statprint(ST_MultiCurve,stat) returns lvarchar
  4500. with (not variant, parallelizable)
  4501. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4502. language c;
  4503. create function statprint(ST_MultiLineString,stat) returns lvarchar
  4504. with (not variant, parallelizable)
  4505. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4506. language c;
  4507. create function statprint(ST_MultiPoint,stat) returns lvarchar
  4508. with (not variant, parallelizable)
  4509. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4510. language c;
  4511. create function statprint(ST_MultiPolygon,stat) returns lvarchar
  4512. with (not variant, parallelizable)
  4513. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4514. language c;
  4515. create function statprint(ST_MultiSurface,stat) returns lvarchar
  4516. with (not variant, parallelizable)
  4517. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4518. language c;
  4519. create function statprint(ST_Point,stat) returns lvarchar
  4520. with (not variant, parallelizable)
  4521. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4522. language c;
  4523. create function statprint(ST_Polygon,stat) returns lvarchar
  4524. with (not variant, parallelizable)
  4525. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4526. language c;
  4527. create function statprint(ST_Surface,stat) returns lvarchar
  4528. with (not variant, parallelizable)
  4529. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_StatPrint)'
  4530. language c;
  4531. create function ST_StatDump(lvarchar,lvarchar,lvarchar) returns lvarchar
  4532. with (not variant)
  4533. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_StatDump)'
  4534. language c;
  4535. grant execute on function statcollect(ST_Geometry,float,float) to public;
  4536. grant execute on function statcollect(ST_Curve,float,float) to public;
  4537. grant execute on function statcollect(ST_GeomCollection,float,float) to public;
  4538. grant execute on function statcollect(ST_LineString,float,float) to public;
  4539. grant execute on function statcollect(ST_MultiCurve,float,float) to public;
  4540. grant execute on function statcollect(ST_MultiLineString,float,float) to public;
  4541. grant execute on function statcollect(ST_MultiPoint,float,float) to public;
  4542. grant execute on function statcollect(ST_MultiPolygon,float,float) to public;
  4543. grant execute on function statcollect(ST_MultiSurface,float,float) to public;
  4544. grant execute on function statcollect(ST_Point,float,float) to public;
  4545. grant execute on function statcollect(ST_Polygon,float,float) to public;
  4546. grant execute on function statcollect(ST_Surface,float,float) to public;
  4547. grant execute on function statprint(ST_Geometry,stat) to public;
  4548. grant execute on function statprint(ST_Curve,stat) to public;
  4549. grant execute on function statprint(ST_GeomCollection,stat) to public;
  4550. grant execute on function statprint(ST_LineString,stat) to public;
  4551. grant execute on function statprint(ST_MultiCurve,stat) to public;
  4552. grant execute on function statprint(ST_MultiLineString,stat) to public;
  4553. grant execute on function statprint(ST_MultiPoint,stat) to public;
  4554. grant execute on function statprint(ST_MultiPolygon,stat) to public;
  4555. grant execute on function statprint(ST_MultiSurface,stat) to public;
  4556. grant execute on function statprint(ST_Point,stat) to public;
  4557. grant execute on function statprint(ST_Polygon,stat) to public;
  4558. grant execute on function statprint(ST_Surface,stat) to public;
  4559. grant execute on function ST_StatDump(lvarchar,lvarchar,lvarchar) to public;
  4560. ",
  4561. "f",
  4562. "
  4563. drop function statcollect(ST_Geometry,float,float);
  4564. drop function statcollect(ST_Curve,float,float);
  4565. drop function statcollect(ST_GeomCollection,float,float);
  4566. drop function statcollect(ST_LineString,float,float);
  4567. drop function statcollect(ST_MultiCurve,float,float);
  4568. drop function statcollect(ST_MultiLineString,float,float);
  4569. drop function statcollect(ST_MultiPoint,float,float);
  4570. drop function statcollect(ST_MultiPolygon,float,float);
  4571. drop function statcollect(ST_MultiSurface,float,float);
  4572. drop function statcollect(ST_Point,float,float);
  4573. drop function statcollect(ST_Polygon,float,float);
  4574. drop function statcollect(ST_Surface,float,float);
  4575. drop function statprint(ST_Geometry,stat);
  4576. drop function statprint(ST_Curve,stat);
  4577. drop function statprint(ST_GeomCollection,stat);
  4578. drop function statprint(ST_LineString,stat);
  4579. drop function statprint(ST_MultiCurve,stat);
  4580. drop function statprint(ST_MultiLineString,stat);
  4581. drop function statprint(ST_MultiPoint,stat);
  4582. drop function statprint(ST_MultiPolygon,stat);
  4583. drop function statprint(ST_MultiSurface,stat);
  4584. drop function statprint(ST_Point,stat);
  4585. drop function statprint(ST_Polygon,stat);
  4586. drop function statprint(ST_Surface,stat);
  4587. drop function ST_StatDump(lvarchar,lvarchar,lvarchar);
  4588. ",
  4589. "f"
  4590. );
  4591. insert into sysbldobjdepends
  4592. (bld_id, obj_kind, obj_signature, obj_owner,
  4593. need_obj_kind, need_obj_signature, need_obj_owner)
  4594. values
  4595. (
  4596. "%SYSBLDNAME%",
  4597. 0, "stats.%SYSBLDDIR%",
  4598. "%SYSBLDUSER%",
  4599. 0, "types.sql",
  4600. "%SYSBLDUSER%"
  4601. );
  4602. insert into sysbldobjects
  4603. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  4604. create_can_fail, drop_sql, drop_can_fail)
  4605. values
  4606. (
  4607. "%SYSBLDNAME%", 0, "tempassign.sql",
  4608. "%SYSBLDUSER%", 0,
  4609. "create function TempAssign(ST_Geometry) returns ST_Geometry
  4610. with (not variant, parallelizable)
  4611. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4612. language c;
  4613. create function TempAssign(ST_Curve) returns ST_Curve
  4614. with (not variant, parallelizable)
  4615. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4616. language c;
  4617. create function TempAssign(ST_MultiCurve) returns ST_MultiCurve
  4618. with (not variant, parallelizable)
  4619. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4620. language c;
  4621. create function TempAssign(ST_Surface) returns ST_Surface
  4622. with (not variant, parallelizable)
  4623. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4624. language c;
  4625. create function TempAssign(ST_MultiSurface) returns ST_MultiSurface
  4626. with (not variant, parallelizable)
  4627. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4628. language c;
  4629. create function TempAssign(ST_Point) returns ST_Point
  4630. with (not variant, parallelizable)
  4631. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4632. language c;
  4633. create function TempAssign(ST_MultiPoint) returns ST_MultiPoint
  4634. with (not variant, parallelizable)
  4635. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4636. language c;
  4637. create function TempAssign(ST_LineString) returns ST_LineString
  4638. with (not variant, parallelizable)
  4639. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4640. language c;
  4641. create function TempAssign(ST_MultiLineString) returns ST_MultiLineString
  4642. with (not variant, parallelizable)
  4643. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4644. language c;
  4645. create function TempAssign(ST_Polygon) returns ST_Polygon
  4646. with (not variant, parallelizable)
  4647. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4648. language c;
  4649. create function TempAssign(ST_MultiPolygon) returns ST_MultiPolygon
  4650. with (not variant, parallelizable)
  4651. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4652. language c;
  4653. create function TempAssign(ST_GeomCollection) returns ST_GeomCollection
  4654. with (not variant, parallelizable)
  4655. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(GeometryTempAssign)'
  4656. language c;
  4657. grant execute on function TempAssign (ST_Geometry) to public;
  4658. grant execute on function TempAssign (ST_Curve) to public;
  4659. grant execute on function TempAssign (ST_MultiCurve) to public;
  4660. grant execute on function TempAssign (ST_Surface) to public;
  4661. grant execute on function TempAssign (ST_MultiSurface) to public;
  4662. grant execute on function TempAssign (ST_Point) to public;
  4663. grant execute on function TempAssign (ST_MultiPoint) to public;
  4664. grant execute on function TempAssign (ST_LineString) to public;
  4665. grant execute on function TempAssign (ST_MultiLineString) to public;
  4666. grant execute on function TempAssign (ST_Polygon) to public;
  4667. grant execute on function TempAssign (ST_MultiPolygon) to public;
  4668. grant execute on function TempAssign (ST_GeomCollection) to public;
  4669. ",
  4670. "f",
  4671. "
  4672. drop function TempAssign(ST_Geometry);
  4673. drop function TempAssign(ST_Curve);
  4674. drop function TempAssign(ST_MultiCurve);
  4675. drop function TempAssign(ST_Surface);
  4676. drop function TempAssign(ST_MultiSurface);
  4677. drop function TempAssign(ST_Point);
  4678. drop function TempAssign(ST_MultiPoint);
  4679. drop function TempAssign(ST_LineString);
  4680. drop function TempAssign(ST_MultiLineString);
  4681. drop function TempAssign(ST_Polygon);
  4682. drop function TempAssign(ST_MultiPolygon);
  4683. drop function TempAssign(ST_GeomCollection);
  4684. ",
  4685. "f"
  4686. );
  4687. insert into sysbldobjdepends
  4688. (bld_id, obj_kind, obj_signature, obj_owner,
  4689. need_obj_kind, need_obj_signature, need_obj_owner)
  4690. values
  4691. (
  4692. "%SYSBLDNAME%",
  4693. 0, "tempassign.sql",
  4694. "%SYSBLDUSER%",
  4695. 0, "types.sql",
  4696. "%SYSBLDUSER%"
  4697. );
  4698. insert into sysbldobjects
  4699. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  4700. create_can_fail, drop_sql, drop_can_fail)
  4701. values
  4702. (
  4703. "%SYSBLDNAME%", 0, "costfuncs.sql",
  4704. "%SYSBLDUSER%", 0,
  4705. "create function ST_OverlapsCost(pointer,pointer) returns integer
  4706. with (not variant, parallelizable)
  4707. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_OverlapsCost)'
  4708. language c;
  4709. create function SE_EqualCost(pointer,pointer) returns integer
  4710. with (not variant, parallelizable)
  4711. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EqualCost)'
  4712. language c;
  4713. create function ST_ContainsCost(pointer,pointer) returns integer
  4714. with (not variant, parallelizable)
  4715. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ContainsCost)'
  4716. language c;
  4717. create function ST_WithinCost(pointer,pointer) returns integer
  4718. with (not variant, parallelizable)
  4719. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WithinCost)'
  4720. language c;
  4721. create function SE_EnvelopesIntersectCost(pointer,pointer) returns integer
  4722. with (not variant, parallelizable)
  4723. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopesIntersectCost)'
  4724. language c;
  4725. create function ST_IntersectsCost(pointer,pointer) returns integer
  4726. with (not variant, parallelizable)
  4727. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IntersectsCost)'
  4728. language c;
  4729. create function ST_TouchesCost(pointer,pointer) returns integer
  4730. with (not variant, parallelizable)
  4731. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_TouchesCost)'
  4732. language c;
  4733. create function ST_CrossesCost(pointer,pointer) returns integer
  4734. with (not variant, parallelizable)
  4735. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CrossesCost)'
  4736. language c;
  4737. create function ST_EqualsCost(pointer,pointer) returns integer
  4738. with (not variant, parallelizable)
  4739. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_EqualsCost)'
  4740. language c;
  4741. create function ST_DisjointCost(pointer,pointer) returns integer
  4742. with (not variant, parallelizable)
  4743. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DisjointCost)'
  4744. language c;
  4745. create function ST_CostTest(lvarchar,lvarchar,lvarchar,ST_Geometry) returns integer
  4746. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CostTest)'
  4747. language c;
  4748. grant execute on function ST_OverlapsCost(pointer,pointer) to public;
  4749. grant execute on function SE_EqualCost(pointer,pointer) to public;
  4750. grant execute on function ST_ContainsCost(pointer,pointer) to public;
  4751. grant execute on function ST_WithinCost(pointer,pointer) to public;
  4752. grant execute on function SE_EnvelopesIntersectCost(pointer,pointer) to public;
  4753. grant execute on function ST_IntersectsCost(pointer,pointer) to public;
  4754. grant execute on function ST_TouchesCost(pointer,pointer) to public;
  4755. grant execute on function ST_CrossesCost(pointer,pointer) to public;
  4756. grant execute on function ST_EqualsCost(pointer,pointer) to public;
  4757. grant execute on function ST_DisjointCost(pointer,pointer) to public;
  4758. grant execute on function ST_CostTest(lvarchar,lvarchar,lvarchar,ST_Geometry) to public;
  4759. ",
  4760. "f",
  4761. "
  4762. drop function ST_OverlapsCost(pointer,pointer);
  4763. drop function SE_EqualCost(pointer,pointer);
  4764. drop function ST_ContainsCost(pointer,pointer);
  4765. drop function ST_WithinCost(pointer,pointer);
  4766. drop function SE_EnvelopesIntersectCost(pointer,pointer);
  4767. drop function ST_IntersectsCost(pointer,pointer);
  4768. drop function ST_TouchesCost(pointer,pointer);
  4769. drop function ST_CrossesCost(pointer,pointer);
  4770. drop function ST_EqualsCost(pointer,pointer);
  4771. drop function ST_DisjointCost(pointer,pointer);
  4772. drop function ST_CostTest(lvarchar,lvarchar,lvarchar,ST_Geometry);
  4773. ",
  4774. "f"
  4775. );
  4776. insert into sysbldobjdepends
  4777. (bld_id, obj_kind, obj_signature, obj_owner,
  4778. need_obj_kind, need_obj_signature, need_obj_owner)
  4779. values
  4780. (
  4781. "%SYSBLDNAME%",
  4782. 0, "costfuncs.sql",
  4783. "%SYSBLDUSER%",
  4784. 0, "opclass.sql",
  4785. "%SYSBLDUSER%"
  4786. );
  4787. insert into sysbldobjects
  4788. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  4789. create_can_fail, drop_sql, drop_can_fail)
  4790. values
  4791. (
  4792. "%SYSBLDNAME%", 0, "altercost.sql",
  4793. "%SYSBLDUSER%", 0,
  4794. "alter function ST_Overlaps(ST_Geometry,ST_Geometry)
  4795. with (drop percall_cost);
  4796. alter function Equal(ST_Geometry,ST_Geometry)
  4797. with (drop percall_cost);
  4798. alter function ST_Contains(ST_Geometry,ST_Geometry)
  4799. with (drop percall_cost);
  4800. alter function ST_Within(ST_Geometry,ST_Geometry)
  4801. with (drop percall_cost);
  4802. alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry)
  4803. with (drop percall_cost);
  4804. alter function ST_Intersects(ST_Geometry,ST_Geometry)
  4805. with (drop percall_cost);
  4806. alter function ST_Touches(ST_Geometry,ST_Geometry)
  4807. with (drop percall_cost);
  4808. alter function ST_Crosses(ST_Geometry,ST_Geometry)
  4809. with (drop percall_cost);
  4810. alter function ST_Equals(ST_Geometry,ST_Geometry)
  4811. with (drop percall_cost);
  4812. alter function ST_Disjoint(ST_Geometry,ST_Geometry)
  4813. with (drop percall_cost);
  4814. alter function ST_Overlaps(ST_Geometry,ST_Geometry)
  4815. with (add costfunc = ST_OverlapsCost);
  4816. alter function Equal(ST_Geometry,ST_Geometry)
  4817. with (add costfunc = SE_EqualCost);
  4818. alter function ST_Contains(ST_Geometry,ST_Geometry)
  4819. with (add costfunc = ST_ContainsCost);
  4820. alter function ST_Within(ST_Geometry,ST_Geometry)
  4821. with (add costfunc = ST_WithinCost);
  4822. alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry)
  4823. with (add costfunc = SE_EnvelopesIntersectCost);
  4824. alter function ST_Intersects(ST_Geometry,ST_Geometry)
  4825. with (add costfunc = ST_IntersectsCost);
  4826. alter function ST_Touches(ST_Geometry,ST_Geometry)
  4827. with (add costfunc = ST_TouchesCost);
  4828. alter function ST_Crosses(ST_Geometry,ST_Geometry)
  4829. with (add costfunc = ST_CrossesCost);
  4830. alter function ST_Equals(ST_Geometry,ST_Geometry)
  4831. with (add costfunc = ST_EqualsCost);
  4832. alter function ST_Disjoint(ST_Geometry,ST_Geometry)
  4833. with (add costfunc = ST_DisjointCost);
  4834. ",
  4835. "f",
  4836. "
  4837. alter function ST_Overlaps(ST_Geometry,ST_Geometry)
  4838. with (drop costfunc);
  4839. alter function Equal(ST_Geometry,ST_Geometry)
  4840. with (drop costfunc);
  4841. alter function ST_Contains(ST_Geometry,ST_Geometry)
  4842. with (drop costfunc);
  4843. alter function ST_Within(ST_Geometry,ST_Geometry)
  4844. with (drop costfunc);
  4845. alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry)
  4846. with (drop costfunc);
  4847. alter function ST_Intersects(ST_Geometry,ST_Geometry)
  4848. with (drop costfunc);
  4849. alter function ST_Touches(ST_Geometry,ST_Geometry)
  4850. with (drop costfunc);
  4851. alter function ST_Crosses(ST_Geometry,ST_Geometry)
  4852. with (drop costfunc);
  4853. alter function ST_Equals(ST_Geometry,ST_Geometry)
  4854. with (drop costfunc);
  4855. alter function ST_Disjoint(ST_Geometry,ST_Geometry)
  4856. with (drop costfunc);
  4857. alter function ST_Overlaps(ST_Geometry,ST_Geometry)
  4858. with (add percall_cost = 1000);
  4859. alter function Equal(ST_Geometry,ST_Geometry)
  4860. with (add percall_cost = 1000);
  4861. alter function ST_Contains(ST_Geometry,ST_Geometry)
  4862. with (add percall_cost = 1000);
  4863. alter function ST_Within(ST_Geometry,ST_Geometry)
  4864. with (add percall_cost = 1000);
  4865. alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry)
  4866. with (add percall_cost = 500);
  4867. alter function ST_Intersects(ST_Geometry,ST_Geometry)
  4868. with (add percall_cost = 1000);
  4869. alter function ST_Touches(ST_Geometry,ST_Geometry)
  4870. with (add percall_cost = 1000);
  4871. alter function ST_Crosses(ST_Geometry,ST_Geometry)
  4872. with (add percall_cost = 1000);
  4873. alter function ST_Equals(ST_Geometry,ST_Geometry)
  4874. with (add percall_cost = 8000);
  4875. alter function ST_Disjoint(ST_Geometry,ST_Geometry)
  4876. with (add percall_cost = 8000);
  4877. ",
  4878. "f"
  4879. );
  4880. insert into sysbldobjdepends
  4881. (bld_id, obj_kind, obj_signature, obj_owner,
  4882. need_obj_kind, need_obj_signature, need_obj_owner)
  4883. values
  4884. (
  4885. "%SYSBLDNAME%",
  4886. 0, "altercost.sql",
  4887. "%SYSBLDUSER%",
  4888. 0, "costfuncs.sql",
  4889. "%SYSBLDUSER%"
  4890. );
  4891. insert into sysbldobjects
  4892. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  4893. create_can_fail, drop_sql, drop_can_fail)
  4894. values
  4895. (
  4896. "%SYSBLDNAME%", 0, "selectivity.sql",
  4897. "%SYSBLDUSER%", 0,
  4898. "create function ST_OverlapsSelectivity(pointer,pointer) returns float
  4899. with (not variant, parallelizable)
  4900. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_OverlapsSelectivity)'
  4901. language c;
  4902. create function SE_EqualSelectivity(pointer,pointer) returns float
  4903. with (not variant, parallelizable)
  4904. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EqualSelectivity)'
  4905. language c;
  4906. create function ST_ContainsSelectivity(pointer,pointer) returns float
  4907. with (not variant, parallelizable)
  4908. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_ContainsSelectivity)'
  4909. language c;
  4910. create function ST_WithinSelectivity(pointer,pointer) returns float
  4911. with (not variant, parallelizable)
  4912. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_WithinSelectivity)'
  4913. language c;
  4914. create function SE_EnvelopesIntersectSelectivity(pointer,pointer) returns float
  4915. with (not variant, parallelizable)
  4916. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_EnvelopesIntersectSelectivity)'
  4917. language c;
  4918. create function ST_IntersectsSelectivity(pointer,pointer) returns float
  4919. with (not variant, parallelizable)
  4920. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_IntersectsSelectivity)'
  4921. language c;
  4922. create function ST_TouchesSelectivity(pointer,pointer) returns float
  4923. with (not variant, parallelizable)
  4924. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_TouchesSelectivity)'
  4925. language c;
  4926. create function ST_CrossesSelectivity(pointer,pointer) returns float
  4927. with (not variant, parallelizable)
  4928. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_CrossesSelectivity)'
  4929. language c;
  4930. create function ST_EqualsSelectivity(pointer,pointer) returns float
  4931. with (not variant, parallelizable)
  4932. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_EqualsSelectivity)'
  4933. language c;
  4934. create function ST_DisjointSelectivity(pointer,pointer) returns float
  4935. with (not variant, parallelizable)
  4936. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_DisjointSelectivity)'
  4937. language c;
  4938. create function ST_SelectivityTest(lvarchar,lvarchar,lvarchar,ST_Geometry) returns float
  4939. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_SelectivityTest)'
  4940. language c;
  4941. grant execute on function ST_OverlapsSelectivity(pointer,pointer) to public;
  4942. grant execute on function SE_EqualSelectivity(pointer,pointer) to public;
  4943. grant execute on function ST_ContainsSelectivity(pointer,pointer) to public;
  4944. grant execute on function ST_WithinSelectivity(pointer,pointer) to public;
  4945. grant execute on function SE_EnvelopesIntersectSelectivity(pointer,pointer) to public;
  4946. grant execute on function ST_IntersectsSelectivity(pointer,pointer) to public;
  4947. grant execute on function ST_TouchesSelectivity(pointer,pointer) to public;
  4948. grant execute on function ST_CrossesSelectivity(pointer,pointer) to public;
  4949. grant execute on function ST_EqualsSelectivity(pointer,pointer) to public;
  4950. grant execute on function ST_DisjointSelectivity(pointer,pointer) to public;
  4951. grant execute on function ST_SelectivityTest(lvarchar,lvarchar,lvarchar,ST_Geometry) to public;
  4952. alter function ST_Overlaps(ST_Geometry,ST_Geometry)
  4953. with (add selfunc = ST_OverlapsSelectivity);
  4954. alter function Equal(ST_Geometry,ST_Geometry)
  4955. with (add selfunc = SE_EqualSelectivity);
  4956. alter function ST_Contains(ST_Geometry,ST_Geometry)
  4957. with (add selfunc = ST_ContainsSelectivity);
  4958. alter function ST_Within(ST_Geometry,ST_Geometry)
  4959. with (add selfunc = ST_WithinSelectivity);
  4960. alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry)
  4961. with (add selfunc = SE_EnvelopesIntersectSelectivity);
  4962. alter function ST_Intersects(ST_Geometry,ST_Geometry)
  4963. with (add selfunc = ST_IntersectsSelectivity);
  4964. alter function ST_Touches(ST_Geometry,ST_Geometry)
  4965. with (add selfunc = ST_TouchesSelectivity);
  4966. alter function ST_Crosses(ST_Geometry,ST_Geometry)
  4967. with (add selfunc = ST_CrossesSelectivity);
  4968. alter function ST_Equals(ST_Geometry,ST_Geometry)
  4969. with (add selfunc = ST_EqualsSelectivity);
  4970. alter function ST_Disjoint(ST_Geometry,ST_Geometry)
  4971. with (add selfunc = ST_DisjointSelectivity);
  4972. ",
  4973. "f",
  4974. "
  4975. alter function ST_Overlaps(ST_Geometry,ST_Geometry)
  4976. with (drop selfunc);
  4977. alter function Equal(ST_Geometry,ST_Geometry)
  4978. with (drop selfunc);
  4979. alter function ST_Contains(ST_Geometry,ST_Geometry)
  4980. with (drop selfunc);
  4981. alter function ST_Within(ST_Geometry,ST_Geometry)
  4982. with (drop selfunc);
  4983. alter function SE_EnvelopesIntersect(ST_Geometry,ST_Geometry)
  4984. with (drop selfunc);
  4985. alter function ST_Intersects(ST_Geometry,ST_Geometry)
  4986. with (drop selfunc);
  4987. alter function ST_Touches(ST_Geometry,ST_Geometry)
  4988. with (drop selfunc);
  4989. alter function ST_Crosses(ST_Geometry,ST_Geometry)
  4990. with (drop selfunc);
  4991. alter function ST_Equals(ST_Geometry,ST_Geometry)
  4992. with (drop selfunc);
  4993. alter function ST_Disjoint(ST_Geometry,ST_Geometry)
  4994. with (drop selfunc);
  4995. drop function ST_OverlapsSelectivity(pointer,pointer);
  4996. drop function SE_EqualSelectivity(pointer,pointer);
  4997. drop function ST_ContainsSelectivity(pointer,pointer);
  4998. drop function ST_WithinSelectivity(pointer,pointer);
  4999. drop function SE_EnvelopesIntersectSelectivity(pointer,pointer);
  5000. drop function ST_IntersectsSelectivity(pointer,pointer);
  5001. drop function ST_TouchesSelectivity(pointer,pointer);
  5002. drop function ST_CrossesSelectivity(pointer,pointer);
  5003. drop function ST_EqualsSelectivity(pointer,pointer);
  5004. drop function ST_DisjointSelectivity(pointer,pointer);
  5005. drop function ST_SelectivityTest(lvarchar,lvarchar,lvarchar,ST_Geometry);
  5006. ",
  5007. "f"
  5008. );
  5009. insert into sysbldobjdepends
  5010. (bld_id, obj_kind, obj_signature, obj_owner,
  5011. need_obj_kind, need_obj_signature, need_obj_owner)
  5012. values
  5013. (
  5014. "%SYSBLDNAME%",
  5015. 0, "selectivity.sql",
  5016. "%SYSBLDUSER%",
  5017. 0, "opclass.sql",
  5018. "%SYSBLDUSER%"
  5019. );
  5020. insert into sysbldobjects
  5021. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5022. create_can_fail, drop_sql, drop_can_fail)
  5023. values
  5024. (
  5025. "%SYSBLDNAME%", 0, "params.sql",
  5026. "%SYSBLDUSER%", 0,
  5027. "create function SE_ParamSet(lvarchar,lvarchar) returns lvarchar
  5028. with (not variant)
  5029. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamSet)'
  5030. language c;
  5031. create function SE_ParamSet() returns lvarchar
  5032. with (not variant)
  5033. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamSetUsage)'
  5034. language c;
  5035. create function SE_ParamGet(lvarchar) returns lvarchar
  5036. with (not variant)
  5037. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamGetOne)'
  5038. language c;
  5039. create function SE_ParamGet() returns lvarchar
  5040. with (not variant)
  5041. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_ParamGetAll)'
  5042. language c;
  5043. grant execute on function SE_ParamSet(lvarchar,lvarchar) to public;
  5044. grant execute on function SE_ParamSet() to public;
  5045. grant execute on function SE_ParamGet(lvarchar) to public;
  5046. grant execute on function SE_ParamGet() to public;
  5047. ",
  5048. "f",
  5049. "
  5050. drop function SE_ParamSet(lvarchar,lvarchar);
  5051. drop function SE_ParamSet();
  5052. drop function SE_ParamGet(lvarchar);
  5053. drop function SE_ParamGet();
  5054. ",
  5055. "f"
  5056. );
  5057. insert into sysbldobjects
  5058. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5059. create_can_fail, drop_sql, drop_can_fail)
  5060. values
  5061. (
  5062. "%SYSBLDNAME%", 15, "Ispatial",
  5063. "%SYSBLDUSER%", 0,
  5064. "insert into sysbldiprovided
  5065. (bldi_id, bld_id)
  5066. values
  5067. (
  5068. ""Ispatial"",
  5069. ""%SYSBLDNAME%""
  5070. );
  5071. ",
  5072. "f",
  5073. "delete from sysbldiprovided
  5074. where bldi_id = ""Ispatial""
  5075. and bld_id = ""%SYSBLDNAME%"";
  5076. ",
  5077. "f"
  5078. );
  5079. insert into sysbldobjects
  5080. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5081. create_can_fail, drop_sql, drop_can_fail)
  5082. values
  5083. (
  5084. "%SYSBLDNAME%", 15, "ifxrltree1",
  5085. "%SYSBLDUSER%", 0,
  5086. "insert into sysbldirequired
  5087. (bldi_id, bld_id)
  5088. values
  5089. (
  5090. ""ifxrltree1"",
  5091. ""%SYSBLDNAME%""
  5092. );
  5093. ",
  5094. "f",
  5095. "delete from sysbldirequired
  5096. where bldi_id = ""ifxrltree1""
  5097. and bld_id = ""%SYSBLDNAME%"";
  5098. ",
  5099. "f"
  5100. );
  5101. insert into sysbldobjects
  5102. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5103. create_can_fail, drop_sql, drop_can_fail)
  5104. values
  5105. (
  5106. "%SYSBLDNAME%", 0, "uom_table.sql",
  5107. "%SYSBLDUSER%", 0,
  5108. "
  5109. create table sde.st_units_of_measure
  5110. (
  5111. unit_name varchar(128) not null primary key,
  5112. unit_type varchar(16) not null,
  5113. conversion_factor double precision not null,
  5114. description varchar(255)
  5115. );
  5116. ",
  5117. "f",
  5118. "
  5119. drop table st_units_of_measure;
  5120. ",
  5121. "f"
  5122. );
  5123. insert into sysbldobjects
  5124. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5125. create_can_fail, drop_sql, drop_can_fail)
  5126. values
  5127. (
  5128. "%SYSBLDNAME%", 0, "remake_metatable.sql",
  5129. "%SYSBLDUSER%", 0,
  5130. "
  5131. -- SE_MetadataTable needs to be created after st_units_of_measure (and spatial_references)
  5132. -- for dbexport/dbimport to work
  5133. CREATE PROCEDURE SE_setup_metatable()
  5134. DEFINE tab_exists INT;
  5135. LET tab_exists = 0;
  5136. SELECT count(*) INTO tab_exists FROM informix.systables
  5137. WHERE tabname='se_metadatatable';
  5138. IF (tab_exists = 1) THEN
  5139. DROP TABLE SE_MetadataTable;
  5140. CREATE TABLE SE_MetadataTable
  5141. (
  5142. smd SE_Metadata
  5143. );
  5144. REVOKE ALL ON SE_MetadataTable FROM public;
  5145. END IF
  5146. END PROCEDURE; -- SE_setup_metatable
  5147. EXECUTE PROCEDURE SE_setup_metatable();
  5148. DROP PROCEDURE SE_setup_metatable();
  5149. ",
  5150. "f",
  5151. "",
  5152. "f"
  5153. );
  5154. insert into sysbldobjdepends
  5155. (bld_id, obj_kind, obj_signature, obj_owner,
  5156. need_obj_kind, need_obj_signature, need_obj_owner)
  5157. values
  5158. (
  5159. "%SYSBLDNAME%",
  5160. 0, "remake_metatable.sql",
  5161. "%SYSBLDUSER%",
  5162. 0, "uom_table.sql",
  5163. "%SYSBLDUSER%"
  5164. );
  5165. insert into sysbldobjdepends
  5166. (bld_id, obj_kind, obj_signature, obj_owner,
  5167. need_obj_kind, need_obj_signature, need_obj_owner)
  5168. values
  5169. (
  5170. "%SYSBLDNAME%",
  5171. 0, "remake_metatable.sql",
  5172. "%SYSBLDUSER%",
  5173. 0, "metadata_tables.sql",
  5174. "%SYSBLDUSER%"
  5175. );
  5176. insert into sysbldobjects
  5177. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5178. create_can_fail, drop_sql, drop_can_fail)
  5179. values
  5180. (
  5181. "%SYSBLDNAME%", 0, "uom_udrs.sql",
  5182. "%SYSBLDUSER%", 0,
  5183. "
  5184. create function ST_Buffer(ST_Geometry,float,varchar(128)) returns ST_Geometry
  5185. with (not variant, parallelizable, percall_cost=8000)
  5186. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Buffer_uom)'
  5187. language c;
  5188. create function ST_Distance(ST_Geometry,ST_Geometry,varchar(128)) returns float
  5189. with (not variant, parallelizable, percall_cost=300)
  5190. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_Distance_uom)'
  5191. language c;
  5192. create function ST_Length(ST_Curve,varchar(128)) returns float
  5193. with (not variant, parallelizable)
  5194. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthCurve_uom)'
  5195. language c;
  5196. create function ST_Area(ST_Surface,varchar(128)) returns float
  5197. with (not variant, parallelizable)
  5198. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaSurface_uom)'
  5199. language c;
  5200. create function ST_Perimeter(ST_Surface,varchar(128)) returns float
  5201. with (not variant, parallelizable)
  5202. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterSurface_uom)'
  5203. language c;
  5204. create function ST_Length(ST_MultiCurve,varchar(128)) returns float
  5205. with (not variant, parallelizable)
  5206. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_LengthMultiCurve_uom)'
  5207. language c;
  5208. create function ST_Area(ST_MultiSurface,varchar(128)) returns float
  5209. with (not variant, parallelizable)
  5210. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_AreaMultiSurface_uom)'
  5211. language c;
  5212. create function ST_Perimeter(ST_MultiSurface,varchar(128)) returns float
  5213. with (not variant, parallelizable)
  5214. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(ST_PerimeterMultiSurface_uom)'
  5215. language c;
  5216. create function SE_CreateSrid(
  5217. integer, varchar(64) default null, varchar(64) default null, integer default null) returns integer
  5218. with (handlesnulls, stack=256000)
  5219. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_CreateSrid_factory)'
  5220. language c;
  5221. grant execute on function ST_Buffer (ST_Geometry,float, varchar(128)) to public;
  5222. grant execute on function ST_Distance (ST_Geometry,ST_Geometry, varchar(128)) to public;
  5223. grant execute on function ST_Length (ST_Curve, varchar(128)) to public;
  5224. grant execute on function ST_Area (ST_Surface, varchar(128)) to public;
  5225. grant execute on function ST_Perimeter (ST_Surface, varchar(128)) to public;
  5226. grant execute on function ST_Length (ST_MultiCurve, varchar(128)) to public;
  5227. grant execute on function ST_Area (ST_MultiSurface, varchar(128)) to public;
  5228. grant execute on function ST_Perimeter (ST_MultiSurface, varchar(128)) to public;
  5229. grant execute on function SE_CreateSrid(integer, varchar(64), varchar(64), integer) to public;
  5230. ",
  5231. "f",
  5232. "
  5233. drop function ST_Buffer(ST_Geometry,float, varchar(128));
  5234. drop function ST_Distance(ST_Geometry,ST_Geometry, varchar(128));
  5235. drop function ST_Length(ST_Curve, varchar(128));
  5236. drop function ST_Area(ST_Surface, varchar(128));
  5237. drop function ST_Perimeter(ST_Surface, varchar(128));
  5238. drop function ST_Length(ST_MultiCurve, varchar(128));
  5239. drop function ST_Area(ST_MultiSurface, varchar(128));
  5240. drop function ST_Perimeter(ST_MultiSurface, varchar(128));
  5241. drop function SE_CreateSrid(integer, varchar(64), varchar(64), integer);
  5242. ",
  5243. "f"
  5244. );
  5245. insert into sysbldobjdepends
  5246. (bld_id, obj_kind, obj_signature, obj_owner,
  5247. need_obj_kind, need_obj_signature, need_obj_owner)
  5248. values
  5249. (
  5250. "%SYSBLDNAME%",
  5251. 0, "uom_udrs.sql",
  5252. "%SYSBLDUSER%",
  5253. 0, "types.sql",
  5254. "%SYSBLDUSER%"
  5255. );
  5256. insert into sysbldobjects
  5257. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5258. create_can_fail, drop_sql, drop_can_fail)
  5259. values
  5260. (
  5261. "%SYSBLDNAME%", 0, "srs_uom_load.sql",
  5262. "%SYSBLDUSER%", 0, "create procedure SE_TEMP_load_uom()
  5263. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Load_uom)'
  5264. language c;
  5265. create procedure SE_TEMP_load_srs()
  5266. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_Load_srs)'
  5267. language c;
  5268. execute procedure SE_TEMP_load_uom();
  5269. execute procedure SE_TEMP_load_srs();
  5270. drop procedure SE_TEMP_load_uom();
  5271. drop procedure SE_TEMP_load_srs();
  5272. ",
  5273. "f",
  5274. "
  5275. delete from sde.spatial_references where srtext in ('PROJCS','GEOGCS');
  5276. ",
  5277. "f"
  5278. );
  5279. insert into sysbldobjdepends
  5280. (bld_id, obj_kind, obj_signature, obj_owner,
  5281. need_obj_kind, need_obj_signature, need_obj_owner)
  5282. values
  5283. (
  5284. "%SYSBLDNAME%",
  5285. 0, "srs_uom_load.sql",
  5286. "%SYSBLDUSER%",
  5287. 0, "remake_metatable.sql",
  5288. "%SYSBLDUSER%"
  5289. );
  5290. insert into sysbldobjects
  5291. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5292. create_can_fail, drop_sql, drop_can_fail)
  5293. values
  5294. (
  5295. "%SYSBLDNAME%", 0, "spatial_references_expand.sql",
  5296. "%SYSBLDUSER%", 0, "
  5297. create view sde.spatial_references_expand(
  5298. srid,
  5299. description,
  5300. auth_name,
  5301. auth_srid,
  5302. falsex,
  5303. falsey,
  5304. xyunits,
  5305. falsez,
  5306. zunits,
  5307. falsem,
  5308. munits,
  5309. srtext) as select
  5310. srid,
  5311. description,
  5312. auth_name,
  5313. auth_srid,
  5314. falsex,
  5315. falsey,
  5316. xyunits,
  5317. falsez,
  5318. zunits,
  5319. falsem,
  5320. munits,
  5321. CASE
  5322. WHEN srtext IN ('PROJCS','GEOGCS') THEN SE_CreateSrtext(srid, srtext)
  5323. ELSE srtext
  5324. END as srtext
  5325. from sde.spatial_references;
  5326. ",
  5327. "f",
  5328. "drop view sde.spatial_references_expand;",
  5329. "f"
  5330. );
  5331. insert into sysbldobjdepends
  5332. (bld_id, obj_kind, obj_signature, obj_owner,
  5333. need_obj_kind, need_obj_signature, need_obj_owner)
  5334. values
  5335. (
  5336. "%SYSBLDNAME%",
  5337. 0, "spatial_references_expand.sql",
  5338. "%SYSBLDUSER%",
  5339. 0, "metadata_tables.sql",
  5340. "%SYSBLDUSER%"
  5341. );
  5342. insert into sysbldobjdepends
  5343. (bld_id, obj_kind, obj_signature, obj_owner,
  5344. need_obj_kind, need_obj_signature, need_obj_owner)
  5345. values
  5346. (
  5347. "%SYSBLDNAME%",
  5348. 0, "spatial_references_expand.sql",
  5349. "%SYSBLDUSER%",
  5350. 0, "miscfuncs.%SYSBLDDIR%",
  5351. "%SYSBLDUSER%"
  5352. );
  5353. insert into sysbldobjects
  5354. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5355. create_can_fail, drop_sql, drop_can_fail)
  5356. values
  5357. (
  5358. "%SYSBLDNAME%", 0, "bson_udrs.sql",
  5359. "%SYSBLDUSER%", 0,
  5360. "
  5361. create function SE_GeomFromBSON(bson,varchar(255)) returns ST_Geometry
  5362. with (not variant, parallelizable)
  5363. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromBSON)'
  5364. language c;
  5365. create function SE_PointFromBSON(bson,varchar(255)) returns ST_Point
  5366. with (not variant, parallelizable)
  5367. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromBSON)'
  5368. language c;
  5369. create function SE_LineFromBSON(bson,varchar(255)) returns ST_LineString
  5370. with (not variant, parallelizable)
  5371. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromBSON)'
  5372. language c;
  5373. create function SE_PolyFromBSON(bson,varchar(255)) returns ST_Polygon
  5374. with (not variant, parallelizable)
  5375. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromBSON)'
  5376. language c;
  5377. create function SE_MPointFromBSON(bson,varchar(255)) returns ST_MultiPoint
  5378. with (not variant, parallelizable)
  5379. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromBSON)'
  5380. language c;
  5381. create function SE_MLineFromBSON(bson,varchar(255)) returns ST_MultiLineString
  5382. with (not variant, parallelizable)
  5383. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromBSON)'
  5384. language c;
  5385. create function SE_MPolyFromBSON(bson,varchar(255)) returns ST_MultiPolygon
  5386. with (not variant, parallelizable)
  5387. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromBSON)'
  5388. language c;
  5389. create function SE_BBoxFromBSON(bson,varchar(255)) returns ST_Polygon
  5390. with (not variant, parallelizable)
  5391. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_BBoxFromBSON)'
  5392. language c;
  5393. create function SE_GeomFromBSON(bson,varchar(255), integer) returns ST_Geometry
  5394. with (handlesnulls, not variant, parallelizable)
  5395. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_GeomFromBSON_srid)'
  5396. language c;
  5397. create function SE_PointFromBSON(bson,varchar(255), integer) returns ST_Point
  5398. with (handlesnulls, not variant, parallelizable)
  5399. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PointFromBSON_srid)'
  5400. language c;
  5401. create function SE_LineFromBSON(bson,varchar(255), integer) returns ST_LineString
  5402. with (handlesnulls, not variant, parallelizable)
  5403. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_LineFromBSON_srid)'
  5404. language c;
  5405. create function SE_PolyFromBSON(bson,varchar(255), integer) returns ST_Polygon
  5406. with (handlesnulls, not variant, parallelizable)
  5407. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_PolyFromBSON_srid)'
  5408. language c;
  5409. create function SE_MPointFromBSON(bson,varchar(255), integer) returns ST_MultiPoint
  5410. with (handlesnulls, not variant, parallelizable)
  5411. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPointFromBSON_srid)'
  5412. language c;
  5413. create function SE_MLineFromBSON(bson,varchar(255), integer) returns ST_MultiLineString
  5414. with (handlesnulls, not variant, parallelizable)
  5415. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MLineFromBSON_srid)'
  5416. language c;
  5417. create function SE_MPolyFromBSON(bson,varchar(255), integer) returns ST_MultiPolygon
  5418. with (handlesnulls, not variant, parallelizable)
  5419. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_MPolyFromBSON_srid)'
  5420. language c;
  5421. create function SE_BBoxFromBSON(bson,varchar(255), integer) returns ST_Polygon
  5422. with (handlesnulls, not variant, parallelizable)
  5423. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_BBoxFromBSON_srid)'
  5424. language c;
  5425. grant execute on function SE_GeomFromBSON (bson,varchar(255)) to public;
  5426. grant execute on function SE_PointFromBSON (bson,varchar(255)) to public;
  5427. grant execute on function SE_LineFromBSON (bson,varchar(255)) to public;
  5428. grant execute on function SE_PolyFromBSON (bson,varchar(255)) to public;
  5429. grant execute on function SE_MPointFromBSON (bson,varchar(255)) to public;
  5430. grant execute on function SE_MLineFromBSON (bson,varchar(255)) to public;
  5431. grant execute on function SE_MPolyFromBSON (bson,varchar(255)) to public;
  5432. grant execute on function SE_BBoxFromBSON (bson,varchar(255)) to public;
  5433. grant execute on function SE_GeomFromBSON (bson,varchar(255), integer) to public;
  5434. grant execute on function SE_PointFromBSON (bson,varchar(255), integer) to public;
  5435. grant execute on function SE_LineFromBSON (bson,varchar(255), integer) to public;
  5436. grant execute on function SE_PolyFromBSON (bson,varchar(255), integer) to public;
  5437. grant execute on function SE_MPointFromBSON (bson,varchar(255), integer) to public;
  5438. grant execute on function SE_MLineFromBSON (bson,varchar(255), integer) to public;
  5439. grant execute on function SE_MPolyFromBSON (bson,varchar(255), integer) to public;
  5440. grant execute on function SE_BBoxFromBSON (bson,varchar(255), integer) to public;
  5441. ",
  5442. "f",
  5443. "
  5444. drop function SE_GeomFromBSON (bson,varchar(255));
  5445. drop function SE_PointFromBSON (bson,varchar(255));
  5446. drop function SE_LineFromBSON (bson,varchar(255));
  5447. drop function SE_PolyFromBSON (bson,varchar(255));
  5448. drop function SE_MPointFromBSON (bson,varchar(255));
  5449. drop function SE_MLineFromBSON (bson,varchar(255));
  5450. drop function SE_MPolyFromBSON (bson,varchar(255));
  5451. drop function SE_BBoxFromBSON (bson,varchar(255));
  5452. drop function SE_GeomFromBSON (bson,varchar(255), integer);
  5453. drop function SE_PointFromBSON (bson,varchar(255), integer);
  5454. drop function SE_LineFromBSON (bson,varchar(255), integer);
  5455. drop function SE_PolyFromBSON (bson,varchar(255), integer);
  5456. drop function SE_MPointFromBSON (bson,varchar(255), integer);
  5457. drop function SE_MLineFromBSON (bson,varchar(255), integer);
  5458. drop function SE_MPolyFromBSON (bson,varchar(255), integer);
  5459. drop function SE_BBoxFromBSON (bson,varchar(255), integer);
  5460. ",
  5461. "f"
  5462. );
  5463. insert into sysbldobjdepends
  5464. (bld_id, obj_kind, obj_signature, obj_owner,
  5465. need_obj_kind, need_obj_signature, need_obj_owner)
  5466. values
  5467. (
  5468. "%SYSBLDNAME%",
  5469. 0, "bson_udrs.sql",
  5470. "%SYSBLDUSER%",
  5471. 0, "types.sql",
  5472. "%SYSBLDUSER%"
  5473. );
  5474. insert into sysbldobjects
  5475. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5476. create_can_fail, drop_sql, drop_can_fail)
  5477. values
  5478. (
  5479. "%SYSBLDNAME%", 0, "asbson.sql",
  5480. "%SYSBLDUSER%", 0,
  5481. "
  5482. create function SE_AsBSON(ST_Geometry) returns bson
  5483. with (not variant, parallelizable)
  5484. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_AsBSON)'
  5485. language c;
  5486. grant execute on function SE_AsBSON (ST_Geometry) to public;
  5487. ",
  5488. "f",
  5489. "
  5490. drop function SE_AsBSON (ST_Geometry);
  5491. ",
  5492. "f"
  5493. );
  5494. insert into sysbldobjdepends
  5495. (bld_id, obj_kind, obj_signature, obj_owner,
  5496. need_obj_kind, need_obj_signature, need_obj_owner)
  5497. values
  5498. (
  5499. "%SYSBLDNAME%",
  5500. 0, "asbson.sql",
  5501. "%SYSBLDUSER%",
  5502. 0, "types.sql",
  5503. "%SYSBLDUSER%"
  5504. );
  5505. insert into sysbldobjects
  5506. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5507. create_can_fail, drop_sql, drop_can_fail)
  5508. values
  5509. (
  5510. "%SYSBLDNAME%", 0, "api_interface.sql",
  5511. "%SYSBLDUSER%", 0,
  5512. "
  5513. create function SE_API_make_point() returns pointer
  5514. with (not variant, internal, handlesnulls)
  5515. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_point)'
  5516. language c;
  5517. create function SE_API_make_linestring() returns pointer
  5518. with (not variant, internal, handlesnulls)
  5519. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_linestring)'
  5520. language c;
  5521. create function SE_API_make_polygon() returns pointer
  5522. with (not variant, internal, handlesnulls)
  5523. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_polygon)'
  5524. language c;
  5525. create function SE_API_make_multipoint() returns pointer
  5526. with (not variant, internal, handlesnulls)
  5527. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_multipoint)'
  5528. language c;
  5529. create function SE_API_make_multilinestring() returns pointer
  5530. with (not variant, internal, handlesnulls)
  5531. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_multilinestring)'
  5532. language c;
  5533. create function SE_API_make_multipolygon() returns pointer
  5534. with (not variant, internal, handlesnulls)
  5535. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_make_multipolygon)'
  5536. language c;
  5537. create function SE_API_length() returns pointer
  5538. with (not variant, internal, handlesnulls)
  5539. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_length)'
  5540. language c;
  5541. create function SE_API_generalize() returns pointer
  5542. with (not variant, internal, handlesnulls)
  5543. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_generalize)'
  5544. language c;
  5545. create function SE_API_output() returns pointer
  5546. with (not variant, internal, handlesnulls)
  5547. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_output)'
  5548. language c;
  5549. create function SE_API_geodesic_distance() returns pointer
  5550. with (not variant, internal, handlesnulls)
  5551. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_geodesic_distance)'
  5552. language c;
  5553. create function SE_API_getxy() returns pointer
  5554. with (not variant, internal, handlesnulls)
  5555. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_getxy)'
  5556. language c;
  5557. create function SE_API_union() returns pointer
  5558. with (not variant, internal, handlesnulls)
  5559. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_union)'
  5560. language c;
  5561. create function SE_API_operation_ph1() returns pointer
  5562. with (not variant, internal, handlesnulls)
  5563. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph1)'
  5564. language c;
  5565. create function SE_API_operation_ph2() returns pointer
  5566. with (not variant, internal, handlesnulls)
  5567. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph2)'
  5568. language c;
  5569. create function SE_API_operation_ph3() returns pointer
  5570. with (not variant, internal, handlesnulls)
  5571. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph3)'
  5572. language c;
  5573. create function SE_API_operation_ph4() returns pointer
  5574. with (not variant, internal, handlesnulls)
  5575. external name '$INFORMIXDIR/extend/%SYSBLDDIR%/spatial.bld(SE_API_operation_ph4)'
  5576. language c;
  5577. ",
  5578. "f",
  5579. "
  5580. drop function SE_API_make_point ();
  5581. drop function SE_API_make_linestring ();
  5582. drop function SE_API_make_polygon ();
  5583. drop function SE_API_make_multipoint ();
  5584. drop function SE_API_make_multilinestring ();
  5585. drop function SE_API_make_multipolygon ();
  5586. drop function SE_API_length ();
  5587. drop function SE_API_generalize ();
  5588. drop function SE_API_output ();
  5589. drop function SE_API_geodesic_distance ();
  5590. drop function SE_API_getxy();
  5591. drop function SE_API_union();
  5592. drop function SE_API_operation_ph1();
  5593. drop function SE_API_operation_ph2();
  5594. drop function SE_API_operation_ph3();
  5595. drop function SE_API_operation_ph4();
  5596. ",
  5597. "f"
  5598. );
  5599. insert into sysbldobjdepends
  5600. (bld_id, obj_kind, obj_signature, obj_owner,
  5601. need_obj_kind, need_obj_signature, need_obj_owner)
  5602. values
  5603. (
  5604. "%SYSBLDNAME%",
  5605. 0, "api_interface.sql",
  5606. "%SYSBLDUSER%",
  5607. 0, "types.sql",
  5608. "%SYSBLDUSER%"
  5609. );
  5610. insert into sysbldobjects
  5611. (bld_id, obj_kind, obj_signature, obj_owner, sequence, create_sql,
  5612. create_can_fail, drop_sql, drop_can_fail)
  5613. values
  5614. (
  5615. "%SYSBLDNAME%", 0, "sysbldregistered",
  5616. "%SYSBLDUSER%", 0,
  5617. "insert into sysbldregistered
  5618. (bld_id)
  5619. values
  5620. (
  5621. ""%SYSBLDNAME%""
  5622. );
  5623. ",
  5624. "f",
  5625. "delete from sysbldregistered
  5626. where bld_id = ""%SYSBLDNAME%"";
  5627. ",
  5628. "f"
  5629. );