Actually, small error in my example: pos elements should have lat and long separated by whitespace:
<gml:pos>-45.046450667490049 30.904516454945856</gml:pos 2015-03-24 14:05 GMT+01:00 Halvdan Grelland <[email protected]>: > By the way, here is the relevant quote from the GML Point Profile: > > "A Point is defined by a single coordinate tuple, with the coordinate > values being specified by the gml:pos property. Data instances compliant > with this profile shall use only the gml:pos property." > > 2015-03-24 13:57 GMT+01:00 Halvdan Grelland <[email protected]>: > >> The gml:Point element only supports gml:pos coordinate tuples (a single >> one, of course). The gml:coordinates element is expected to have multiple >> points, which is why it is parsed in that particular way. >> >> The only real bug on our part here is that we for some reason allow >> gml:Point to contain a gml:coordinates element with a single contained >> coordinate, thus being incorrectly output as seen in Jasons example. I >> realize we might have allowed this for a while, though, as the logics of >> this has remained unchanged by the recent GML importer rewrite. >> >> My suggestion is that we follow the standard GML point profile and remove >> support for gml:coordinates within gml:Point entirely. Jason, could you try >> with the following XML, please: >> >> <gml:featureMember> >> <ogr:OpenDemolandHealthFacilities >> fid="OpenDemolandHealthFacilities.4"> >> <ogr:geometryProperty><gml:Point >> srsName="EPSG:4326"><gml:pos>-45.046450667490049,30.904516454945856</gml:pos></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> >> >> Of course, If you feel otherwise let me know. >> >> Halvdan >> >> 2015-03-24 13:09 GMT+01:00 Jan Henrik Ă˜verland < >> [email protected]>: >> >>> Halvdan, quick fix. Points should never have more than one set of >>> brackets. >>> >>> On Tue, Mar 24, 2015 at 12:01 PM, Jason Pickering < >>> [email protected]> 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: [email protected] >>>> tel:+46764147049 >>>> >>>> _______________________________________________ >>>> Mailing list: https://launchpad.net/~dhis2-devs >>>> Post to : [email protected] >>>> Unsubscribe : https://launchpad.net/~dhis2-devs >>>> More help : https://help.launchpad.net/ListHelp >>>> >>>> >>> >> >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

