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

RasterSymbolizer grid artifacts on reprojections #1035

Closed
Komzpa opened this issue Jan 17, 2012 · 3 comments
Closed

RasterSymbolizer grid artifacts on reprojections #1035

Komzpa opened this issue Jan 17, 2012 · 3 comments

Comments

@Komzpa
Copy link

Komzpa commented Jan 17, 2012

given: mapnik2 old trunk, SRTM geotiff, stylesheets with rastersymbolizer/colorizer, gdal datasource.

if projections aren't exactly the same, (even if their descriptions don't match which is the case when using nik2img standalone or tirex which resets the projection by itself), raster gets a grid of (probably) bad rounding.

screenshot:
http://latlon.org/~komzpa/screenshots/relief-mapnik-broken-reproj.png

@springmeyer
Copy link
Member

Would it be possible to post a reduced test case?

@Komzpa
Copy link
Author

Komzpa commented Jan 18, 2012

Well, sorry for not chopping it down too much, here is the stylesheet on screenshot above:

http://2.osmosnimki.ru/mapnik-ele-simple.xml

to reproduce, you can just drop entries for CleanTopo and planet_osm_line. To generate srtmm.xml, just take a tiff from http://gis-lab.info/data/srtm-tif/,

gdalwarp -s_srs "+proj=longlat" -t_srs "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over" -overwrite -r cubicspline sourcetiff.tif resulttiff.tif

after that, do:

gdalbuildvrt srtmm.xml *.tif

to add those to gdal virtual raster.

seems to me you can also get the same result without reprojecting tiffs to mercator but taking them as-is in epsg4326.

@springmeyer
Copy link
Member

closing, will address over at #1049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants