{"id":15568869,"url":"https://github.com/timwaters/gdal_rasterize_error","last_synced_at":"2025-10-30T00:10:56.128Z","repository":{"id":66706987,"uuid":"75185026","full_name":"timwaters/gdal_rasterize_error","owner":"timwaters","description":null,"archived":false,"fork":false,"pushed_at":"2016-11-30T13:01:01.000Z","size":463,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T12:29:39.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timwaters.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-30T12:30:17.000Z","updated_at":"2017-07-28T08:57:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcb940ed-7cb9-47ff-b9a3-682bae13b28d","html_url":"https://github.com/timwaters/gdal_rasterize_error","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwaters%2Fgdal_rasterize_error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwaters%2Fgdal_rasterize_error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwaters%2Fgdal_rasterize_error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timwaters%2Fgdal_rasterize_error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timwaters","download_url":"https://codeload.github.com/timwaters/gdal_rasterize_error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247103301,"owners_count":20884023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T17:21:17.290Z","updated_at":"2025-10-30T00:10:51.089Z","avatar_url":"https://github.com/timwaters.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"for: http://lists.osgeo.org/pipermail/gdal-dev/2016-November/045622.html\n[gdal-dev] Seg fault \u0026 error running gdal_rasterize on a non georeferenced raster\n\nI'm seeing an error running GDAL 1.11.3 on Ubuntu 16.04LTS and 2.10.\nThere was no error and it worked fine with GDAL 1.10.1 on Ubuntu\n14.04LTS.\n\nI see the error running gdal_rasterize utility and also in python.\n\ngdal_rasterize -i  -burn 17 -b 1 -b 2 -b 3 clipping.gml -l features masked.tif\n\ngdal_rasterize -i  -burn 17 -b 1 -b 2 -b 3 20.gml -l features treasure_island.tif\n\n\n\nERROR 1: Unable to compute a transformation between pixel/line\nand georeferenced coordinates for masked.tif\nThere is no affine transformation and no GCPs.\nSegmentation fault (core dumped)\n\nI have tried to assign the non georeferenced raster an SRS LOCAL_CS[\"arbitrary\"]\ngdal_translate -a_srs 'LOCAL_CS[\"arbitrary\"]' masked.tif\nmasked_ref.tif but got the same error when rasterizing.\n\nThe use case is for mapwarper.net where people can upload images and\ncreate clipping masks around the rectangular images (to remove borders\netc) before adding control points and geo referencing them. Ideally,\nI'd like to be able to keep the clipping on the unwarped images as\nit's easier for users e.g often just drawing a rectangle than doing it\non the warped ones with many vertices and having to re-do each time\nthe georeferencing is changed.\n\nIs this a new bug? The changelog didn't show anything new or changed\nfor gdal_rasterize from what I could see but perhaps I'm missing\nsomething obvious. Is there a workaround? Perhaps there's an\nImagemagick command that would do it?\n\n\n\n\ngdalinfo treasure_island.tif\nDriver: GTiff/GeoTIFF\nFiles: treasure_island.tif\nSize is 540, 514\nCoordinate System is `'\nImage Structure Metadata:\n  COMPRESSION=DEFLATE\n  INTERLEAVE=PIXEL\nCorner Coordinates:\nUpper Left  (    0.0,    0.0)\nLower Left  (    0.0,  514.0)\nUpper Right (  540.0,    0.0)\nLower Right (  540.0,  514.0)\nCenter      (  270.0,  257.0)\nBand 1 Block=540x5 Type=Byte, ColorInterp=Red\n  Overviews: 270x257, 135x129, 68x65, 34x33, 17x17, 9x9\nBand 2 Block=540x5 Type=Byte, ColorInterp=Green\n  Overviews: 270x257, 135x129, 68x65, 34x33, 17x17, 9x9\nBand 3 Block=540x5 Type=Byte, ColorInterp=Blue\n  Overviews: 270x257, 135x129, 68x65, 34x33, 17x17, 9x9\n\n\ngdal_rasterize -i  -burn 17 -b 1 -b 2 -b 3 20.gml -l features treasure_island.tif\nWarning : the output raster dataset has a SRS, but the input vector layer SRS is unknown.\nEnsure input vector has the same SRS, otherwise results might be incorrect.\nERROR 1: Unable to compute a transformation between pixel/line\nand georeferenced coordinates for treasure_island.tif.\nThere is no affine transformation and no GCPs.\n0Segmentation fault (core dumped)\n\n\n\npython ras.py \nERROR 1: Unable to compute a transformation between pixel/line\nand georeferenced coordinates for treasure_island.tif.\nThere is no affine transformation and no GCPs.\nSegmentation fault (core dumped)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwaters%2Fgdal_rasterize_error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimwaters%2Fgdal_rasterize_error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimwaters%2Fgdal_rasterize_error/lists"}