Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raster colorizer example #1

Open
2 tasks
iperdomo opened this issue Dec 19, 2017 · 0 comments
Open
2 tasks

Raster colorizer example #1

iperdomo opened this issue Dec 19, 2017 · 0 comments
Assignees

Comments

@iperdomo
Copy link
Contributor

  • Colorize raster using gdal plugin
  • Colorize raster using postigs plugin
@iperdomo iperdomo self-assigned this Dec 19, 2017
iperdomo added a commit that referenced this issue Dec 20, 2017
iperdomo added a commit that referenced this issue Dec 20, 2017
iperdomo added a commit that referenced this issue Dec 20, 2017
iperdomo added a commit that referenced this issue Dec 20, 2017
- This code was possible thanks to a pairing session with @dlebrero

- We found that there is no need to convert the raster to Byte type
  if we use the band number in the datasouce configuration

  https://github.com/mapnik/mapnik/wiki/PgRaster

  band - integer - request for a specific raster band index (1-based).
  0 means to read all bands. Note that a band read from a single
  band raster gets interpreted as Grayscale if band=0 is specified
  while they retain their original value when explicitly referenced
  with the "band" parameter.
  This affects effectiveness of RasterColorizer:

  https://github.com/mapnik/mapnik/wiki/RasterColorizer

- We still need to test if the same behavior applies to a raster that
  has been reprojected to Web mercator (EPSG:3857) with gdalwarp

- We're using `pgraster` plugin. We need to double if this is the same
  plugin used in Windshaft or if it is `postgis`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant