Opened 16 years ago
Closed 16 years ago
#1937 closed defect (fixed)
[PATCH] gdal_rasterize does not check that coordinates systems match
Reported by: | jcrepetto | Owned by: | Mateusz Łoskot |
---|---|---|---|
Priority: | low | Milestone: | 1.6.0 |
Component: | Utilities | Version: | 1.4.2 |
Severity: | minor | Keywords: | gdal_rasterize |
Cc: | warmerdam |
Description
When gdal_rasterize is used with a vector data file and a raster data file whose coordinate systems are different, gdal_rasterize does not complain. The result may be incorrect, and if the coordinate systems differ only slightly, the user may not notice the problem.
Attachments (1)
Change History (5)
comment:1 by , 16 years ago
Cc: | added |
---|---|
Component: | default → Utilities |
Keywords: | gdal_rasterize added |
Owner: | changed from | to
Priority: | normal → low |
Severity: | normal → minor |
comment:2 by , 16 years ago
Summary: | gdal_rasterize does not check that coordinates systems match → [PATCH] gdal_rasterize does not check that coordinates systems match |
---|
Here's a patch that adds the checking. Could be in 1.5.0, couldn't it ?
by , 16 years ago
Attachment: | gdal_svn_trunk_gdal_rasterize_check_srs.patch added |
---|
comment:3 by , 16 years ago
Status: | new → assigned |
---|
comment:4 by , 16 years ago
Milestone: | → 1.6.0 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fixed in trunk (r15000).
Happy birthday to you...GDAL (_)? (_)? (_)? for the round 15000 :-)
Note:
See TracTickets
for help on using tickets.
Agreed.
Mateusz, after the 1.5 release could you look into adding checking? If both the image and the vectors have a coordinate system the program should compare them (using OGRSpatialReference::IsSame()) and if they are reported by this as being different a warning should be issued but processing should continue.