Edition: FME Oracle Edition (node locked-crc)
Â
Version: FME(R) 2016.1.1.0 (20160722 - Build 16609 - WIN64)Â
Locale: en_USÂ
Codepage: 1252 (ANSI - Latin I)Â
Registration Key: 1-628-344-195Â
Registration: Evaluation License 361 days leftÂ
Serial Number: NBGL-UEC6-12L8Â
Customer Number: 95780Â
Home Folder: C:\\Program Files\\FME\\Â
Operating System: Microsoft Windows 10 64-bit (Build 10586)I am converting some linear data in an ESRI File GeoDatabase to GML using the GML SF-0 writer.
I then load that data in to SQL Server 2012 for conversion into geography instances.
The FME data has namespace prefixes for every tag:
<fme:FeatureCollection xmlns:fme="http://www.safe.com/gml/fme" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" gml:id="id78f185fa-6116-47e5-b873-8d66e48aa1dc">
<fme:featureMember>
<fme:Roads gml:id="idd3bb702b-f7a7-4207-ae24-f509a179f511">
<fme:OBJECTID>1</fme:OBJECTID>
<fme:STREET>MIDDLE ROAD</fme:STREET>
<fme:ROADTYPE>5</fme:ROADTYPE>
<fme:Shape_Length>0.00582176844494881</fme:Shape_Length>
<fme:curveProperty>
<gml:LineString srsName="EPSG:4283">
<gml:posList>-27.7358319997469 152.702232000207 0 -27.7415591793126 152.701186819816 0</gml:posList>
</gml:LineString>
</fme:curveProperty>
</fme:Roads>
</fme:featureMember>
Because the geography::GeomFromGml Static Method does not like namespace prefixes, and cannot handle 3D ordinate values (the source data is 2D), I need to remove them from each GML snippet as in the following example:
select geography::GeomFromGml('<LineString xmlns="http://www.opengis.net/gml"><posList>-27.7358319997469 152.702232000207 -27.7415591793126 152.701186819816</posList></LineString>',4283);
Can anyone suggest how I can do this in FME? Different Writer? More XML processing?
regards
Simon Greener