Skip to content

Module rio_tiler.profiles

Image file profiles.

Variables

img_profiles

Classes

ImagesProfiles

class ImagesProfiles(

)

GDAL Image creation options.

ref: github.com/mapnik/mapnik/wiki/Image-IO#default-output-details.

Ancestors (in MRO)

  • collections.UserDict
  • collections.abc.MutableMapping
  • collections.abc.Mapping
  • collections.abc.Collection
  • collections.abc.Sized
  • collections.abc.Iterable
  • collections.abc.Container

Static methods

fromkeys

def fromkeys(
    iterable,
    value=None
)

Methods

clear

def clear(
    self
)

D.clear() -> None. Remove all items from D.

copy

def copy(
    self
)

get

def get(
    self,
    key,
    default=None
)

Like normal item access but return a copy of the key.

items

def items(
    self
)

D.items() -> a set-like object providing a view on D's items

keys

def keys(
    self
)

D.keys() -> a set-like object providing a view on D's keys

pop

def pop(
    self,
    key,
    default=<object object at 0x7fcad9f85150>
)

D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem

def popitem(
    self
)

D.popitem() -> (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

setdefault

def setdefault(
    self,
    key,
    default=None
)

D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

update

def update(
    self,
    other=(),
    /,
    **kwds
)

D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values

def values(
    self
)

D.values() -> an object providing a view on D's values

JPEGProfile

class JPEGProfile(
    data={},
    **kwds
)

JPEG creation options ref: www.gdal.org/frmt_jpeg.html.

Ancestors (in MRO)

  • rasterio.profiles.Profile
  • collections.UserDict
  • collections.abc.MutableMapping
  • collections.abc.Mapping
  • collections.abc.Collection
  • collections.abc.Sized
  • collections.abc.Iterable
  • collections.abc.Container

Class variables

defaults

Static methods

fromkeys

def fromkeys(
    iterable,
    value=None
)

Methods

clear

def clear(
    self
)

D.clear() -> None. Remove all items from D.

copy

def copy(
    self
)

get

def get(
    self,
    key,
    default=None
)

D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

items

def items(
    self
)

D.items() -> a set-like object providing a view on D's items

keys

def keys(
    self
)

D.keys() -> a set-like object providing a view on D's keys

pop

def pop(
    self,
    key,
    default=<object object at 0x7fcad9f85150>
)

D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem

def popitem(
    self
)

D.popitem() -> (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

setdefault

def setdefault(
    self,
    key,
    default=None
)

D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

update

def update(
    self,
    other=(),
    /,
    **kwds
)

D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values

def values(
    self
)

D.values() -> an object providing a view on D's values

PNGProfile

class PNGProfile(
    data={},
    **kwds
)

PNG creation options ref: www.gdal.org/frmt_png.html.

Ancestors (in MRO)

  • rasterio.profiles.Profile
  • collections.UserDict
  • collections.abc.MutableMapping
  • collections.abc.Mapping
  • collections.abc.Collection
  • collections.abc.Sized
  • collections.abc.Iterable
  • collections.abc.Container

Class variables

defaults

Static methods

fromkeys

def fromkeys(
    iterable,
    value=None
)

Methods

clear

def clear(
    self
)

D.clear() -> None. Remove all items from D.

copy

def copy(
    self
)

get

def get(
    self,
    key,
    default=None
)

D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

items

def items(
    self
)

D.items() -> a set-like object providing a view on D's items

keys

def keys(
    self
)

D.keys() -> a set-like object providing a view on D's keys

pop

def pop(
    self,
    key,
    default=<object object at 0x7fcad9f85150>
)

D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem

def popitem(
    self
)

D.popitem() -> (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

setdefault

def setdefault(
    self,
    key,
    default=None
)

D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

update

def update(
    self,
    other=(),
    /,
    **kwds
)

D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values

def values(
    self
)

D.values() -> an object providing a view on D's values

PNGRAWProfile

class PNGRAWProfile(
    data={},
    **kwds
)

PNG creation options ref: www.gdal.org/frmt_png.html.

Ancestors (in MRO)

  • rasterio.profiles.Profile
  • collections.UserDict
  • collections.abc.MutableMapping
  • collections.abc.Mapping
  • collections.abc.Collection
  • collections.abc.Sized
  • collections.abc.Iterable
  • collections.abc.Container

Class variables

defaults

Static methods

fromkeys

def fromkeys(
    iterable,
    value=None
)

Methods

clear

def clear(
    self
)

D.clear() -> None. Remove all items from D.

copy

def copy(
    self
)

get

def get(
    self,
    key,
    default=None
)

D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

items

def items(
    self
)

D.items() -> a set-like object providing a view on D's items

keys

def keys(
    self
)

D.keys() -> a set-like object providing a view on D's keys

pop

def pop(
    self,
    key,
    default=<object object at 0x7fcad9f85150>
)

D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem

def popitem(
    self
)

D.popitem() -> (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

setdefault

def setdefault(
    self,
    key,
    default=None
)

D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

update

def update(
    self,
    other=(),
    /,
    **kwds
)

D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values

def values(
    self
)

D.values() -> an object providing a view on D's values

WEBPProfile

class WEBPProfile(
    data={},
    **kwds
)

WEBP creation options ref: www.gdal.org/frmt_webp.html.

Ancestors (in MRO)

  • rasterio.profiles.Profile
  • collections.UserDict
  • collections.abc.MutableMapping
  • collections.abc.Mapping
  • collections.abc.Collection
  • collections.abc.Sized
  • collections.abc.Iterable
  • collections.abc.Container

Class variables

defaults

Static methods

fromkeys

def fromkeys(
    iterable,
    value=None
)

Methods

clear

def clear(
    self
)

D.clear() -> None. Remove all items from D.

copy

def copy(
    self
)

get

def get(
    self,
    key,
    default=None
)

D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

items

def items(
    self
)

D.items() -> a set-like object providing a view on D's items

keys

def keys(
    self
)

D.keys() -> a set-like object providing a view on D's keys

pop

def pop(
    self,
    key,
    default=<object object at 0x7fcad9f85150>
)

D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised.

popitem

def popitem(
    self
)

D.popitem() -> (k, v), remove and return some (key, value) pair

as a 2-tuple; but raise KeyError if D is empty.

setdefault

def setdefault(
    self,
    key,
    default=None
)

D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

update

def update(
    self,
    other=(),
    /,
    **kwds
)

D.update([E, ]**F) -> None. Update D from mapping/iterable E and F.

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

values

def values(
    self
)

D.values() -> an object providing a view on D's values