[FWTools] help

indira ilanza at ceis.cujae.edu.cu
Mon Nov 6 08:15:01 EST 2006



-----Mensaje original-----
De: fwtools-bounces at lists.maptools.org
[mailto:fwtools-bounces at lists.maptools.org] En nombre de
fwtools-request at lists.maptools.org
Enviado el: Saturday, November 04, 2006 12:00 PM
Para: fwtools at lists.maptools.org
Asunto: FWTools Digest, Vol 25, Issue 2

Send FWTools mailing list submissions to
	fwtools at lists.maptools.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.maptools.org/mailman/listinfo/fwtools
or, via email, send a message with subject or body 'help' to
	fwtools-request at lists.maptools.org

You can reach the person managing the list at
	fwtools-owner at lists.maptools.org

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.
      (DanielL.White at dot.state.fl.us)
   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: DanielL.White at dot.state.fl.us
Subject: [FWTools] Daniel L White is out of the office.
To: fwtools at lists.maptools.org
Message-ID:
	
<OF3AFF9412.7E928653-ON8525721B.005DA7A7-8525721B.005DA7A7 at dot.state.fl.us>
	
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
954-658-2596.



------------------------------

Message: 2
Date: Fri, 03 Nov 2006 12:25:41 -0500
From: Frank Warmerdam <warmerdam at pobox.com>
Subject: Re: [FWTools] ogr2ogr merging a directory of shapefiles into
	one	shapefile
To: David Fawcett <david.fawcett at gmail.com>
Cc: fwtools at lists.maptools.org
Message-ID: <454B7B95.40301 at pobox.com>
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? 

David,

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
attributes.

Let me know if this doesn't work.

Best regards,
-- 
---------------------------------------+------------------------------------
--
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



------------------------------

_______________________________________________
FWTools mailing list
FWTools at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/fwtools


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
http://www.cujae.edu.cu/eventos/convencion


More information about the FWTools mailing list