Hi,<br><br><div class="gmail_quote">On Sun, Jan 2, 2011 at 2:23 PM, Alex Mandel <span dir="ltr"><<a href="mailto:tech_dev@wildintellect.com">tech_dev@wildintellect.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Let's try taking a couple steps back.<br>
<br>
Which method did you use to install the QGIS? Standalone or OSGeo4W or<br>
Source Compiled(which compiler)<br>
Can you post a link to a sample GML file for others to test?<br>
<br></blockquote><div><br>I used the download link from the <a href="http://qgis.org">qgis.org</a> website :)<br><a href="http://qgis.org/downloads/QGIS-OSGeo4W-1.6.0-14615-Setup-2.exe">http://qgis.org/downloads/QGIS-OSGeo4W-1.6.0-14615-Setup-2.exe</a><br>

... and that's the one that didn't open up.<br><br><a href="http://download.osgeo.org/qgis/win32/">http://download.osgeo.org/qgis/win32/</a><br><a href="http://download.osgeo.org/qgis/win32/QGIS-1.3.0-3-No-GrassSetup.exe">http://download.osgeo.org/qgis/win32/QGIS-1.3.0-3-No-GrassSetup.exe</a>   installed just fine<br>

<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
ogrinfo and ogr2ogr are tools to help test if the problem is with the<br>
gml file. QGIS at it's core uses the same libraries to open gml files<br>
and that's what makes it a good test.<br></blockquote><div><br>The .gml files are here<br><a href="http://ftp2.cits.rncan.gc.ca/pub/canvec/province_gml/nl/">http://ftp2.cits.rncan.gc.ca/pub/canvec/province_gml/nl/</a><br>

(all of these need to be turned to .shp files)<br><br>The program ogr2ogr.exe worked, using the simple instructions that  <span class="gI"><span class="gD" style="color: rgb(121, 6, 25);">aperi2007  provided<br><br>title big_bad_ogr2ogr<br>

cd\<br>d:<br>cd\try-gdal<br>pause<br>ogr2ogr.exe -f "ESRI Shapefile" d:\try-gdal NL_LX.gml<br><br></span></span>it took some time to number crunch, but it did make a whole bunch of .shp files :) ... accept the projection is still off.<br>

So i need to add "EPSG : 4617"   or some random 4 digit number that will work.<br><br>ogr2ogr.exe -f "ESRI Shapefile" -t_srs EPSG:4617 d:\try3-gdal NL_LX.gml<br><br>What i dont know is exactly which projection code to use or the prefix to use for it. <a href="http://www.gdal.org/ogr2ogr.html">http://www.gdal.org/ogr2ogr.html</a> assumes that the user already knows how to use the program :)<br>

... if i get this right then there is no need to mess with qgis :-)<br><br>cheers,<br>sam<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<br>
Thanks,<br>
<font color="#888888">Alex<br>
</font><div><div></div><div class="h5"><br>
On 01/02/2011 12:50 PM, Sam Vekemans wrote:<br>
> Ok, i tried the big bad ogr2ogr.exe and got an error<br>
><br>
> <a href="http://picasaweb.google.com/lh/photo/jBGtPGH81IaE3YFb5Tf70A?feat=directlink" target="_blank">http://picasaweb.google.com/lh/photo/jBGtPGH81IaE3YFb5Tf70A?feat=directlink</a><br>
><br>
><br>
> And the link on the wiki is broken :(<br>
> <a href="http://www.qgis.org/wiki/Ogr2ogr" target="_blank">http://www.qgis.org/wiki/Ogr2ogr</a><br>
><br>
> Could anyone explain 'what' this problem actually is? ... is it the way that<br>
> i am opening up the .gml file from qgis?<br>
> I think that i need to set the project 'projection'  1st.   And i think i<br>
> did that, setting it to 'NAD83 (CSRS) EPSG : 4617'<br>
> so it says "+proj=longlat +ellps=GRS80 +no_defs"<br>
> ...  the .shp file opens up with the right projection.<br>
><br>
> And apparently qgis 'should' be able to open up this .gml file without using<br>
> ogr2ogr.exe<br>
><br>
> I think it's because i dont have postGISgrass or ArcGIS? installed, or<br>
> perhaps it's some python library file which is not installed correctly?<br>
><br>
> Thanks,<br>
> Sam<br>
><br>
> On Sun, Jan 2, 2011 at 11:44 AM, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
><br>
>>> P.S, if anyone is bored, my task is rather simple.<br>
>>> Download all of the canvec .gml files, then convert them to .shp format<br>
>>> and save each map feature as a separate .shp file (province size)<br>
>><br>
>><br>
>><br>
>>> ... then zip and upload it to some website, like <a href="http://mediafire.com" target="_blank">mediafire.com</a> or any other<br>
>><br>
>>> file sharing site.<br>
>><br>
>> Hi,<br>
>><br>
>> you could try with gdal/ogr.<br>
>><br>
>> I think the last version is capable to convert GML.<br>
>><br>
>> ogr2ogr.exe -f "ESRI Shapefile" folder-result file.gml<br>
>><br>
>><br>
>> Regards,<br>
<br>
<br>
</div></div><div><div></div><div class="h5">_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></div></blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style><input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML">

</div>