← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] Convert SHP to GML in Windows 7

 

Guy, I think you should convert using the latest version of QGIS (QGIS 8). you can donwload it from www.QGIS.org website.
Sincerelly.


Henri MOUNGUI


Le Jeudi 4 septembre 2014 0h29, Guy Ekani <constyekani@xxxxxxxx> a écrit :
 


Thank you sir, 


I converted the file with Qgis 1.0.2, but I get an error when importing. Can you tell me what is the error in the file below?
 
Sincerely,


========================= 
Guy 


<?xml version="1.0"
 encoding="utf-8" ?>
<ogr:FeatureCollection
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xsi:schemaLocation="http://ogr.maptools.org/ Country.xsd"
     xmlns:ogr="http://ogr.maptools.org/";
     xmlns:gml="http://www.opengis.net/gml";>
  <gml:boundedBy>
    <gml:Box>
      <gml:coord><gml:X>8.498749000000032</gml:X><gml:Y>1.652548000000138</gml:Y></gml:coord>
      <gml:coord><gml:X>16.19211500000012</gml:X><gml:Y>13.07806000000005</gml:Y></gml:coord>
    </gml:Box>
  </gml:boundedBy>                      
  <gml:featureMember>
    <ogr:Country> 
    <ogr:geometryProperty><gml:MultiPolygon><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>
    
    9............................
    8........................
    
    </gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogr:geometryProperty>
    </ogr:Country>
  </gml:featureMember>
</ogr:FeatureCollection>





Le Mardi 2 septembre 2014 17h34, Bram Piot <bram.piot@xxxxxxxxx> a écrit :
 


There are multiple ways to do this, the easiest of which is to install QGIS (www.qgis.org), open the shapefile and then save as gml. QGIS also allows you to easily transform projections, in case your shapefile is projected.

More info on handling boundary files in the documentation, though I'm not sure it's all up to date.

bram



On 2 September 2014 17:26, Guy Ekani <constyekani@xxxxxxxx> wrote:

Hi to all,
>
>
>Please How can I Convert SHP File to GML in Windows 7?
>
>
>Sincerely,
>
> 
>========================= 
>Guy 
>
>
>
>
>
>
>
>
>_______________________________________________
>Mailing list: https://launchpad.net/~dhis2-users
>Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~dhis2-users
>More help   : https://help.launchpad.net/ListHelp
>
>




_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

Follow ups

References