Skip to main content

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

work_gml.zip


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.


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

 

 

 

 

 


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?


Reply