[GRASS-dev] new GRASS georectifier for rasters and vectors

I’ve finished the new GRASS georectifier for the GIS Manager and committed it to the cvs.

It is pure TclTk for all graphics, with wrappers for the GRASS modules i.group, i.target, i.rectify, v.transform, and g.transform. So it doesn’t use or need x11.

Start out in the location/mapset you want to georectify INTO.

It is a comprehensive tool to georectify raster and vector maps. It will allow you to graphically click on a reference unrectified map (raster or vector) and a rectified map (of any kind) to create ground control points (GCP’s). You can also type them in by hand if you want, with full editing of any GCP and the option of having it used or not used in the final rectification.

It creates a group organization for vectors (using a file of VREF instead of REF) that parallels that created by i.group. So now any group can have a REF file of rasters and a VREF file of vectors to be georectified, using the same POINTS file. Or you can have separate groups for rasters and vectors. Your choice. Like i.rectify, it will batch rectify a group of vectors (e.g., layers from a DXF file).

Currently, i.rectify and v.transform work quite differently. It would be nice if both could read the same kind of files, use a similar group structure, and work like v.proj/r.proj in rectifying INTO the working location/mapset. So there there is considerable coding to make them appear to work alike and have a consistent interface throughout the georectifier.

It will also calculate forward and back projected error for each GCP and forward and backward RMS error for the group. Please give it a try and let me know what you think. Because it’s small, I’ve attached a copy here to save you the trouble of downloading. You can just drop it into your $GISBASE/etc/gm folder.

Thanks very much to Glynn Clements, who offered advice and created g.transform to calcuate GCP errors.

Michael


Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

(attachments)

georect.tgz (13.7 KB)

Michael Barton wrote:

I’ve finished the new GRASS georectifier for the GIS Manager and committed it to the cvs.

Sorry to be a bit dense, but how do I launch this ?

Moritz

It's not a stand-alone C-module, but a tcltk script. So it's in the file
menu of all recent cvs updates (over the past month).

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Moritz Lennert <mlennert@club.worldonline.be>
Date: Thu, 20 Jul 2006 16:44:21 +0200
To: Michael Barton <michael.barton@asu.edu>
Cc: grass5 <grass-dev@grass.itc.it>
Subject: Re: [GRASS-dev] new GRASS georectifier for rasters and vectors

Michael Barton wrote:

I¹ve finished the new GRASS georectifier for the GIS Manager and
committed it to the cvs.

Sorry to be a bit dense, but how do I launch this ?

Moritz

Michael Barton wrote:

>> I¹ve finished the new GRASS georectifier for the GIS Manager and
>> committed it to the cvs.
>
> Sorry to be a bit dense, but how do I launch this ?

It's not a stand-alone C-module, but a tcltk script. So it's in the file
menu of all recent cvs updates (over the past month).

How much work would be involved in making this usable as a stand-alone
Tcl/Tk program?

--
Glynn Clements <glynn@gclements.plus.com>

I don't think it's feasible. It depends on having gis.m running to click on
a georectified map in the mapcanvas display and needs bindings in
mapcanvas.tcl for this to work too.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Glynn Clements <glynn@gclements.plus.com>
Date: Fri, 21 Jul 2006 12:35:00 +0100
To: Michael Barton <Michael.Barton@asu.edu>
Cc: Moritz Lennert <mlennert@club.worldonline.be>, grass5
<grass-dev@grass.itc.it>
Subject: Re: [GRASS-dev] new GRASS georectifier for rasters and vectors

Michael Barton wrote:

I¹ve finished the new GRASS georectifier for the GIS Manager and
committed it to the cvs.

Sorry to be a bit dense, but how do I launch this ?

It's not a stand-alone C-module, but a tcltk script. So it's in the file
menu of all recent cvs updates (over the past month).

How much work would be involved in making this usable as a stand-alone
Tcl/Tk program?

--
Glynn Clements <glynn@gclements.plus.com>