I want to rasterize a polygon wich crosses 180E lon with gdal_rasterize.

Polygon example

The polygon is in the WGS84 projection. I used the following command:

gdal_rasterize -burn 1 -of GTiff -ot Byte -ts 1500 1500 in.shp out.tif

But resulting raster is looks like this:

enter image description here

I tried to use different projections etc. but result is the same.

How can i do it in 'proper' way? Any solution will be good, not just gdal.

  • 1
    Use a projection that makes sense for your domain, longlat is a weird non-projection and rarely has sensible properties for any application. – mdsumner Feb 19 '16 at 12:00
  • See gis.stackexchange.com/a/17987/664 for one way to approach this kind of problem. – whuber Feb 19 '16 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.