unix and linux commands - unix shell scripting

Authorizing Access to Dynamic Spatial-Temporal Data


 
Thread Tools Search this Thread
# 1  
Old 04-18-2008
Authorizing Access to Dynamic Spatial-Temporal Data

Authorizing access to individual data objects based on spatial and temporal references is a complex task. Read this case study to learn one feasible approach.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Dynamic Variable data problem

Hi, I am trying to call this variable declared globally STATE=`/opt/Mic*/bin/mstrctl -s IntelligenceServer gs | grep "state" | cut -f2 -d'<' | cut -f2 -d'>'` which extracts the status of a microstrategy server inside the loop. But once the value is assigned initially in the begining, it is not... (5 Replies)
Discussion started by: kavinmjr
5 Replies

2. Shell Programming and Scripting

Store data from dynamic website table

hi everybody, Asking for something that I´m not sure if it´s possible to implement. I hope be clear enough. Well, my issue is that I´m looking how to copy or extract a particular table content of a website. I get the content from a external feed (Iframe format), the content is updated every... (1 Reply)
Discussion started by: cgkmal
1 Replies

3. Shell Programming and Scripting

Parsing dynamic data from a command output

Hi people, I am writing a korn shell script, and one of the command gives an output something like below: release.label.2010.03.02 objects: /project/path/to/some/file_name.ksh /project/path/another/file_name01.dat I have to retrieve the file paths one by one & use them as... (9 Replies)
Discussion started by: kiwin1000
9 Replies

4. Shell Programming and Scripting

search and replace dynamic data in a shell script

Hi, I have a file that looks something like this: ... 0,6,256,87,0,0,0,1187443420 0,6,438,37,0,0,0,1187443380 0,2,0,0,0,10,0,1197140320 0,3,0,0,0,10,0,1197140875 0,2,0,0,0,23,0,1197140332 0,3,0,0,0,23,0,1197140437 0,2,0,0,0,17,0,1197140447 0,3,0,0,0,17,0,1197140543... (8 Replies)
Discussion started by: csejl
8 Replies

5. UNIX for Dummies Questions & Answers

Parsing XML dynamic data via awk?

I am trying to use a line of output in an XML file as input in another new XML file for processing purposes via a shell script. Since I am a newbie though, I'm not sure how to do this since the data is different everytime. I am using this technique with static data right now: echo -n "Running... (5 Replies)
Discussion started by: corwin43
5 Replies
Login or Register to Ask a Question
Data::Transformer(3pm)					User Contributed Perl Documentation				    Data::Transformer(3pm)

NAME
Data::Transformer - Traverse a data structure, altering it in place SYNOPSIS
use Data::Transformer; # A: SIMPLE USAGE: # trim extra whitespace from normal strings inside %data. my $trim = sub { local($_)=shift; $$_ =~ s/^s*//; $$_ =~ s/s*$//; }; my $t = Data::Transformer->new(normal=>$trim); $t->traverse(\%data); # B: MORE COMPLEX USAGE: # (a) uppercase all keys in all hashes contained in $data # and (b) convert any arrays to hashes: my $uc_hash = sub { my $h = shift; my @keys = keys %h; foreach (@keys) { my $uc = uc($_); if ($uc ne $_ && !exists($h->{$uc})) { $h->{$uc} = $h->{$_}; delete $h->{$_}; } elsif ($uc ne $_) { die "Bad key $_: '$uc' exists already"; } } }; my $ar_conv = sub { my %h = @{$_[0]}; return sub { \%h }; }; my $t = Data::Transformer->new( hash => $uc_hash, array => $ar_conv, node_limit => 500_000 ); eval { $t->traverse($data) }; warn "Could not complete transformation: $@" if $@; # C: NON-DESTRUCTIVE TRAVERSAL # You don't actually have to change anything... my $size = 0; my $t = Data::Transformer->new( normal => sub { $size+=length(${ $_[0] }) }, hash => sub { $size+=length($_) for keys %{ $_[0] } }, ); my $nodes = $t->tranverse(\%data); print "Number of nodes: $nodes "; print "Size of keys + values: $size "; # D: OBJECTS INSIDE A DATA STRUCTURE # Affect objects by using the class name as a key: my $t = Data::Transformer->new( 'My::Class' => sub { shift->set_foo('bar') } ); DESCRIPTION
Data type callbacks The basic idea is that you provide a callback subroutine for each type of data that you wish to affect or collect information from. The constructor, "new()", expects a hash with at least one of the following keys: * normal : used for normal, non-reference data * array : used for array references * hash : used for hash references * code : used for anonymous subroutines (coderefs) * scalar : used for scalar references * glob : used for globs (such as filehandle holders) The value in each case is a coderef representing the callback for the data type in question. The array and hash types are special in that they are traversed into. It is possible to affect objects inside the data structure by specifying a callback keyed to the name of the class they belong to. They are not automatically recursed into, however, even if they happen to be blessed hash or array references. Similarly, a scalar reference is not automatically traversed into, even if it may contain a reference to an arrayref or a hashref. To make the module traverse into scalar references, you need to return a coderef encapsulating a different data type in the scalar handler, thus changing them (and prompting a reiteration over that data point). This applies to objects as well. Additional option for the constructor node_limit: If an integer value for this is specified, it overrides the default node processing limit of 2**16. This cannot be set higher than 2**20-1. traverse() The traverse() method returns the number of nodes processed. This may be different from both the number of nodes in the actual data structure and the number of nodes after the transformation, for the following reasons: * Reiteration into a particular node may have occurred, which increments the node count. * Blessed references (objects) will not normally be iterated into, but are merely treated as leaves in the data structure. * The processing code passed to the constructor may well affect the number of nodes. Note on data type changes If you want to change a data type (for instance replace an array by a hash as in example B, above) you have to return a coderef from the callback for the original data type. This coderef encapsulates the replacement data for the node in question. After the node has thus been replaced, it is re-evaluated to apply any transformations you may have defined for the new data type. Be careful of potential infinite loops when doing this with more than one data type at a time or when replacing coderefs with other coderefs. Also, because of reiteration, complex changes of large data structures may require setting the node processing limit higher than the default. Note on circular references Data structures containing circular references should not cause problems. Data::Transformer will skip any node containing a reference which has already been processed. CAVEATS
It is not feasible to use this module for very large data structures. Accordingly, there is a hard node processing boundary of 2**20-1 (about 1 million); attempting to set the limit higher results in an immediate, fatal error. For the vast majority of cases, however, the default limit of 2**16 (about 65 thousand) should be more than enough. SEE ALSO
I am aware of two modules doing similar things. Check them out if this one does not fit your needs: o Data::Rmap by Brad Bowman o Data::Walk by Guido Flohr AUTHOR
Baldur Kristinsson <bk@mbl.is>, 2006 Copyright (c) 2006 Baldur Kristinsson. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2006-02-05 Data::Transformer(3pm)