On Wed, May 07, 2003 at 03:35:42PM +0100, Paul Kelly wrote:
Well here is what I think of all those modules that use the coorcnv
library.
On Wed, 7 May 2003, Markus Neteler wrote:
> On Tue, May 06, 2003 at 07:28:19PM +0100, Paul Kelly wrote:
> > If we have a list of which modules that currently use coorcnv are going to be
> > kept in GRASS 5.1 (i.e. it is worthwhile updating them) I could maybe work
> > at changing them over to using proj instead, although it may take a while
> > to get round to them all.
>
> At time GRASS 5.1 is free of CC_ routines.
>
> I GRASS 5.0 I found:
> ./src/mapdev/v.apply.census/
> ./src/mapdev/v.in.tig.basic/
> ./src/mapdev/v.in.tig.lndmk/
Are these used regularly and do they work reliably? In GRASS 5.1 is there
a general vector import utility that would handle these formats like GDAL
for raster? Or maybe they should be fixed up. The comments from John
Gillette suggest they leave a lot to be desired.
There are v.in.ogr and v.out.ogr which support these formats:
http://gdal.velocet.ca/projects/opengis/ogrhtml/ogr_formats.html
+ GML which is not in above list
> ./src/mapdev/v.mkgrid/
> ./src/mapdev/v.mkquads/
Seem to perform a worthwhile function (generating vector grids) although I
can't see where they would be used. Maybe should be kept and fixed.
Yes, they may be interesting.
> ./src/imagery/i.tape.tm3/
Does r.in.gdal do the same thing as this?
Yep. And above i.tape.tm3 might be hopeless outdated. r.in.gdal
supports CEOS and LSAT FAST format (and more).
> ./src/misc/m.datum.shift/
> ./src/misc/m.gc2ll/cmd/
> ./src/misc/m.ll2gc/cmd/
> ./src/misc/m.ll2u/cmd/
> ./src/misc/m.region.ll/
> ./src/misc/m.tiger.region/
> ./src/misc/m.u2ll/
None of these operate on files in the GRASS database so I think they
should all be removed. cs2cs from PROJ.4 does the same thing as most of
them;
Yes, there is not much point in replicating cs2cs functionality.
m.tiger.region sounds like something similar to gdalinfo for vector
files; does such a program exist?
Yes: ogrinfo:
http://gdal.velocet.ca/projects/opengis/ogrhtml/ogr_utilities.html
so it's not needed (OGR supports TIGER).
> ./src/raster/r.in.dem/
This program seems not that ancient (date in 1996 given). Is the format it
handles not supported by r.in.gdal? Again I think import programs
shouldn't try to re-project data.
From it's README:
" Looking closer at the program and at the USGS DEM standard I found that
large parts of the header are actually supposed to be FORTRAN double
precision values. I'm surprised that r.in.dem works for anyone."
GDAL supports:
http://www.remotesensing.org/gdal/frmt_various.html#SDTS
> ./src/raster/r.in.ll/
This looks like it is very specific to a certain type of data import.
Almost seems to do the same thing as r.proj but I don't really understand
the man page.
Maybe also left to r.in.gdal?
> ./src/sites/s.datum.shift/
Isn't needed now s.proj can do datum shifts
ok
> ./src.contrib/NPS/r.in.utm/
Sounds like another specialised import/re-projection utility that isn't
needed now.
ok
> ./src.contrib/SCS/display/d.fix.ortho/
Description:
Shifts raster map to position specified by mouse
Is this useful? Might be and only uses coorcnv for reporting co-ordinates
in lat/long to user so would be easy to fix.
It's more dangerous than useful as it modifies the cell_header of a
raster file. With that module you can move raster images by mouse click.
But in a GIS that issue is probably better left to i.rectify and related
modules.
> ./src.contrib/SCS/vector/v.mkquads.scs/
Maybe just an older version of v.mkquads?
... or a "private" SCS version?
> ./src.contrib/SDTS/mapdev/v.out.sdts/
no idea
> ./src.garden/grass.hdf/hdf5/r.in.hdf/
r.in.gdal supports HDF much better, so r.in.hdf is not needed.
> ./src.garden/grass.tig.rim/v.in.tig.rim/
More specialised import/export utilities probably; are any of them really
needed or have they been replaced by something better.
RIM doesn't exist in GRASS any more.
Markus