Many thanks for the quick reply, Even!<div><br></div><div>You're right, it seems to work with Shapefile - but not for the WFS reader (and own server) we are testing...</div><div><br></div><div>Below you find the GML output of our WFS source.</div>
<div><br></div><div>So is the "fault" in the WFS reader - or even in our WFS Response XML?</div><div><br></div><div>Yours, Stefan</div><div><br></div><div><br></div><div>Testing OpenPOIMap WFS Service</div><div>
--------------------------------------------------</div><div><br></div><div><div>Get all hostels of Switzerland from OpenStreetMap database ("tourism=hostel"). Response edited:</div></div><div> </div><div><div>GetCapabilities: <a href="http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E&SERVICE=WFS&REQUEST=GetCapabilities">http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E&SERVICE=WFS&REQUEST=GetCapabilities</a></div>
<div><div>Response => (...)</div></div><div><br></div><div>GetFeature: <a href="http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=pois&SRSNAME=EPSG:4326">http://openpoimap.ch/featureserver/workspace.cgi?key=HG4kFX2kEEqBSqvcswuh2E&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=pois&SRSNAME=EPSG:4326</a></div>
<div><br></div><div>Response => </div><div><wfs:FeatureCollection</div><div> xmlns:fs="<a href="http://example.com/featureserver">http://example.com/featureserver</a>"</div><div> xmlns:wfs="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>"</div>
<div> xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"</div><div> xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"</div><div> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</div>
<div> xsi:schemaLocation="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengeospatial.net//wfs/1.0.0/WFS-basic.xsd">http://schemas.opengeospatial.net//wfs/1.0.0/WFS-basic.xsd</a>"></div>
<div> </div><div> <gml:featureMember gml:id="-324390"></div><div> <fs:pois fid="-324390"></div><div> <fs:way></div><div> <gml:Point srsName="EPSG:4326"></div>
<div> <gml:coordinates decimal="." cs="," ts=" ">6.59728931318,46.5195096642</gml:coordinates></div><div> </gml:Point></div><div> </fs:way></div><div>
<fs:shop>None</fs:shop></div><div> <fs:amenity>None</fs:amenity></div><div> <fs:surface>None</fs:surface></div><div> <fs:street>None</fs:street></div><div>
...</div><div> </fs:pois></div><div> </gml:featureMember></div><div> ...</div><div></wfs:FeatureCollection></div></div><div><br></div><div><div><br><div class="gmail_quote">2013/4/21 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le dimanche 21 avril 2013 17:49:28, Stefan Keller a écrit :<br>
<div><div class="h5">> When trying to use ogr2ogr (ver. 1.9) to convert a Shapefile (geometry type<br>
> Polygon) to file geodatabase (FileGDB) I'm getting an error like "FGDB<br>
> layers cannot be created with a wkbUnknown layer geometry type.":<br>
><br>
> $ ogr2ogr -f filegdb out.gdb polygon.shp<br>
><br>
> When adding -nlt it seems to work:<br>
><br>
> $ ogr2ogr -f filegdb out.gdb polygon.shp -nlt POLYGON<br>
><br>
> This is to a) an usual OGR behavior, and b) a show stopper for my script<br>
> because I don't know before hand (and won't check with ogrinfo) what<br>
> geometry type the input source is. Seems like there is a problem in the<br>
> FileGDB driver.<br>
><br>
> Can anybody confirm and explain this bug?<br>
<br>
</div></div>Stefan,<br>
<br>
I don't confirm that behaviour with either 1.9.2 or 1.10.0. Conversion works<br>
fine for me without specifying -nlt. What is the geometry type reported by<br>
ogrinfo on polygon.shp ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Even<br>
</font></span></blockquote></div><br></div></div><div><br></div>