2013-07-09 39 views
0

我可以GDAL庫讀我FileGDB(ArcGIS的10.1)(1.10)和SQL濾波數據集由FID讀ESRI FileGeoDataBase使用ogrinfo上日期字段ogrinfo/SQL濾波器

ogrinfo "...\test.gdb" -sql "SELECT edited FROM 'plz_simple_copy' WHERE fid = 1864" --debug on -dialect OGRSQL 

或這種方式,通過OBJECTID

ogrinfo "...\test\plz.gdb" "plz_simple_copy" -where OBJECTID=1864 

結果是:

using driver `FileGDB' successful. 
Layer name: plz_simple_copy 
Geometry: Multi Polygon 
..... 
plz (String) = 26452 
quelle (String) = osm 
osm_id (String) = -1187754 
edited (DateTime) = 2013/07/09 17:34:49 
Shape_Length (Real) = 0.401490815379519 
Shape_Area (Real) = 0.00612509834536042 

...但我需要的日期F到過濾數據ield「編輯」。 我嘗試了很多變化,例如

ogrinfo "...\test.gdb" "plz_simple_copy" -where edited = '2013/07/09 17:34:49' 
ogrinfo "...\test.gdb" "plz_simple_copy" -where edited = '2013-07-09 17:34:49'  
ogrinfo "...\test.gdb" "plz_simple_copy" -where "edited" = date '2013-07-09 17:34:49' 

..但我沒有得到它。 有人有一個想法如何解決這個問題?

從柏林 拉爾夫

+0

你在哪裏寫'ogrinfo'?在Visual Studio命令提示符下? @ralf – sepideh

回答