dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29004
Shapefile Conversion to GML
Dear All,
I have been trying to convert my shapefile for Nigeria Admin0 and Admin1 levels into GML but its not working. I was able to convert the Admin2 at but I am wondering, what could be the problem here.
I also tried converting without copying the dbf file from the Admin file downloaded and it converted without errors but as soon as I tried to use it with the dbf file that i copied from the download admin file for Nigeria, I am unable to convert it.
Below is the response while trying to do that.
Regards,
Adedayo
C:\Users\aadeyomoye\Desktop\Mine\DHIS2 Academy\NGA Admin1 Optimized Shapefile>og
r2ogr -s_srs EPSG:14684 -t_srs EPSG:4326 -f GML NGA_adm1.gml NGA_adm1.shp
ERROR 6: EPSG PCS/GCS code 14684 not found in EPSG support files. Is this a val
id
EPSG coordinate system?
Failed to process SRS definition: EPSG:14684
C:\Users\aadeyomoye\Desktop\Mine\DHIS2 Academy\NGA Admin1 Optimized Shapefile>og
rinfo -al -so NGA_adm1.shp
INFO: Open of `NGA_adm1.shp'
using driver `ESRI Shapefile' successful.
Layer name: NGA_adm1
Geometry: Polygon
Feature Count: 38
Extent: (2.668431, 4.270418) - (14.680070, 13.892010)
Layer SRS WKT:
(unknown)
ID_0: Integer (9.0)
ISO: String (3.0)
NAME_0: String (75.0)
ID_1: Integer (9.0)
NAME_1: String (75.0)
VARNAME_1: String (150.0)
NL_NAME_1: String (50.0)
HASC_1: String (15.0)
CC_1: String (15.0)
TYPE_1: String (50.0)
ENGTYPE_1: String (50.0)
VALIDFR_1: String (25.0)
VALIDTO_1: String (25.0)
REMARKS_1: String (125.0)
Shape_Leng: Real (19.11)
Shape_Area: Real (19.11)
C:\Users\aadeyomoye\Desktop\Mine\DHIS2 Academy\NGA Admin1 Optimized Shapefile>og
r2ogr -f GML NGA_adm1.gml NGA_adm1.shp
ERROR 1: Error in fread() reading object of size 101852 from .shp file
ERROR 1: Error in fread() reading object of size 4872 from .shp file
ERROR 1: Error in fread() reading object of size 7032 from .shp file
ERROR 1: Error in fread() reading object of size 917484 from .shp file
ERROR 1: Error in fread() reading object of size 7592 from .shp file
ERROR 1: Error in fread() reading object of size 21800 from .shp file
ERROR 1: Error in fread() reading object of size 41080 from .shp file
ERROR 1: Error in fread() reading object of size 719100 from .shp file
ERROR 1: Error in fread() reading object of size 5048 from .shp file
ERROR 1: Error in fread() reading object of size 10424 from .shp file
ERROR 1: Error in fread() reading object of size 4152 from .shp file
ERROR 1: Error in fread() reading object of size 5352 from .shp file
ERROR 1: Error in fread() reading object of size 4520 from .shp file
ERROR 1: Error in fread() reading object of size 2728 from .shp file
ERROR 1: Error in fread() reading object of size 2968 from .shp file
ERROR 1: Error in fread() reading object of size 9160 from .shp file
ERROR 1: Error in fread() reading object of size 11704 from .shp file
ERROR 1: Error in fread() reading object of size 7112 from .shp file
ERROR 1: Error in fread() reading object of size 13656 from .shp file
ERROR 1: Error in fread() reading object of size 11976 from .shp file
ERROR 1: Error in fread() reading object of size 12568 from .shp file
ERROR 1: Error in fread() reading object of size 19960 from .shp file
ERROR 1: Error in fread() reading object of size 44344 from .shp file
ERROR 1: Error in fread() reading object of size 11288 from .shp file
ERROR 1: Error in fread() reading object of size 18648 from .shp file
ERROR 1: Error in fread() reading object of size 21624 from .shp file
ERROR 1: Error in fread() reading object of size 62728 from .shp file
ERROR 1: Error in fread() reading object of size 5256 from .shp file
ERROR 1: Error in fread() reading object of size 11880 from .shp file
ERROR 1: Error in fread() reading object of size 5864 from .shp file
ERROR 1: Error in fread() reading object of size 965796 from .shp file
ERROR 1: Error in fread() reading object of size 9544 from .shp file
ERROR 1: Error in fread() reading object of size 19160 from .shp file
ERROR 1: Error in fread() reading object of size 7384 from .shp file
ERROR 1: Error in fread() reading object of size 8968 from .shp file
ERROR 1: Error in fread() reading object of size 7592 from .shp file
C:\Users\aadeyomoye\Desktop\Mine\DHIS2 Academy\NGA Admin1 Optimized Shapefile>og
r2ogr -t_srs EPSG:4326 -f GML NGA_adm1.gml NGA_adm1.shp
Can't transform coordinates, source layer has no
coordinate system. Use -s_srs to set one.
BlackBerry: 3114F90C
Phone: 08028851441, 08035560463
emails: deemoyes@xxxxxxxxx, addyraph@xxxxxxxxx
Yahoo IM: deemoyes
Facebook: pharael
twitter:pharaell
Follow ups