Skip to main content
Question

gml to any vector format

  • September 2, 2019
  • 4 replies
  • 33 views

outlook
Contributor
Forum|alt.badge.img+3

Hi all

I have a gml file to need to export any vector format.I used many transformer but not achieved. You can find int the attached gml sample file.

Do you have any idea?

Thankyou

4 replies

outlook
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • September 2, 2019

work_gml.zip


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 2, 2019

The geometry is in the _response_body attribute but that is not encoded properly:

<?xml version="1.0" encoding="UTF-16"?><fme:_response_body xmlns:fme="http://www.safe.com/gml/fme" xmlns="http://tempuri.org/"><string>&lt;wfs:FeatureCollection xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs"&gt;

&lt;gml:featureMember id="OBJECTID"&gt;

&lt;TBB_KAPI.TBB.TBB_KAPI&gt;

&lt;OBJECTID&gt;528293&lt;/OBJECTID&gt;

&lt;CINSI&gt;Ba??ms?z Ana Giri?&lt;/CINSI&gt;

&lt;UAVT_KOD&gt;37417778&lt;/UAVT_KOD&gt;

&lt;M_DATE&gt;2019-09-02T00:00:00&lt;/M_DATE&gt;

&lt;GEO_DURUM&gt;1&lt;/GEO_DURUM&gt;

&lt;MAHALLE_ADI&gt;GÜNDO?DU-TURGUT&lt;/MAHALLE_ADI&gt;

&lt;YOL_ADI&gt;SOYSAL Sokak&lt;/YOL_ADI&gt;

&lt;YOL_TURU_ID&gt;5&lt;/YOL_TURU_ID&gt;

&lt;YOL_TURU&gt;Sokak&lt;/YOL_TURU&gt;

&lt;KAPI_NO&gt;24/2A&lt;/KAPI_NO&gt;

&lt;KAPI_ADI&gt;-&lt;/KAPI_ADI&gt;

&lt;KBS_BINA_NO /&gt;

&lt;ADA_PARSEL /&gt;

&lt;MAHALLE_ID&gt;360&lt;/MAHALLE_ID&gt;

&lt;YOL_ID&gt;15217&lt;/YOL_ID&gt;

&lt;PARSEL_ID /&gt;

&lt;YAPI_ID&gt;769655&lt;/YAPI_ID&gt;

&lt;PAFTA /&gt;

&lt;ADA /&gt;

&lt;PARSEL /&gt;

I suggest you try to get the GML in a correct annotation and then use the GML reader or GeometryReplacer on the response attribute.


outlook
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • September 4, 2019
itay wrote:

The geometry is in the _response_body attribute but that is not encoded properly:

<?xml version="1.0" encoding="UTF-16"?><fme:_response_body xmlns:fme="http://www.safe.com/gml/fme" xmlns="http://tempuri.org/"><string>&lt;wfs:FeatureCollection xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs"&gt;

&lt;gml:featureMember id="OBJECTID"&gt;

&lt;TBB_KAPI.TBB.TBB_KAPI&gt;

&lt;OBJECTID&gt;528293&lt;/OBJECTID&gt;

&lt;CINSI&gt;Ba??ms?z Ana Giri?&lt;/CINSI&gt;

&lt;UAVT_KOD&gt;37417778&lt;/UAVT_KOD&gt;

&lt;M_DATE&gt;2019-09-02T00:00:00&lt;/M_DATE&gt;

&lt;GEO_DURUM&gt;1&lt;/GEO_DURUM&gt;

&lt;MAHALLE_ADI&gt;GÜNDO?DU-TURGUT&lt;/MAHALLE_ADI&gt;

&lt;YOL_ADI&gt;SOYSAL Sokak&lt;/YOL_ADI&gt;

&lt;YOL_TURU_ID&gt;5&lt;/YOL_TURU_ID&gt;

&lt;YOL_TURU&gt;Sokak&lt;/YOL_TURU&gt;

&lt;KAPI_NO&gt;24/2A&lt;/KAPI_NO&gt;

&lt;KAPI_ADI&gt;-&lt;/KAPI_ADI&gt;

&lt;KBS_BINA_NO /&gt;

&lt;ADA_PARSEL /&gt;

&lt;MAHALLE_ID&gt;360&lt;/MAHALLE_ID&gt;

&lt;YOL_ID&gt;15217&lt;/YOL_ID&gt;

&lt;PARSEL_ID /&gt;

&lt;YAPI_ID&gt;769655&lt;/YAPI_ID&gt;

&lt;PAFTA /&gt;

&lt;ADA /&gt;

&lt;PARSEL /&gt;

I suggest you try to get the GML in a correct annotation and then use the GML reader or GeometryReplacer on the response attribute.

Hi @itay

Firstly thanks.

I guess I achieved the correct structure.

My second question is how I can convert below attributes to as field.

You can find enclosed the sample data.

 

Thankyou.

 

work9_edit.zip

 

 

 

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 4, 2019
outlook wrote:

Hi @itay

Firstly thanks.

I guess I achieved the correct structure.

My second question is how I can convert below attributes to as field.

You can find enclosed the sample data.

 

Thankyou.

 

work9_edit.zip

 

 

 

 

 

Hi @outlook (?), the issue is still there, the XML doesn't look like XML should...if you are receiving the GML/XML from a webservice I suggest you try receiving it in the correct annotation/encoding since then it won't be an issue to read and transform.

Can you share the webservice you are using?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings