Another option, if you really had to use .CSV as input would have been 
to use OGR's ogr2ogr utility (http://www.gdal.org/ogr/ogr2ogr.html), but 
that would be a bit more complicated than converting mif/mid using tab2tab:

1- Create a OGR Virtual DataSource to make your CSV file readable by OGR 
as a point layer, see http://www.gdal.org/ogr/drv_vrt.html

e.g. create a worms.vrt file like this:

<OGRVRTDataSource>
     <OGRVRTLayer name="worms">
         <SrcDataSource>worms.csv</SrcDataSource>
        <SrcLayer>worms</SrcLayer>
        <GeometryType>wkbPoint</GeometryType>
         <LayerSRS>WGS84</LayerSRS>
        <GeometryField encoding="PointFromColumns" x="easting" y="northing"/>
     </OGRVRTLayer>
</OGRVRTDataSource>


2- Use ogr2ogr to convert to .TAB, see http://www.gdal.org/ogr/ogr2ogr.html

e.g.

   ogr2ogr -f "MapInfo File" output.tab worms.vrt worms


I didn't test the examples above, just wrote them off the top of my 
head, but hopefully that gives you the idea.

As I wrote above, going MIF/MID -> TAB using tab2tab may be simpler if 
you can do that.

Daniel


stu_j.rm wrote:
> 
> 
> OK, so I read around the subject a bit and realised that the MIF/MID
> combination is perfect, as they're an ASCII representation of the
> MapInfo data.
> 
> I can now take my XML source, create the MIF/MID with XSLT, and feed
> the results into TAB2TAB to generate the MapInfo TAB file.
> 
> Hope this helps someone else...
> 
> Cheers
> Stuart
> 
> --- In [email protected] <mailto:mitab%40yahoogroups.com>, 
> "stu_j.rm" <[EMAIL PROTECTED]> wrote:
>  >
>  > Greetings List
>  >
>  > I'm looking for a utility which will convert a CSV file containing
>  > eastings and northings into a MapInfo TAB file, where those
>  > coordinates have been converted to point objects. I don't know if such
>  > a thing exists, but wonder whether MITAB will do the job.
>  >
>  > Any help is greatly appreciated.
>  >
>  > Regards
>  > Stuart Jones
>  >
> 
> 


-- 
Daniel Morissette
http://www.mapgears.com/




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/mitab/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to