[Qgis-user] Re:Newbie question - gml files

Alex Mandel tech_dev at wildintellect.com
Sun Jan 2 14:23:18 PST 2011


Let's try taking a couple steps back.

Which method did you use to install the QGIS? Standalone or OSGeo4W or
Source Compiled(which compiler)
Can you post a link to a sample GML file for others to test?

ogrinfo and ogr2ogr are tools to help test if the problem is with the
gml file. QGIS at it's core uses the same libraries to open gml files
and that's what makes it a good test.

Thanks,
Alex

On 01/02/2011 12:50 PM, Sam Vekemans wrote:
> Ok, i tried the big bad ogr2ogr.exe and got an error
> 
> http://picasaweb.google.com/lh/photo/jBGtPGH81IaE3YFb5Tf70A?feat=directlink
> 
> 
> And the link on the wiki is broken :(
> http://www.qgis.org/wiki/Ogr2ogr
> 
> Could anyone explain 'what' this problem actually is? ... is it the way that
> i am opening up the .gml file from qgis?
> I think that i need to set the project 'projection'  1st.   And i think i
> did that, setting it to 'NAD83 (CSRS) EPSG : 4617'
> so it says "+proj=longlat +ellps=GRS80 +no_defs"
> ...  the .shp file opens up with the right projection.
> 
> And apparently qgis 'should' be able to open up this .gml file without using
> ogr2ogr.exe
> 
> I think it's because i dont have postGISgrass or ArcGIS? installed, or
> perhaps it's some python library file which is not installed correctly?
> 
> Thanks,
> Sam
> 
> On Sun, Jan 2, 2011 at 11:44 AM, Andrea Peri <aperi2007 at gmail.com> wrote:
> 
>>> P.S, if anyone is bored, my task is rather simple.
>>> Download all of the canvec .gml files, then convert them to .shp format
>>> and save each map feature as a separate .shp file (province size)
>>
>>
>>
>>> ... then zip and upload it to some website, like mediafire.com or any other
>>
>>> file sharing site.
>>
>> Hi,
>>
>> you could try with gdal/ogr.
>>
>> I think the last version is capable to convert GML.
>>
>> ogr2ogr.exe -f "ESRI Shapefile" folder-result file.gml
>>
>>
>> Regards,





More information about the Qgis-user mailing list