[GRASS5] v.in.ogr with spatial

Dear developers,

I am trying to import some vector-datasets into GRASS via v.in.ogr. The
spatial switch does not work as expected, I guess.

My trys:
g.region -p
projection: 99 (Transverse Mercator)
zone: 0
datum: potsdam
ellipsoid: bessel
north: 5800710
south: 5788320
west: 3427050
east: 3444000

This is my default region, where the dataset fits inside. I only need
parts of this shape so I try to import only this giving the 4
corner-coordinates which include my needed features:

v.in.ogr -o dsn=PG:dbname=postgis layer=gruen
spatial=3436830,5794290,3439770,5796780 out=test_spatial

But after this all featuers including in the dataset were imported.

Is this the correct usage of the spatial switch ?!

Thanks for your help

  Stephan Holl

--
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

20:06:58 up 3:55, 1 user, load average: 0.02, 0.07, 0.16

Hi Stephan,

the spatial filter in v.in.ogr is fixed in CVS.

Cheers

Markus

On Wed, Mar 17, 2004 at 08:14:38PM +0100, Stephan Holl wrote:

Dear developers,

I am trying to import some vector-datasets into GRASS via v.in.ogr. The
spatial switch does not work as expected, I guess.

My trys:
g.region -p
projection: 99 (Transverse Mercator)
zone: 0
datum: potsdam
ellipsoid: bessel
north: 5800710
south: 5788320
west: 3427050
east: 3444000

This is my default region, where the dataset fits inside. I only need
parts of this shape so I try to import only this giving the 4
corner-coordinates which include my needed features:

v.in.ogr -o dsn=PG:dbname=postgis layer=gruen
spatial=3436830,5794290,3439770,5796780 out=test_spatial

But after this all featuers including in the dataset were imported.

Is this the correct usage of the spatial switch ?!

Thanks for your help

  Stephan Holl

--
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

20:06:58 up 3:55, 1 user, load average: 0.02, 0.07, 0.16

--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy

Hello Markus,

At Mon, 22 Mar 2004 16:31:36 +0100 Markus Neteler wrote:

the spatial filter in v.in.ogr is fixed in CVS.

thanks a lot for this faaast fix!
That's how it _should_ work :slight_smile: I will give it a try to make it work.

Gruß
  Stephan

--
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

16:42:47 up 1:56, 1 user, load average: 0.10, 0.06, 0.02