[GRASSLIST:4223] Re: Importing Vectors
Markus Neteler
neteler at itc.it
Tue Aug 6 08:09:43 EDT 2002
Hi,
maybe a workaround: Try to use "ogr2ogr" (part of GDAL):
http://www.remotesensing.org/gdal/
It allows for conversion of MapInfo to SHAPE:
ogr2ogr -f "ESRI Shapefile" out.shp in.mif
Then
v.in.shape out.shp ...
I am not sure about the status of v.in.mif, it may be weak.
Good luck,
Markus
PS: OGR Vector Formats
http://gdal.velocet.ca/projects/opengis/ogrhtml/ogr_formats.html
On Tue, Aug 06, 2002 at 04:50:54PM +1000, Gordon Keith wrote:
> I have some regions defined in MapInfo I am trying to read into grass.
>
> v.in.mif gives segmentation faults (5.0pre4) so I am trying to use
> v.in.ascii.
>
> It is telling me:
> ERROR: Can't read ascii file header
>
>
> The file has the following header:
> ORGANIZAITON:
> DIGIT DATE:
> DIGIT NAME:
> MAP NAME: from Mapinfo MIF file
> MAP DATE:
> MAP SCALE: 0
> OTHER INFO:
> ZONE: 0
> WEST EDGE: 130
> EAST EDGE: 151
> SOUTH EDGE: -38
> NORTH EDGE: -30
> MAP THRESH: 0
> VERTI:
>
> Many of the fields I have left blank, as I am not sure what is required.
>
> Does anyone know which fields are required and what values they should
> have?
>
> I'm working in lat/lon coordinates, and the boundaries I have given
> encompass all the data.
>
> Thanks in advance
> Gordon
> --
>
> Gordon Keith
> Programmer/Data Analyst
> Marine Acoustics
> CSIRO Marine Research
> http://www.marine.csiro.au
>
> "There is no reason anyone would want a computer in their home."
> - Ken Olson, President & Founder, Digital Equipment Corporation
More information about the grass-user
mailing list