← Back to team overview

dhis2-devs team mailing list archive

Re: Possible issue with GML import

 

Halvdan, quick fix. Points should never have more than one set of brackets.

On Tue, Mar 24, 2015 at 12:01 PM, Jason Pickering <
jason.p.pickering@xxxxxxxxx> wrote:

> Hi there.
>
> I am using the GML importer to import coordinates.
>
> Here is a snippet of the GML I am importing
>
>  <gml:featureMember>
>     <ogr:OpenDemolandHealthFacilities fid="OpenDemolandHealthFacilities.4">
>       <ogr:geometryProperty><gml:Point
> srsName="EPSG:4326"><gml:coordinates>-45.046450667490049,30.904516454945856</gml:coordinates></gml:Point></ogr:geometryProperty>
>       <ogr:Name>Crow Site</ogr:Name>
>       <ogr:NAME_1>Bird</ogr:NAME_1>
>       <ogr:Region>Animal</ogr:Region>
>       <ogr:Country>Demoland</ogr:Country>
>     </ogr:OpenDemolandHealthFacilities>
>   </gml:featureMember>
>
> This seems to import fine, but on the database side, I see this
>
>  Crow Site               | [[-45.0465,30.9045]]
>
> Note, the double square brackets. The GIS says there are no valid
> coordinates.
>
> When I replace these double brackets with single ones
>
> Crow Site               | [-45.0465,30.9045]
>
> Things work OK. This is a 2.19 snapshot version, unsure of the revision.
>
> Is this an issue possibly with rev 18488?
>
> Regards,
> Jason
>
>
> --
> Jason P. Pickering
> email: jason.p.pickering@xxxxxxxxx
> tel:+46764147049
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References