classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view



-----Mensaje original-----
De: [hidden email]
[mailto:[hidden email]] En nombre de
[hidden email]
Enviado el: Saturday, November 04, 2006 12:00 PM
Para: [hidden email]
Asunto: FWTools Digest, Vol 25, Issue 2

Send FWTools mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FWTools digest..."

Today's Topics:

   1. Daniel L White is out of the office.
      ([hidden email])
   2. Re: ogr2ogr merging a directory of shapefiles into one
      shapefile (Frank Warmerdam)


Message: 1
Date: Fri, 3 Nov 2006 12:02:57 -0500
From: [hidden email]
Subject: [FWTools] Daniel L White is out of the office.
To: [hidden email]
<[hidden email]>
Content-Type: text/plain; charset=US-ASCII

I will be out of the office starting Tue 10/31/2006 and will not return
until Mon 11/06/2006.

I am currently out of the office until Monday, November 6th, and have no
access to emails. For emergencies please contact Peter Eugene at


Message: 2
Date: Fri, 03 Nov 2006 12:25:41 -0500
From: Frank Warmerdam <[hidden email]>
Subject: Re: [FWTools] ogr2ogr merging a directory of shapefiles into
        one shapefile
To: David Fawcett <[hidden email]>
Cc: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

David Fawcett wrote:

> I am sure that this is an obvious one, but I can't seem to figure out a
> syntax (as usual!).
> Is there a way to use ogr2ogr to take a directory of shapefiles and
> append their features into an existing shapefile? I have been playing
> with using directory names, -update -append, etc. and can't seem to find
> a solution.
> Let's say that:
> d:/myInDir/    is the input directory
> file_merge.shp is the target shapefile and it is sitting in
> d:/myInDir/output/  
> OR, do I get the opportunity to write a quick Python script to do it?


There is no way to do them all automatically, but you can do them one file
at a time with a command like:

  ogr2ogr -update -append myInDir\output\file_merge.shp  myInDir\abc.shp

You might need to add "-nln file_merge".

Of course, all the files have to have the same geometry type, and the same

Let me know if this doesn't work.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam,
[hidden email]
light and sound - activate the windows |
and watch the world go round - Rush    | President OSGeo,


FWTools mailing list
[hidden email]

End of FWTools Digest, Vol 25, Issue 2


XIII Convención Científica de Ingeniería y Arquitectura
28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
FWTools mailing list
[hidden email]