[CIG-SHORT] Spatialdb Question

Brad Aagaard baagaard at usgs.gov
Sun Jul 6 16:34:24 PDT 2008


Tabrez-

The SimpleDB spatial database supports two different types of queries: 
linear interpolation and nearest point. The "query_type" property of the 
SimpleDB sets the type and the default is "nearest" (see section 4.3.1 
of the user manual).

Cheers,
Brad

Tabrez Ali wrote:
> PyLith Users/Developers
> 
> I have a BC which I want to smoothly vary (linearly), say from a value 
> of 1.0 at coord (100.0, 0.0, 0.0) to 0.0 at coord (0.0, 0.0, 0.0).
> 
> The spatialdb file goes like this...
> 
> SimpleDB {
>   num-values = 3
>   value-names =  dof-0  dof-1  dof-2
>   value-units =  m  m  m
>   num-locs = 2
>   data-dim = 1
>   space-dim = 3
>   cs-data = cartesian {
>     to-meters = 1.0
>     space-dim = 3
>   }
> }  
> 100.0  0.0  0.0   1.0  0.00  0.0
>   0.0  0.0  0.0   0.0  0.00  0.0
> 
> 
> However in my results all the coords between (100.0, 0.0, 0.0) and 
> (50.0, 0.0, 0.0) have a value of 1.0 and all the coords between (50.0, 
> 0.0, 0.0) and (0.0, 0.0, 0.0) have a value of 0.0. So basically instead 
> of a smooth linear variation I seem to get a "step" sort of a profile.
> 
> What am I doing wrong?
> 
> Thanks
> T
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short



More information about the CIG-SHORT mailing list