Skip to main content
Question

GeoRSS Expert Needed

  • August 16, 2017
  • 20 replies
  • 36 views

I have lots of GeoRSS Files and in these file there are some attributes. I want to convert these GeoRSS file to ESRI Shapefile. GeoRSS files Contain Some attributes in Coding. Just like this

<ul>

<li><strong><span>objectid</span>:</strong> <span>1.0000000000</span></li>

<li><strong><span>districtco</span>:</strong> <span>01</span></li>

<li><strong><span>districtna</span>:</strong> <span>Kaniska</span></li>

<li><strong><span>shape_leng</span>:</strong> <span>550660.0714570000</span></li>

<li><strong><span>shape_area</span>:</strong> <span>6611.3038972100</span></li>

</ul>

I want This in Esri Shape File Attributes Like This

objectid districtco districtna shape_leng shape_area

1.0000000000 01 Kaniska 550660.0714570000 6611.3038972100

Attributes are important for me. Help me to fill attributes from GeoRSS file to Shapefile.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

20 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • August 16, 2017

Hi @sonekarneelesh, could you send the url?

Thanks,

Danilo


  • Author
  • 14 replies
  • August 16, 2017

Hi @sonekarneelesh, could you send the url?

Thanks,

Danilo

https://drive.google.com/

 

This is the link :-

 


Forum|alt.badge.img
  • 6 replies
  • August 16, 2017

use HTMLExtractor


  • Author
  • 14 replies
  • August 16, 2017

use HTMLExtractor

Pls give me example of HTMLExtractor. How to Use It ?

 

 


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • August 16, 2017

Hi @sonekarneelesh,

I simulated you data using a AttributeCreator:

Then i split my attribute att and expose the elemnts ( transformer ListExploder ).

With transformer StringSearcher i found the elements that we want:

- Attributes Names

- Values Names

And in FME Data Inspector the results were presented:

Attached the template file.

Thanks,

Danilo - workspace-geo.fmwt


takashi
Celebrity
  • 7843 replies
  • August 17, 2017

use HTMLExtractor

If you read the GeoRSS feed with the GEORSS reader, each Entry feature will have an attribute called "Content" that stores HTML fragment describing attributes like this.

 

<h4>mpdistrict</h4>

<ul class="textattributes">
  <li><strong><span class="atr-name">objectid</span>:</strong> <span class="atr-value">1.0000000000</span></li>
  <li><strong><span class="atr-name">districtco</span>:</strong> <span class="atr-value">01</span></li>
  <li><strong><span class="atr-name">districtna</span>:</strong> <span class="atr-value">Sheopur</span></li>
  <li><strong><span class="atr-name">shape_leng</span>:</strong> <span class="atr-value">550660.0714570000</span></li>
  <li><strong><span class="atr-name">shape_area</span>:</strong> <span class="atr-value">6611.3038972100</span></li> 
</ul>
Since every attribute name and value is described with <span> tag and they are distinguished by the value of "class" attribute ("atr-name" or "atr-value"), you can specify "class" as CSS Selector to extract attribute names and values separately with the HTMLExtractor. See this screenshot to learn more.

0684Q00000ArMIpQAN.png


  • Author
  • 14 replies
  • August 17, 2017

Hi @sonekarneelesh,

I simulated you data using a AttributeCreator:

Then i split my attribute att and expose the elemnts ( transformer ListExploder ).

With transformer StringSearcher i found the elements that we want:

- Attributes Names

- Values Names

And in FME Data Inspector the results were presented:

Attached the template file.

Thanks,

Danilo - workspace-geo.fmwt

kh.jpg

 

 

i want attributes like this:-

 

shape length shape area are title of attribute field and values in table below.

  • Author
  • 14 replies
  • August 17, 2017

use HTMLExtractor

@takashi pls give me .fmwt file for htmlextractor.

takashi
Celebrity
  • 7843 replies
  • August 17, 2017
@takashi pls give me .fmwt file for htmlextractor.
This is it: georss-htmlextractor.fmwt (FME 2017.0)

 

 


  • Author
  • 14 replies
  • August 17, 2017

use HTMLExtractor

@takashi not working fatal error has occured

 


  • Author
  • 14 replies
  • August 17, 2017
This is it: georss-htmlextractor.fmwt (FME 2017.0)

 

 

 

pls give me full fmwt........now what to do with this feed and inspector

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • August 17, 2017

 

pls give me full fmwt........now what to do with this feed and inspector
@sonekarneelesh i believe you can to add your Writer after the transformer AttributeExposer and connect it, instead the Inspector.

takashi
Celebrity
  • 7843 replies
  • August 17, 2017
@takashi not working fatal error has occured

 

What kind of error? Post the error messages logged here.

 


  • Author
  • 14 replies
  • August 18, 2017
What kind of error? Post the error messages logged here.

 

 

@takashi i m sharing the log file pls find attachment. I got my files into shapefile but no attribute found..............log-file.txt

  • Author
  • 14 replies
  • August 18, 2017

 

pls give me full fmwt........now what to do with this feed and inspector
@danilo_inovacao

 

i connect writer instead of inspector but not attribute found.

 

 


takashi
Celebrity
  • 7843 replies
  • August 18, 2017
@takashi not working fatal error has occured

 

I cannot find any fatal error in your log. If it was the issue that the destination Shapefile dataset won't have any attribute, most likely you didn't have set User Attributes in the writer feature type, I think. This is just an example. Modify this appropriately according to the actual requirements.

 


  • Author
  • 14 replies
  • August 18, 2017
I cannot find any fatal error in your log. If it was the issue that the destination Shapefile dataset won't have any attribute, most likely you didn't have set User Attributes in the writer feature type, I think. This is just an example. Modify this appropriately according to the actual requirements.

 

i do exactly what you said but there is no attributes in shapefile. If you have converted shapefile pls share with me. i m in a big trouble. pls help.

 

 


takashi
Celebrity
  • 7843 replies
  • August 18, 2017
@takashi not working fatal error has occured

 

Could you please post a screenshot that illustrates how you have configured the destination Shapefile writer feature type - User Attributes tab?

 


  • Author
  • 14 replies
  • September 6, 2017
This is it: georss-htmlextractor.fmwt (FME 2017.0)

 

 

Thanks for the fmwt. Now its working............Thanks man really helpful................

 

 


geosander
Forum|alt.badge.img+7
  • 327 replies
  • September 6, 2017
This is it: georss-htmlextractor.fmwt (FME 2017.0)

 

 

@sonekarneelesh: since you wrote that it worked, please mark @takashi's post as "Answer". Otherwise, I'm sure @TiaAtSafe can do it ;)