[Dhis2-users] 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: deemo...@yahoo.com, addyr...@yahoo.com Yahoo IM: deemoyes Facebook: pharael twitter:pharaell___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp
[Dhis2-users] I need help On setting up SMS on dhis
Please can someone help me set up SMS in DHIS2. ___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-users] I need help On setting up SMS on dhis
Hi Anthony, Can you please elaborate a little on what aspects of SMS you want to make use of? SMS is used for many things in DHIS 2, e.g. for data entry as well as many different types of notifications and other outgoing messages. What do you want to achieve with SMS? Ola -- 1. apr. 2014 15:34 skrev "Anthony Danso" følgende: > Please can someone help me set up SMS in DHIS2. > > ___ > Mailing list: https://launchpad.net/~dhis2-users > Post to : dhis2-users@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-users] [Dhis2-devs] Shapefile Conversion to GML
Well, it seems pretty clear from the logs. Failed to process SRS definition: EPSG:14684 Try looking here http://www.epsg-registry.org/ and this is not a valid projection. However, looking from the bounding box, it looks like it may be 4326 to begin with. Why do you think you need to use EPSG:14684 as the source projection? Regards, Jason On Tue, Apr 1, 2014 at 12:47 PM, Dayo Adeyomoye wrote: > 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:
Re: [Dhis2-users] DHIS2 Android analysis app
I´ve been playing around and everything went well. looks good!! congrats! On 20 March 2014 17:16, Simen Skogly Russnes wrote: > The source code is of course open source and currently located here if > anyone wants to have a look: > https://code.launchpad.net/~simernes/+junk/dhis-android-reporting > > -- > Date: Thu, 20 Mar 2014 15:56:27 +0100 > Subject: Re: [Dhis2-users] DHIS2 Android analysis app > From: riddynd...@gmail.com > To: kenneth.bortv...@gmail.com > CC: simen_russ...@hotmail.com; dhis2-users@lists.launchpad.net > > > Good, +1 Simen > > > 2014-03-20 15:31 GMT+01:00 Kenneth Børtveit : > > Good app! > Nice to have a portable dashboard :) > 20. mars 2014 16:26 skrev "Simen Skogly Russnes" < > simen_russ...@hotmail.com> følgende: > > Hi all, > > in relation to my studies I have developed an Android application that > enables easy access to Dashboards, messaging and interpretations. > > The app can be found on the Google Play Store under the name "DHIS2 > Analysis". > Direct link here: > https://play.google.com/store/apps/details?id=no.uio.inf5750.assignment3 > > It was released on March 1st, so it's still pretty new. The App is in a > beta stage at the moment, but it is definitely functional and might be > useful for example for easily accessing Dashboards on a tablet or a phone. > It connects to any DHIS2.13 + instance and supports multiple user accounts. > > Hopefully this is useful for someone. Feedback is appreciated. > > Regards, > Simen > > ___ > Mailing list: https://launchpad.net/~dhis2-users > Post to : dhis2-users@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp > > > ___ > Mailing list: https://launchpad.net/~dhis2-users > Post to : dhis2-users@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp > > > > > -- > Riddy NDOMA > Software Developer > *Skype:* riddyndoma, *G+:* riddyndoma, *FB:* riddy ndoma > *Twitter:* riddyndoma, *LinkedIn:* riddy ndoma > *Blog:* http://riddyndoma.blogspot.com/ > > Vous servir est mon désire (Serving you is my desire) > > ___ > Mailing list: https://launchpad.net/~dhis2-users > Post to : dhis2-users@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp > > ___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-users] I need help On setting up SMS on dhis
Ok, I assume these are aggregated values, as in number of cases of XXX? If so, I suggest you start by reading section 25.4 in the user documentation : http://www.dhis2.org/doc/snapshot/en/user/html/ch24s05.html And come back to this list if you have any questions. Ola -- 1. apr. 2014 16:26 skrev "Anthony Danso" følgende: > We want to use SMS for reporting of some cases in very remote areas in the > countrt.So in other words users will only report through SMS into Dhis2,the > cases of some diseases that were detected in their facilities. > On Apr 1, 2014, at 2:12 PM, Ola Hodne Titlestad wrote: > > Hi Anthony, > > Can you please elaborate a little on what aspects of SMS you want to make > use of? > > SMS is used for many things in DHIS 2, e.g. for data entry as well as many > different types of notifications and other outgoing messages. > > What do you want to achieve with SMS? > > Ola > -- > 1. apr. 2014 15:34 skrev "Anthony Danso" > følgende: > >> Please can someone help me set up SMS in DHIS2. >> >> ___ >> Mailing list: https://launchpad.net/~dhis2-users >> Post to : dhis2-users@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-users >> More help : https://help.launchpad.net/ListHelp >> > > ___ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp
Re: [Dhis2-users] [Dhis2-devs] Shapefile Conversion to GML
Thanks a lot Jason. I also tried converting without first trying to convert to 4326 knowing that it may already be in that projection. I noticed later on that This conversion worked if i didn't use the original dbf file that I downloaded with it. I mean it converted when I used the dbf file generated after working on it at mapshaper.org. As soon as I changed the dbf file to the one downloaded from the shapefile site, it produced the error. The dbf file might be bad though. I have downloaded another from a new site and hopefully it will work. Regards, Adedayo BlackBerry: 3114F90C Phone: 08028851441, 08035560463 emails: deemo...@yahoo.com, addyr...@yahoo.com Yahoo IM: deemoyes Facebook: pharael twitter:pharaell On Tuesday, April 1, 2014 3:19 PM, Jason Pickering wrote: Well, it seems pretty clear from the logs. Failed to process SRS definition: EPSG:14684 Try looking here http://www.epsg-registry.org/ and this is not a valid projection. However, looking from the bounding box, it looks like it may be 4326 to begin with. Why do you think you need to use EPSG:14684 as the source projection? Regards, Jason On Tue, Apr 1, 2014 at 12:47 PM, Dayo Adeyomoye wrote: 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:
Re: [Dhis2-users] [Dhis2-devs] Shapefile Conversion to GML
Hi Adedayo, If you need to modify attributes in the dbf file, you should only do this in a GIS software such as www.qgis.org - never modify the dbf on its own (eg in Excel) as this will result in a corrupt shapefile. It's also much easier to define the projection or to convert to a different projection in QGIS, and once you have your shapefile ready you can simply save it as a gml file. bram On 1 April 2014 17:47, Dayo Adeyomoye wrote: > Thanks a lot Jason. I also tried converting without first trying to > convert to 4326 knowing that it may already be in that projection. I > noticed later on that This conversion worked if i didn't use the original > dbf file that I downloaded with it. I mean it converted when I used the dbf > file generated after working on it at mapshaper.org. > > As soon as I changed the dbf file to the one downloaded from the shapefile > site, it produced the error. > > The dbf file might be bad though. I have downloaded another from a new > site and hopefully it will work. > > Regards, > > Adedayo > > BlackBerry: 3114F90C > Phone: 08028851441, 08035560463 > emails: deemo...@yahoo.com, addyr...@yahoo.com > Yahoo IM: deemoyes > Facebook: pharael > twitter:pharaell > On Tuesday, April 1, 2014 3:19 PM, Jason Pickering < > jason.p.picker...@gmail.com> wrote: > Well, it seems pretty clear from the logs. > > Failed to process SRS definition: EPSG:14684 > > Try looking here http://www.epsg-registry.org/ > > and this is not a valid projection. > > However, looking from the bounding box, it looks like it may be 4326 to > begin with. > > Why do you think you need to use EPSG:14684 as the source projection? > > Regards, > Jason > > > > On Tue, Apr 1, 2014 at 12:47 PM, Dayo Adeyomoye wrote: > > 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
Re: [Dhis2-users] [Dhis2-devs] Shapefile Conversion to GML
To add to Brams mail, I have had issues with MapShaper and the DBF's it produces. Normally, I just trash these, and use the original DBF from the unmodified shapefile. I am still not convinced it is a problem with the DBF though, as clearly the projection which you provided in the first conversion was not correct. Regards, Jason On Tue, Apr 1, 2014 at 5:00 PM, Bram Piot wrote: > Hi Adedayo, > > If you need to modify attributes in the dbf file, you should only do this > in a GIS software such as www.qgis.org - never modify the dbf on its own > (eg in Excel) as this will result in a corrupt shapefile. It's also much > easier to define the projection or to convert to a different projection in > QGIS, and once you have your shapefile ready you can simply save it as a > gml file. > > bram > > > On 1 April 2014 17:47, Dayo Adeyomoye wrote: > >> Thanks a lot Jason. I also tried converting without first trying to >> convert to 4326 knowing that it may already be in that projection. I >> noticed later on that This conversion worked if i didn't use the original >> dbf file that I downloaded with it. I mean it converted when I used the dbf >> file generated after working on it at mapshaper.org. >> >> As soon as I changed the dbf file to the one downloaded from the >> shapefile site, it produced the error. >> >> The dbf file might be bad though. I have downloaded another from a new >> site and hopefully it will work. >> >> Regards, >> >> Adedayo >> >> BlackBerry: 3114F90C >> Phone: 08028851441, 08035560463 >> emails: deemo...@yahoo.com, addyr...@yahoo.com >> Yahoo IM: deemoyes >> Facebook: pharael >> twitter:pharaell >> On Tuesday, April 1, 2014 3:19 PM, Jason Pickering < >> jason.p.picker...@gmail.com> wrote: >> Well, it seems pretty clear from the logs. >> >> Failed to process SRS definition: EPSG:14684 >> >> Try looking here http://www.epsg-registry.org/ >> >> and this is not a valid projection. >> >> However, looking from the bounding box, it looks like it may be 4326 to >> begin with. >> >> Why do you think you need to use EPSG:14684 as the source projection? >> >> Regards, >> Jason >> >> >> >> On Tue, Apr 1, 2014 at 12:47 PM, Dayo Adeyomoye wrote: >> >> 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 obje
Re: [Dhis2-users] [Dhis2-devs] Shapefile Conversion to GML
Yes, just use the shp and shx files from Mapshaper, not DBF. Just make a copy of your original DBF and rename it to the same as the output from Mapshaper. On Tue, Apr 1, 2014 at 9:35 PM, Jason Pickering wrote: > To add to Brams mail, I have had issues with MapShaper and the DBF's it > produces. Normally, I just trash these, and use the original DBF from the > unmodified shapefile. > > I am still not convinced it is a problem with the DBF though, as clearly > the projection which you provided in the first conversion was not correct. > > Regards, > Jason > > > > On Tue, Apr 1, 2014 at 5:00 PM, Bram Piot wrote: > >> Hi Adedayo, >> >> If you need to modify attributes in the dbf file, you should only do this >> in a GIS software such as www.qgis.org - never modify the dbf on its own >> (eg in Excel) as this will result in a corrupt shapefile. It's also much >> easier to define the projection or to convert to a different projection in >> QGIS, and once you have your shapefile ready you can simply save it as a >> gml file. >> >> bram >> >> >> On 1 April 2014 17:47, Dayo Adeyomoye wrote: >> >>> Thanks a lot Jason. I also tried converting without first trying to >>> convert to 4326 knowing that it may already be in that projection. I >>> noticed later on that This conversion worked if i didn't use the original >>> dbf file that I downloaded with it. I mean it converted when I used the dbf >>> file generated after working on it at mapshaper.org. >>> >>> As soon as I changed the dbf file to the one downloaded from the >>> shapefile site, it produced the error. >>> >>> The dbf file might be bad though. I have downloaded another from a new >>> site and hopefully it will work. >>> >>> Regards, >>> >>> Adedayo >>> >>> BlackBerry: 3114F90C >>> Phone: 08028851441, 08035560463 >>> emails: deemo...@yahoo.com, addyr...@yahoo.com >>> Yahoo IM: deemoyes >>> Facebook: pharael >>> twitter:pharaell >>> On Tuesday, April 1, 2014 3:19 PM, Jason Pickering < >>> jason.p.picker...@gmail.com> wrote: >>> Well, it seems pretty clear from the logs. >>> >>> Failed to process SRS definition: EPSG:14684 >>> >>> Try looking here http://www.epsg-registry.org/ >>> >>> and this is not a valid projection. >>> >>> However, looking from the bounding box, it looks like it may be 4326 to >>> begin with. >>> >>> Why do you think you need to use EPSG:14684 as the source projection? >>> >>> Regards, >>> Jason >>> >>> >>> >>> On Tue, Apr 1, 2014 at 12:47 PM, Dayo Adeyomoye wrote: >>> >>> 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 obj
Re: [Dhis2-users] [Dhis2-devs] Shapefile Conversion to GML
Oh thanks Bram and Jason. I actually used the original DBF from the unmodified Shaprefile and even without trying to use any projection but doing a direct conversion into GML, it still have the same issues. What if I just use the original shapefile, dbf and shx instead of trying to work it down at mapshaper.org. Does this have a an effect on the database and GIS? Thanks a lot BlackBerry: 3114F90C Phone: 08028851441, 08035560463 emails: deemo...@yahoo.com, addyr...@yahoo.com Yahoo IM: deemoyes Facebook: pharael twitter:pharaell On Tuesday, April 1, 2014 4:05 PM, Jason Pickering wrote: To add to Brams mail, I have had issues with MapShaper and the DBF's it produces. Normally, I just trash these, and use the original DBF from the unmodified shapefile. I am still not convinced it is a problem with the DBF though, as clearly the projection which you provided in the first conversion was not correct. Regards, Jason On Tue, Apr 1, 2014 at 5:00 PM, Bram Piot wrote: Hi Adedayo, > > >If you need to modify attributes in the dbf file, you should only do this in a >GIS software such as www.qgis.org - never modify the dbf on its own (eg in >Excel) as this will result in a corrupt shapefile. It's also much easier to >define the projection or to convert to a different projection in QGIS, and >once you have your shapefile ready you can simply save it as a gml file. > > >bram > > > > >On 1 April 2014 17:47, Dayo Adeyomoye wrote: > >Thanks a lot Jason. I also tried converting without first trying to convert to >4326 knowing that it may already be in that projection. I noticed later on >that This conversion worked if i didn't use the original dbf file that I >downloaded with it. I mean it converted when I used the dbf file generated >after working on it at mapshaper.org. >> >> >>As soon as I changed the dbf file to the one downloaded from the shapefile >>site, it produced the error. >> >> >>The dbf file might be bad though. I have downloaded another from a new site >>and hopefully it will work. >> >> >>Regards, >> >> >>Adedayo >> >>BlackBerry: 3114F90C >>Phone: 08028851441, 08035560463 >>emails: deemo...@yahoo.com, addyr...@yahoo.com >>Yahoo IM: deemoyes >>Facebook: pharael >>twitter:pharaell >>On Tuesday, April 1, 2014 3:19 PM, Jason Pickering >> wrote: >> >>Well, it seems pretty clear from the logs. >> >> >>Failed to process SRS definition: EPSG:14684 >> >> >> >>Try looking here http://www.epsg-registry.org/ >> >> >>and this is not a valid projection. >> >> >>However, looking from the bounding box, it looks like it may be 4326 to begin >>with. >> >> >>Why do you think you need to use EPSG:14684 as the source projection? >> >> >>Regards, >>Jason >> >> >> >> >> >>On Tue, Apr 1, 2014 at 12:47 PM, Dayo Adeyomoye wrote: >> >>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 obje
Re: [Dhis2-users] [Dhis2-devs] Shapefile Conversion to GML
Hi Knust, That is exactly what I did. Same thing I did for the Level 2 of this shape file and it worked. BlackBerry: 3114F90C Phone: 08028851441, 08035560463 emails: deemo...@yahoo.com, addyr...@yahoo.com Yahoo IM: deemoyes Facebook: pharael twitter:pharaell On Tuesday, April 1, 2014 4:16 PM, Knut Staring wrote: Yes, just use the shp and shx files from Mapshaper, not DBF. Just make a copy of your original DBF and rename it to the same as the output from Mapshaper. On Tue, Apr 1, 2014 at 9:35 PM, Jason Pickering wrote: To add to Brams mail, I have had issues with MapShaper and the DBF's it produces. Normally, I just trash these, and use the original DBF from the unmodified shapefile. > > >I am still not convinced it is a problem with the DBF though, as clearly the >projection which you provided in the first conversion was not correct. > > >Regards, >Jason > > > > > >On Tue, Apr 1, 2014 at 5:00 PM, Bram Piot wrote: > >Hi Adedayo, >> >> >>If you need to modify attributes in the dbf file, you should only do this in >>a GIS software such as www.qgis.org - never modify the dbf on its own (eg in >>Excel) as this will result in a corrupt shapefile. It's also much easier to >>define the projection or to convert to a different projection in QGIS, and >>once you have your shapefile ready you can simply save it as a gml file. >> >> >>bram >> >> >> >> >>On 1 April 2014 17:47, Dayo Adeyomoye wrote: >> >>Thanks a lot Jason. I also tried converting without first trying to convert >>to 4326 knowing that it may already be in that projection. I noticed later on >>that This conversion worked if i didn't use the original dbf file that I >>downloaded with it. I mean it converted when I used the dbf file generated >>after working on it at mapshaper.org. >>> >>> >>>As soon as I changed the dbf file to the one downloaded from the shapefile >>>site, it produced the error. >>> >>> >>>The dbf file might be bad though. I have downloaded another from a new site >>>and hopefully it will work. >>> >>> >>>Regards, >>> >>> >>>Adedayo >>> >>>BlackBerry: 3114F90C >>>Phone: 08028851441, 08035560463 >>>emails: deemo...@yahoo.com, addyr...@yahoo.com >>>Yahoo IM: deemoyes >>>Facebook: pharael >>>twitter:pharaell >>>On Tuesday, April 1, 2014 3:19 PM, Jason Pickering >>> wrote: >>> >>>Well, it seems pretty clear from the logs. >>> >>> >>>Failed to process SRS definition: EPSG:14684 >>> >>> >>> >>>Try looking here http://www.epsg-registry.org/ >>> >>> >>>and this is not a valid projection. >>> >>> >>>However, looking from the bounding box, it looks like it may be 4326 to >>>begin with. >>> >>> >>>Why do you think you need to use EPSG:14684 as the source projection? >>> >>> >>>Regards, >>>Jason >>> >>> >>> >>> >>> >>>On Tue, Apr 1, 2014 at 12:47 PM, Dayo Adeyomoye wrote: >>> >>>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