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