[gdal-dev] ArcSDE: connection times too long

2011-04-12 Thread Duarte Carreira
Hi listers.

I'm seing a very long delay while connecting to ArcSDE. Even if I just do 
ogrinfo on a single layer I still have to wait a few minutes before I get 
anything back.

Any parameter I can use?

Thanks,
Duarte
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] ArcSDE: connection times too long

2011-04-12 Thread Frank Warmerdam

On 11-04-12 10:33 AM, Duarte Carreira wrote:

Hi listers.

I’m seing a very long delay while connecting to ArcSDE. Even if I just do
ogrinfo on a single layer I still have to wait a few minutes before I get
anything back.

Any parameter I can use?


Duarte,

The SDE driver docs at http://www.gdal.org/ogr/drv_sde.html says:

If the layer parameter is specified then the SDE driver is able to skip 
reading the summary metadata for each layer; skipping this step can be a 
significant time savings.


So try listing the layer of interest in the connection string.


  SDE:server,instance,database,username,password,layer

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


RE: [gdal-dev] ArcSDE: connection times too long

2011-04-12 Thread Duarte Carreira
Hi Frank.

I do that already:
ogrinfo -so -ro SDE:server,5151,,user,pdw user.featureclass

Notice that I separate the layer name with a blank space. Using a comma does 
not work for me (wonder if the docs are right on that??).

I still wait quite a bit. This is a mid-sized db, with some 1200 feature 
classes...

Duarte

-Mensagem original-
De: Frank Warmerdam [mailto:warmer...@pobox.com]
Enviada: terça-feira, 12 de Abril de 2011 15:47
Para: gdal-dev@lists.osgeo.org
Assunto: Re: [gdal-dev] ArcSDE: connection times too long

On 11-04-12 10:33 AM, Duarte Carreira wrote:
 Hi listers.

 I'm seing a very long delay while connecting to ArcSDE. Even if I just do
 ogrinfo on a single layer I still have to wait a few minutes before I get
 anything back.

 Any parameter I can use?

Duarte,

The SDE driver docs at http://www.gdal.org/ogr/drv_sde.html says:

If the layer parameter is specified then the SDE driver is able to skip
reading the summary metadata for each layer; skipping this step can be a
significant time savings.

So try listing the layer of interest in the connection string.


   SDE:server,instance,database,username,password,layer

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] ArcSDE: connection times too long

2011-04-12 Thread Frank Warmerdam

On 11-04-12 12:12 PM, Duarte Carreira wrote:

Hi Frank.

I do that already: ogrinfo -so -ro SDE:server,5151,,user,pdw
user.featureclass

Notice that I separate the layer name with a blank space. Using a comma does
not work for me (wonder if the docs are right on that??).

I still wait quite a bit. This is a mid-sized db, with some 1200 feature
classes...


Duarte,

In your case you are passing user.featureclass as the layer name to
ogrinfo telling it that you only want to report on that layer.  But
to avoid opening all layers, you should also include it in the connection
string.

eg.

ogrinfo -so -ro SDE:server,5151,,user,pdw,user.featureclass user.featureclass

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


RE: [gdal-dev] ArcSDE: connection times too long

2011-04-12 Thread Duarte Carreira
That never occurred to me!

Ok, so I measured 48secs sharp to get ogrinfo results, by including the 
featureclass name in the connection and after that too (like you pointed out).

Then got 45secs with just the name in the connection, and got all layers listed.

Don't know what to make of this...

Duarte


-Mensagem original-
De: Frank Warmerdam [mailto:warmer...@pobox.com]
Enviada: terça-feira, 12 de Abril de 2011 17:32
Para: Duarte Carreira
Cc: gdal-dev@lists.osgeo.org
Assunto: Re: [gdal-dev] ArcSDE: connection times too long

On 11-04-12 12:12 PM, Duarte Carreira wrote:
 Hi Frank.

 I do that already: ogrinfo -so -ro SDE:server,5151,,user,pdw
 user.featureclass

 Notice that I separate the layer name with a blank space. Using a comma does
 not work for me (wonder if the docs are right on that??).

 I still wait quite a bit. This is a mid-sized db, with some 1200 feature
 classes...

Duarte,

In your case you are passing user.featureclass as the layer name to
ogrinfo telling it that you only want to report on that layer.  But
to avoid opening all layers, you should also include it in the connection
string.

eg.

ogrinfo -so -ro SDE:server,5151,,user,pdw,user.featureclass user.featureclass

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev