[FWTools] table to ESRI shapefile

David Fawcett david.fawcett at gmail.com
Thu Mar 5 13:56:45 EST 2009


You could use the OGR python module in a pretty simple python script to do it.

http://trac.osgeo.org/gdal/wiki/GdalOgrInPython

David.

On Thu, Mar 5, 2009 at 12:21 PM, Greg Fiske <gfiske at whrc.org> wrote:
> Hello,
>
> I have a table where the first four rows define the XY points vertices of a
> (square) polygon, the next four rows define another polygon, and so on.
> Example:
>
> id      X     Y
> 1       57.482  6.08
> 1       56.866  6.206
> 1       56.761  5.693
> 1       57.376  5.566
> 2       60.734  1.119
> 2       60.123  1.249
> 2       60.014  0.729
> 2       60.625  0.598
> ...
>
> Is there an FTtools approach to making this table into an ESRI vector
> polygon shapefile?
>
> Thanks for any advice,
>
> Greg
>
>
> Greg Fiske
> The Woods Hole Research Center
> 149 Woods Hole Road
> Falmouth MA, 02540
> 508-540-9900x139
> gfiske at whrc.org
> http://whrc.org
>
>
>
> _______________________________________________
> FWTools mailing list
> FWTools at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/
>


More information about the FWTools mailing list