0aa3b9ff63a2f11c594bd7d28c90e9122f599dcb,descarteslabs/services/raster.py,Raster,dlkeys_from_shape,#Raster#Any#Any#Any#Any#,56

Before Change



    def dlkeys_from_shape(self, resolution, tilesize, pad, shape):
        shape = as_json_string(shape)
        params = {
            "resolution": resolution,
            "tilesize": tilesize,
            "pad": pad,
            "shape": shape,
        }

        r = self.session.post("%s/dlkeys/from_shape" % (self.url), json=params, timeout=self.TIMEOUT)

        if r.status_code != 200:
            raise RuntimeError("%s: %s" % (r.status_code, r.text))

        return r.json()

    def dlkey_from_latlon(self, lat, lon, resolution, tilesize, pad):
        params = {
            "resolution": resolution,

After Change


        
        Deprecated. See dltiles_from_shape
        
        warnings.warn("dlkey methods have been renamed to dltile",
                      DeprecationWarning, stacklevel=2)
        return self.dltiles_from_shape(resolution, tilesize, pad, shape)

    def dlkey_from_latlon(self, lat, lon, resolution, tilesize, pad):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 16

Instances


Project Name: descarteslabs/descarteslabs-python
Commit Name: 0aa3b9ff63a2f11c594bd7d28c90e9122f599dcb
Time: 2017-04-11
Author: samskillman@gmail.com
File Name: descarteslabs/services/raster.py
Class Name: Raster
Method Name: dlkeys_from_shape


Project Name: descarteslabs/descarteslabs-python
Commit Name: 0aa3b9ff63a2f11c594bd7d28c90e9122f599dcb
Time: 2017-04-11
Author: samskillman@gmail.com
File Name: descarteslabs/services/raster.py
Class Name: Raster
Method Name: dlkeys_from_shape


Project Name: descarteslabs/descarteslabs-python
Commit Name: 43973f3f96a0395def94c80b956bf8bec7767636
Time: 2017-04-11
Author: samskillman@gmail.com
File Name: descarteslabs/services/raster.py
Class Name: Raster
Method Name: dlkeys_from_shape


Project Name: descarteslabs/descarteslabs-python
Commit Name: 0aa3b9ff63a2f11c594bd7d28c90e9122f599dcb
Time: 2017-04-11
Author: samskillman@gmail.com
File Name: descarteslabs/services/raster.py
Class Name: Raster
Method Name: dlkey_from_latlon


Project Name: descarteslabs/descarteslabs-python
Commit Name: 43973f3f96a0395def94c80b956bf8bec7767636
Time: 2017-04-11
Author: samskillman@gmail.com
File Name: descarteslabs/services/raster.py
Class Name: Raster
Method Name: dlkey_from_latlon