ThinkGeo.com    |     Documentation    |     Premium Support

PostgreSQL/PostGIS limitation?

Hello,


I've been wrking with the beta 2 on PostGIS 1.3.5 for PostgreSQL 8.3 and have noticed that i cannot load my layers from a View in the database, only raw Tables work. I get an error message that says "Object reference not set to an instance of the object".


I am really hoping that this is only because the functionality has not yet been implemented (beta). A major reason for geodatabases is the server side capabilities (indexing, data sub-sets) which lower the client's overheads to a great deal. Without the support for Views (maybe hopefully even being able to pass SQL parameters to the server) ... how disappointing it would be!


Can I be informed what the expected scope of functionality is (concerning PostgreSQL) for the final release?


-F



Fifi,


First, thanks for joining this forum, hope you enjoy learning and sharing here.


You are right that the current Beta only support getting data from a Table but a View. Here we recompiled a Postgre Extension for you which supports reading from a View, please replace the existing one and have another try. Let us know how you think about it and if it's good, we will involve it in the next version.


Thanks,


Ben


 



380-PostgreExtension.zip (11.4 KB)

Ben, 
  
 Thanks for the response. The new PostgreExtension worked. I am now able to render layers from Views in PostgreSQL. However I still have a problem. Running the ExecuteQuery function on a PostgreSqlFeatureLayer object yields an exception that says it is not possible to do that and that I should run a check on the CanExecuteQuery property. Is there another normal way to access the data behind the layer or this is another feature that will be in the final? 
  
 (FYI, I connected to the database as a fully privileged user) 
  
 Thanks a lot. 
  
 Fifi

Fifi, 
  
 We don’t support ExecuteQuery for PostGRE now and we will add this feature in the final release. Thanks for reminding!  
  
 Ben