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)

gdal_svn_trunk_gdal_rasterize_check_srs.patch (2.1 KB ) - added by Even Rouault 16 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by warmerdam, 16 years ago

Cc: warmerdam added
Component: defaultUtilities
Keywords: gdal_rasterize added
Owner: changed from warmerdam to Mateusz Łoskot
Priority: normallow
Severity: normalminor

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.

comment:2 by Even Rouault, 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 ?

comment:3 by Mateusz Łoskot, 16 years ago

Status: newassigned

comment:4 by Mateusz Łoskot, 16 years ago

Milestone: 1.6.0
Resolution: fixed
Status: assignedclosed

Fixed in trunk (r15000).

Happy birthday to you...GDAL (_)? (_)? (_)? for the round 15000 :-)

Note: See TracTickets for help on using tickets.