Transcript
REPORT FOR
DELIVERABLE D4.2 1
1 INTRODUCTION Th is r ep o rt pr ov i de s a n ov e rv i ew o f t he t ec hn ica l c ha ra ct er i st i cs an d fu n ct i on a lit y o f del iv e ra ble D 4. 2 “ We b P r oce s si ng Se rvi ce s” . It s p ur p o se i s t o p r ovi de a s ho rt i nt r od u ct i on t o t he ZO O - P roj ect s oft wa re a nd t o pr es ent t he m ajo r f u nct i o na lit i es a n d im p r ovem ent s i nt r o d uce d by t h e P ub li caM u nd i pr oje ct . Th e
r ea der
is
e n co u ra ge d
to
v is it
t he
s oft wa re’ s
re po sit o ry
(ht t p s:// git h u b.c om / P ub lic a M u nd i ) t o re ceiv e:
U p-t o- da t e
v e r si o ns
of t he
so ft war e,
al o ng
wit h d oc um ent at i on
t ar get e d t o dev el o pe r s
Det a ile d in f or m a t i o n re ga r di ng al l deve l op m e nt e f fo rt (c om m it s , act iv it y , is s ue s )
I nst r uct io n s
re ga r di n g
t he
i n st allat io n
of
t he
s oft war e
a nd
it s
de pe nd en cie s
2
2 ENHANCMENTS OF THE WPS PLATFORM 2.1 GENERAL ENHANCMENTS Th e
re lea se
1 .5. 0
of
Z OO - Pr oje ct
wa s
pu bl is he d
on
J uly
3 rd
2 01 5,
int ro d uc in g v a ri o u s im po rt a nt u pdat es int o t he Z OO - Ke rn el im pl em ent at i o n an d i nt o t he Z OO - Cl ien t a s pa rt o f W o rk P ack age 4 ( W P 4 ). Th e fi r st m a j or up da t e of t he Z O O -K er ne l w as t h e int r od u ct i o n of t h e W P S 2. 0
s u pp o rt
in cl u di n g
t he
Di sm is s
ext e n sio n.
Fu rt he rm or e,
a not he r
com p o ne nt wa s im pr o v ed in t h is r elea se: t h e ZO O -C lie nt , a Jav aS cri pt A P I whi c h ca n be u se d f r om a cl ie nt t o i nt e rac t i n an ea sy m a n ne r wit h W PS se rve r s. T he A P I wa s u pd a t e d t o s u pp o rt W P S 2. 0. Ad dit i o na ll y , so m e W P S 2. 0 i s s ue s r eg ar di n g t h e m et a dat a in he rit anc e an d cat al o gi ng ca pa bil it y
we re t a ck le d w it h t he P r oce s s P r of ile s Re gi st ry
im pl em e nt a t i o n. T hi s im pl em e nt at i o n al s o can b e us ed wit h W P S 1. 0 a s im pl em e nt e d by Z O O - Ke rn el. T h e m et a dat a in he rit a nc e d oe s n ot d epe n d o n t he ve r si on o f W PS; n ev ert he le ss , t h e in f o r m at io n a b out t he i n he rit a nc e i s on ly ex po se d t o W PS 2 .0. 0 c lie nt s. Wit h t he im pl em e nt a t io n o f m et a dat a in he rit a nc e, a new set o f W P S Serv ic es i s a v a i la b le, t a r get e d t o t h e r eg ist ry b r ow si n g, g ivi n g t he c apa bilit y t o t he W P S Cli ent t o b ro w se t he d if fe re nt lev els o f m et a dat a hi era r chy . Th e se rvi ce
f un ct i o n
( G e tFr o mR e gi str y )
pa r se s
t he
p r op er
m et a dat a
fi le
co r re sp o n di ng t o t he l ev el o f t h e m et a dat a ( g e ne ri c o r im p l em e nt at io n ) an d ret ur n s t he co r re sp o n d in g d oc um e nt ( G e ne ri c Pr o c ess or Pr o ce ss ). Fin ally, a s ha re d li br a ry ( li b_ z o o_ ser v i ce ) was i m p lem e nt e d pr o vidi n g t h e cap abi lit y t o m o di fy t he C AP I w it h o u t h av i n g t o r e b ui l d t h e wh ol e set o f se rvi ce s. T hi s wa y , w he n t he C A P I i s m o di fie d int er nal ly, t h er e a re n o pe rce ive d c ha n g es , m a kin g t h e m a int en an ce of a la r ge c olle ct i o n o f s erv ice s easi er .
A dm i ni st ra t or s
on ly
nee d
to
in s t all
t he
ne w
ve r si o n
of
the
li b_ z o o_s er v ic e t o t a ke a dv a nt a ge o f all t he ne w fu n ct i on de fi nit i o ns
2.2 SCALABILITY ENHANCEMENTS D ur in g
t h is
pe ri od ,
we
i de nt i fi ed
a nd
s uc ce s sf ul ly
a d dr es se d
sev era l
bot t le nec k s a f fect in g t he s ca la bi lit y o f t h e Z OO - Ke rn el. Th e m ost im po rt a nt b ot t le ne ck a f fect ed Get St at u s re q ue st s , i nt r o du ce d i n W PS 2 .0 , b ut a ls o a v a ila ble in W PS 1. 0 . I n p rev io u s v er si o n s of t he ZOO Ke rn el, t hi s m ec ha ni s m reli ed o n s pe ci fi c O pe rat i n g Sy st em ( OS ) re so u rc es (s har e d m em or y ) wh ic h ca n not be s ha re d bet wee n va ri o u s h ost s. I n fa ct , t hi s
3
ha rd l im it a t io n a l s o im pli ed a l o w n um be r o f co nc u r re nt re q ue st s e ven w he n ru n ni n g o n a sa m e h o st (O S lim it ). On ce t hi s lim it was rea c he d, t he ZO O Ke rn el c o nt i n ue d t o a c cep t i nc om i n g re qu est s, b ut t h e c lie nt c o ul d not ha ve acce s s t o t he st a t u s o f a se rv i ce r u nn in g a sy nc h ro n o us ly. Th is b ot t le ne ck wa s t a ckle d by re w rit i n g t h e co de ha n d lin g a sy n ch r on o u s re qu est s , a nd by a dd i ng t h e ca p abi lit y t o u se t he f ile sy st em o r a dat a ba se bac ke nd o n w hic h t h e Z OO -Ke r nel r elie s f o r all t he c o nc u rr en c y ha nd li ng . Th e n ew im pl em e nt a t i on wa s m a de pu bl icly availa ble i n t he 1.5 .0 r elea se of t he ZO O - Pr oj e ct . Th is ne w Z OO -Ke r nel rele a s e a d d re s se s o n e m o re bot t len ec k: t h e se co n d ver si o n o f W PS i nt r o du ce d t he Di sm is s re qu est , w hi ch s h o ul d pe rm it t he W PS c lie nt t o re qu e st t h e se rv e r t o st op t h e ru n ni n g se rvi ce , a n d re m ov e any t e m p o ra r y o r re s ult i n g file s cr eat e d du ri ng t h e exe cut io n o f a se rvi ce ru n ni n g a s y n c hr o no u s ly . It wa s p rev io u sly o b ser ve d t hat f or t he G et St at us re qu est s , o nl y o ne h o s t wa s a ble t o ef fe ct ive ly st o p t he r un ni n g se r vice a n d t o r em o ve t h e f ile s c r ea t ed by t he W PS se r vice (t he h ost wh ic h e ff ect i vely exec ut e s t h e Se rv ic e ). Fu rt he r, we i nt r od u ce d a n ew im plem e nt at i on of t h e Z OO - Ke rn el whe re all t he a sy nc h r on o us r eq u est s pa ss t h r ou g h a R ab b it M Q m es sa g in g s ys te m , t h us givi n g t he ca pa bil it y t o t he Z OO -Ke r nel t o b e m or e re st r ict i ve i n t he way it acce pt s ne w se rv i ce s . A s a r es ult , t he o nly lim it i n t he nu m b er o f asy nct h on o u s re q ue st s t ha t c a n be exe cut ed c om e s f r om t h e n um be r o f pr o ce ss t he O S s u p po rt s. A n ot her is s ue we a d d re ss ed co n c er ne d t he pa rs in g o f a ll se rv i ce co n fi gu ra t io n fi le s fo r eve ry Get Cap ab ilit i es re q ue st . Th is p r oce s s w a s v e ry i nt e n sive f or t he ZOO - Ke rn el, a n d opt i m ize d by cre at i ng a m et a da t a c a t a lo g w hic h ca c he s m et adat a i n f orm at i on du ri n g t he ZOO- Ke rn el la un c h t i m e. As a re su lt , t he ke rn el n ow a ct s a s a st an da lo ne se rve r . It st art s b y pa r si ng all t he Z C FG f ile s, t he lo ca t i o n wh er e t h e s pe ci fi c se rvi ce m et adat a i s st ore d, an d t he n fo rk t he pr o ce s s by a n um b er of t im e s de fi ne d i n t he m a in co n fi gu ra t io n fi le o f t he s erv er , cre at i ng t wo d if fe re nt p o ol s of se rve r in st a nce s. T he fir st p o ol u se s a UN I X d om ai n s oc ket w he re a ll t he sy n c hr o n o us re q ue st s a re f or wa rd ed t o A pa che . Th e sec o n d po ol ha n dle s asy nc h ro n o us re q ue st s, whi c h a re fo rw ar d ed t o t he Ra b bit M Q m es sa ge qu eu e . On ce a ll t he se rv i ce co n fi gu rat io n fi le s ( ZC FG fi le s) ar e pa rs ed, t h eir m et adat a be co m e a v a i la bl e i n t h e m et a dat a re gi st r y f or all i n st a nc es o f t h e ZOO- Ke rn el , t h u s s pe edi n g u p t he Get Ca p abil it ie s an d De sc ri b eP r oce s s re qu est s. I n a sim il a r m a n ne r, t he Ex ec ut e re q ue s t s us e t h e ca ch ed m et adat a in fo rm at io n by rem ov in g t he lat en cy o f p ar si n g t h e m et a dat a file s . A s
4
pr es ent ed ea rl ier , a t t h e i nit ia liz a t i o n st e p, t h e ZO O -K er ne l will f o rk a ce rt ai n nu m b er of t im es . O ne p o ol o f se rv er s wil l be u se d t o h an dl e sy nc h ro n o us re qu est s a n d a not he r po ol f o r a s yn ch r o no u s re qu est s. I n a sit uat i o n w he re a se rve r r es p on si bl e f o r a n a sy n ch r on o u s re q ue st fa il s f o r a ny rea s on , t he m ain ZO O -K er ne l w ill no t ice t ha t t he f o rke d in st a n ce di sa p pea re d an d wil l cre at e a ne w in st a n ce t o m a ke su re t hat t h e nu m b er of r un ni n g in s t anc es i s t he s am e wit h t h e n um be r de fi ne d i n t he c o nf ig ur at i on file . An ot he r im p o rt a nt i m pr ov em e nt i s im pr ov e d r es il ie n c y , i n ca se t he m ai n se rve r i n st a nce i s re st a rt e d . A W PS re q ue st i s rem ove d f ro m t he q u eue o nly whe n t he se rv ic e r u n wa s c om p l et e , n o m at t er i f t h e s erv ice r u n s u cce s s fu lly or fail ed . Ev e n a ft e r a re bo ot , t he s erv er w ill be ab le t o ru n all t he r eq ue st s whi c h a re st il l p re se nt i n t he qu eu e. M o re ov er, t he Ra bb it M Q q ue u es ca n b e acce s se d by v a ri o u s ho st s, s o w he n a h o st i s i n re b oot st at e, o ne c an expe ct t ha t a not he r h o st w ill t reat t h e re q u est s in t he q ue ue. I nd eed , i f t h e m ain Z OO - Ke r nel i s a ble t o c reat e ne w Ra b bit MQ qu eu es , we can st art u p m o re k er ne ls i n a m o de wh ic h i s ha n d lin g o nly t he syn c hr on o u s or asy ch r on o u s re q ue st s , s o we e n d u p wit h m ult i pl e ZOO -Ke r ne l i n st an ce s ru n ni n g on v a r io u s h o st s t ha t c an ac ce ss t he sam e m e s sa ge q u eue. T hi s lead s t o a m uc h im pr o v e d s ca l a bi lit y o f t h e Z OO - Ke rn el .
2.3 NEW WPS SERVICES Wit h t h e 1. 5. 0 v e r si on of t he Z O O - P roj ect a bi g n um be r o f new se r vice s a re rele as ed . O ne m a y n ot ice t ha t f o r t he n ew s ervi ce s, it is n ot r eq ui re d t o a d d an y S er vi c e s p ec if i c c o d e . Th e g oal o f t he Z O O - P roj ect , f ro m it s i nce pt i on , wa s t o s u p po rt a s m uc h ext er nal p ro g ra m s w it ho ut re qu ir in g t he e n d -u se r t o have k n ow le d ge of t he ext er nal pr o g ra m s. S o ra t he r t ha n d ir ec t l y i m ple m e nt i ng new se r vice s, we im pl em e nt e d n ew i nt e rn al c o d e t o s up p ort di re ct i nt e g rat i o n o f ext e rn al pr o g ram s. I n t hi s m a n ne r, w e fo cu se d in su p p ort in g t he O rf e oT o o lB o x ( O T B) w hic h i s m ain ly
de si g ne d
for
im a ge
p r o ce ss in g ,
but
a ls o
o f fe r s
s om e
ve ct or
op er at i on s. We de ci de d t o fi r st f o cu s o n O T B du e t o t he way it d eals wit h “OT B ap pl ica t io n s” , o f f eri n g a ca t al o gi n g sy s t em g ivi n g t he cap ab il it y t o a C pr o g ram t o br o ws e it s a ct iv a t e d ca pa bilit ie s. Obv io u sly , we d id n ot aba nd o n t he ZO O -K er ne l i nt e r n a l m e c ha ni sm s a n d it st il l re q ui re s t o ha ve acce s s t o co n fi gu ra t io n fi le s ( Z CF G) de fin in g t h e m e t adat a i nf o rm at i o n rel at ive t o a s pec if ic
se rv i ce.
In
t hi s
ca s e
t ho u gh ,
rat he r
t han
ex pec t in g
t he
5
adm i ni st ra t or t o ha v e t he re sp o n si bilit y t o w rit e t he co n fi g ur at io n file as it s ho ul d b e f or a ny new s er v ic e im p lem e nt at io n, t h e m et a dat a d ef in i t io n fi le s are a ut om a t i ca l ly ge ne ra t e d by a t o ol n am ed “ot b 2zc f g” w hi ch is n ow inc lu de d i n t he Z OO - P r oj e ct co de . On ce t h e Z CF G fil es a re g en er at e d, all t he co r re sp o n di ng a p pli ca t io ns ca n be ac ce s se d a s a W PS se rvi ce t h r ou g h t h e ZOO- Ke rn el se rv e r. T h ere is n o nee d f or any s ou rc e c o de f or t he O T B se rvic e t o r u n. I n st ea d o f l oa d i ng a sh a re d li b ra ry, t h e O T B s erv ice Ty pe i s s up p o rt e d in t he Z CFG file , m a ki n g t he Z O O -K er ne l be a war e t hat it sh o ul d loa d a n O T B ap pli cat i on .
T hi s
m e a n s,
t ha t
a ny
OT B
deve lo pe r
ca n
c reat e
a
new
ap pli cat i on a nd ex po s e it di re ct ly a s a W PS se rvi ce wit ho ut m o re e ff o rt t ha n ru n ni n g t he ot b2z cf g co nv e rt e r t o a ut om at i cally cre at e t h e c or re s po n di ng ZCF G fil e s. An im p ort a nt a d dit i o n t o t he O T B s u pp o rt is t o u se t he i nt e rn al O T B m ec ha ni sm s t o a cc es s t he r u n -t i m e in f or m a t io n o f a n O T B a p pli ca t io n. T he Get St at u s r eq ue st c a n pr ov i de u p -t o- dat e in f or m at i on o f t he on g oi n g se rvi ce s, s o t ho se a re u se d di rect ly f r om t h e Z OO - Ke rn el an d fo r war de d t o t he W PS s er v e r i nst a nc es . Th is way, m e s sag es p r ovi de d by t he OT B ap pli cat i on s ca n be a c ce ss ed t hr o u gh a ny W PS se rve r. Th e n ew O T B s up p o rt a d ds m o re t ha n 7 0 ne w se rv ice s t o t he ZO O -P ro ject . I n t h e f ol lo wi ng t a b le w e p re se nt a b rie f l i st of se rvi ce s a n d t h eir s ho rt de sc ri pt i o n . Service Name
Description
BandMath
Performs a mathematical operation on single band images
BinaryMorphologicalOperation
Performs morphological operations on an input image channel
BlockMatching
Performs block-matching to estimate pixelwise disparities between two images
ClassificationMapRegularization
Filters the input labeled image using Majority Voting in a ball shaped neighborhood.
CompareImages
Estimator between 2 images.
ComputeConfusionMatrix
Computes the confusion matrix of a classification
ComputePolylineFeatureFromImage
This application compute for each studied polyline, contained in the input VectorData, the choosen descriptors.
ConcatenateImages
Concatenate a list of images of the same size into a single multi-channel one.
DimensionalityReduction
Perform Dimension reduction of the input image.
EdgeExtraction
Computes edge features on every pixel of
6
the input image selected channel GrayScaleMorphologicalOperation
Performs morphological operations on a grayscale input image
KMeansClassification
Unsupervised KMeans image classification
KmzExport
Export the input image in a KMZ product.
LineSegmentDetection
Detect line segments in raster
Segmentation
Performs segmentation of an image, and output either a raster or a vector file. In vector mode, large input datasets are supported.
LSMSSegmentation
Second step of the exact Large-Scale MeanShift segmentation workflow.
MeanShiftSmoothing
Perform mean shift filtering
OpticalCalibration
Perform optical calibration TOA/TOC (Top Of Atmosphere/Top Of Canopy). Supported sensors: QuickBird, Ikonos, WorldView2, Formosat, Spot5, Pleiades, Spot6. For other sensors the application also allows to provide calibration parameters manually.
OrthoRectification
This application allows to ortho-rectify optical images from supported sensors.
Quicklook
Generates a subsampled version of an image extract
Rasterization
Rasterize a vector dataset.
Rescale
Rescale the image between two given values.
Smoothing
Apply a smoothing filter to an image
SOMClassification
Unsupervised Self Organizing Map image classification.
A fi r st e x a m ple of u si n g t h e O T B s u p po rt i s t o pe rf o rm an u n cl ass if ie d KM ea n s
on
a
sm a l l
ex t r a ct
of
a
La n d sat
8
s ce ne
by
in v oki n g
t he
KMe an s Cla s si fic a t i on se rv i ce. It re q ui re s t h e fo ll owi n g 3 i n put s p aram et er s t o be set :
in: t h e i n p ut i m a ge fi le out : t he o ut put im a ge pix e l t y pe ( ui nt 8 , u int 1 6, i nt 1 6 n, i nt 3 2, fl oat or do u ble ) nc: t he n um be r o f cla s se s
Usi n g t he f oll ow in g url we m a y inv ok e t he K m ean s Cla s si fi cat i on s ervi ce ; t he re su lt i ng R e s po n se D o cum ent wi ll p ro vid e ur ls t o ac ce s s t he re su lt i ng re so u rc es , wh ile t he re s ult i n g t i f f fi le i s s ho w n lat e r in t hi s d oc um e nt . http://localhost/cgibin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identif
7
ier=OTB.KmeansClassification&DataInputs=in=Reference@xlink:href=http ://geolabs.fr/dl/Landsat8Extract.tif;out=float;nc=25&ResponseDocumen t=out@mimeType=image/tiff@asReference=true;outmeans@mimeType=text/pl ain@asReference=true A sec o nd sa m ple u se ca se o f t he O T B su p po rt i s t o a p ply a n a ni s otr o p i c di ff us i o n s m oo t h fil t er t o t he s a m e ext ract of a La n ds at 8 s ce ne. F or t hi s pu r p os e, we wi ll i nv o k e t he Sm o ot h in g s erv ic e :
in: t h e i n p ut i m a ge fi le out : t he o ut p ut i m a ge pix e l t y pe t ype: t h e sm o ot h in g t y pe (m e an , ga u ss ian or ani di f ) t ype. m ea n. ra d iu s: t he sm oot hi n g ra di u s val u e i n pi xel s ( us ed i n ca s e t he m ea n t y p e wa s sel ect e d ) t ype.a ni di f.t im e st e p: t he A ni sot r o pic Di f fu si o n eq uat i o n t im e st e p (u se d in ca s e t he a ni di f t y pe w as sel ect e d ) t ype.a ni di f. n bit e r: t h e nu m b er of it e rat io n s w hic h c o nt r ol s t he se n sit iv it y o f t he c o nd uct a n ce t er m (u se d i n cas e t he a ni di f t y pe w as sel ect e d ).
To Ru n t he S m o ot hi n g se rv i ce, set t i n g t he t y pe.a ni di f.t im e st e p p ar am et e r t o 0. 1 a n d t y p e.a ni di f. nb i t er t o 5 , we m ay u se t h e fo ll owi n g u rl: http://localhost/cgibin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identif ier=OTB.Smoothing&DataInputs=in=Reference@xlink:href=http://geolabs. fr/dl/Landsat8Extract.tif;out=float;type=anidif;type.mean.radius=2;t ype.anidif.timestep=0.1;type.anidif.nbiter=5&RawDataOutput=out@mimeT ype=image/tiff B ot h i n put a n d re s ult o f t he fi rst a n d se co n d u se ca se s ar e p re se nt ed b el ow.
I np ut La nd sa t im a g e
KMe a n s C la ss if icat i o n
Sm o ot he d im a ge
Th e se co n d pla t f orm t ha t wa s i nt e g rat e d i n t he Z OO - Ke r nel i s S AG A -G IS. A s in t he O T B ca se , t he s pec if ic “SA GA” ser vic eTy pe wa s a dd ed t o t he o ne s s up p ort ed by Z OO p r o v idi n g t he Z OO - Ke r nel all t he i n f orm at i on n eed ed t o exec ut e a SA GA - GI S p r og ra m . I n fa ct , f o r s up p ort in g SAG A -G I S, m o re t ha n o ne exe cut ab le s a r e nee de d: s om e ut i lit ie s im p ort t he da t a i n t he fo rm at expe ct e d by SA GA - G IS an d t h en t he m ai n ex ec ut a ble h a n dle s t he m ai n p ro ce s si ng . In sim i lar way , on ce t h e
8
m ain a p pli ca t i o n h a s bee n ex ec ut e d, s om e exp o rt ut i lit i es a re ne ede d fr om SAG A -G IS t o ex p o rt t h e re su lt s i n t h e e xp ect ed f o rm at . Fo r i n st a nc e, w he n t h e d efa ult o ut p ut of a S AGA - G IS p ro g ram i s a s hap ef ile but t h e W PS cli ent a s ked f o r a G ML o ut put , t he n t he Z OO - Ke rn el w ill i nv oke t he spe ci fi c “i o_ og r ” c om m a n d t o re qu est t he o ut p ut t o be c o nv ert e d i nt o t he ex pe ct e d o ut p ut f o rm a t . I n ca se of a r ast er fil e, t he n t he “i o_ g d al” w ill be u sed . Th e i m p lem e nt e d SA G A -G IS s u p po rt o f fe rs m o re t ha n 3 0 0 se rvi c es de ali n g wit h b ot h R a st e r a n d Ve ct o r i n p ut a nd o ut p ut . Fu rt he rm or e, t he S AGA - G IS s up p ort i n Z O O o ff er s t he ca pa bilit y t o d eal w it h LA S file s , w hic h ar e a po p ula r t opi c no wa da y s. T he Z OO - Ke r nel ha s bee n m o di fi ed t o su p po rt t hi s kin d of fi le s d es pit e t he la ck o f an y st an da rd s ava ila ble y et f or it . Th e s up p ort of LA S fi le s in SA GA - GI S is us in g t h e o ld li bL AS li b rary w hi ch sh o ul d no w be re pla ce d by t h e new LA Sli b. Th e m et a d a t a fil es ( Z CF G ) c o r re sp o nd in g t o t he S AGA -G IS s e rvi ce s a re st ore d i n v a ri ou s di re ct o rie s co r re sp o n di ng t o t he l ib ra rie s i nc lu de d in t he SAG A -G IS so ft wa r e. T h ese li b ra rie s gi ve a cc e s s t o t he di ff ere nt ser vice s an d are i de nt i fi ed by a n u m be r. I n S AGA - G IS, w e m ay i nv oke a n a p pli cat i on by u sin g t he f oll ow in g c o m m a n d: “ sag a_c m d t a _li ght in g 0”, m ea ni n g c alli ng t he t oo l 0 fr om t he t a _li g h t in g ( ta s ta n d s f or T err ai n A na l ysi s ) li br ary , i n t he Z OO P roj ect , t hi s c or re s po n d t o a c ce s si ng t he SA GA.t a_ li ght in g. 0 se rvi c e. We br ief ly li st he re t he s u p po rt e d li br ar ie s.
gr id _a na ly si s gr id _ca lc ul u s gr id _f ilt e r gr id _t o ol s gr id _v i s ua li sa t i o n im a g ery _cl a s si fi ca t i o n im a g ery _p h ot og ra m m e t ry im a g ery _ se gm e nt a t i o n im a g ery _ sv m im a g ery _t o ol s po int cl o ud _t o ol s s ha p es _g ri d s ha p es _li ne s s ha p es _p oi nt s s ha p es _p ol y g o n s s ha p es _t o ol s sim _ec o sy st em s_ h ug g et sim _er o si o n sim _f ire _ sp rea di n g sim _hy d r olo gy st a t i st i c s_ gr id st a t i st i c s_k ri gi n g st a t i st i c s_ po int s
9
st a t i st i c s_ re gr es si o n t a_c ha nn el s t a_c om po u nd t a_hy d ro lo gy t a_li ght in g t a_m o r p hom et r y t a_p re p ro ce s so r t a_p r of ile s t a_sl o pe _st a bi lit y
Th e s pect r um c ov e re d by t he S AGA -G IS l ib ra rie s i s s o la rg e t hat it i s di ff ic ult t o su m m a riz e t hem . In t he f oll o win g, we p re se nt t h e re su lt i ng dat a set
of
SA GA. s h a pe s_ p oi nt s .1 2
a nd
SAG A. sha pe s_ p oi nt s.1 6
w hic h
co r re sp o n d re sp ect i v ely t o co nv exh ul l/m i nim um re ct a n gle e nv elo pe a nd Th ie ss en p oly go n s c o m p ut a t i on .
Co nv exh ul l a n d re ct a n gle e nv e lo pe
Th ie ss en p oly go n s
I n t he t h re e fi g ur es be llo w we p re se nt re s ult s o f ra st e r p r oce s si n g u sin g t he fo ll owi n g
S AGA -G IS
SAG A.h yr d ol og y .2 ,
se rv i ce s:
co m p ut i ng
S AGA .li g ht n in g. 0 , c at c hm e nt
ar ea s
c om p ut i ng and
hil ls ha de,
SAG A.t in_t o ol s. 1
ge ne rat i n g T ria ng le I r r eg ula r Net wo rk ( T IN ).
Hill s ha d e
Ca t c hm ent a rea s
T IN e dg es
Ad dit i o na ll y , t he la st e nh a n cem ent t o t he WP S plat f orm w as t o i m p ro ve t he level o f su p p ort p r o v ide d f or GRA SS G I S . In it ial ly , it wa s p lan ne d t o int e g rat e di re ct ly GR A SS t o t he ZOO -Ke r nel but we d eci de d t o en h anc e t he
10
alrea dy a v a ila ble W PS -GR A SS - B ri d ge by givi ng it t he ca pa bil it y t o u p g rad e t o t he new st a ble GR A SS 7. Th e ol d W P S -GR ASS - B ri dg e co de r elie d o n a n ol d ve rs io n o f Py X B t o ge ne rat e Z C FG f ile s. So t h e fi rst go al wa s t o ge ne rat e t h e Z CF G fi le by a new m et ho d. T hi s re s ult e d i n t he p ub lic a t io n of a sp eci fi c sh ell sc ri pt deve lo pe d in c o nj un ct io n t o a n XS L t ra ns f or m at i on file w hi ch i s u se d t o ext ra ct rele v a nt m et a d a t a f r om t he D es c rib e P ro ce s s do c um e nt w hi ch ca n be ge ne rat e d f r om t he G R ASS a p pli cat i on s di r ect ly. By c om bi ni n g t he g en er ic opt io n --w p s- pr o ce ss - de sc ri pt i o n pr ovi de d b y GRA SS p r og ram s wit h t he XSL file , o ne i s a b le t o g ene ra t e t he c o rr es p o nd in g Z CF G fil e. Eve n if it i s po s si bl e t o ge ne ra t e a Z CF G file in div id ua lly f or a s pe ci fi c g ra s s c om m a n d, t he ZO O - P roj ect pr ov id es a sim ple s hel l s cr ip t w hi c h is a bl e t o ge n erat e t he ZCF G fil e s f or ev e ry se rv i ce. I n c ont ra st t o t h e p r ev io u s plat fo rm s su p po rt e d by t he ZO O -K er nel, t he GRAS S
im ple m e nt a t i on
d oe s
n ot
ex p o se
a ny
cat al og ue
of
pr o g ram s
availa ble w hi ch c a n b e u se d t o ge ne ra t e all t he ZC FG f ile s. S o t he im pl em e nt e d sc ri pt m et h od wil l sim ply ch ec k f or all c om m a nd s a v aila ble i n t he GR ASS bi na ry d ire ct o ry a nd w ill ge ne rat e t he c o rr es p o ndi n g Z CF G fil e. Th e Z CFG f ile s ge ne ra t ed by t he g ra ss 2z cf g t o ol t ak e i nt o ac c ou n t all t he availa ble opt io n s f o r i n st a lle d GR AS S p ro g ra m s. Th e W PS -GR ASS - Br id ge wa s in it ial ly m a d e t o w o rk wit h all t he W P S im pl em e nt a t i o n s. O u r en ha nc em e nt s o nly f oc u se d on t he ZO O -P r oje ct s up p ort a n d we ha v e n ot t e st e d ot h er W PS im plem ent at io n s. Th e sh ell sc ri pt c rea t e d t o ge ne ra t e t h e z c fg file s i s a vaila ble d ir ect l y fr om t he ZO O P roj ect re po sit o ry . T he gra s s2 zc f g t o ol s are not ava ila ble i n t he 1. 5. 0 rele as e, b ut t h ey w ill be i nt e g ra t e d i n a f ut u re rel ea se. T he g ras s 2 zcf g t o ol pr o d uce s hu n d re ds o f new m et a dat a f ile s fo r se rvic e s f o r v ect o r an d ra st e r pr o ce ss in g a n d i t p ro du ce s t h e re q ui re d p yt h on sc ri p t s f o r eac h GRA SS bi na ry. Th an ks t o t h e w o rk m a de wit hi n t hi s pe ri o d of t h e P ub lic aM u nd i pr oje ct , t he ZOO- P roj ect i nt e g ra t e d m o re se rvi ce s t ha n ever be f ore . T h os e se rvi ce s are inv oke d by t he Z OO - K er nel d ir ect ly t hr o u gh A P Is t ran s pa re nt ly, l ike OT B , SAG A -G IS a nd GR A SS . T hi rd p a rt y ap pl icat i on s ca n be int eg rat ed by u si n g t he Z C FG ge ne ra t or p re se nt e d i n t hi s se ct i on t o kee p t he li st o f se rvi ce s sy nc h ro niz ed w it h t he in st a ll ed s oft war e o n a p r od u ct i on sy st em .
11