Skip to main content
Solved

I want Download from web

  • June 24, 2022
  • 17 replies
  • 25 views

Forum|alt.badge.img+5

I create the workspace but problem is its getting first one but what i need is get the latest one.

 

also the file is KMZ and i cant get the Placemark where all location is stored please help me out in this

 

https://www.nhc.noaa.gov/gis/

 

I am attaching the workspace

Best answer by redgeographics

how can i get only current year Storm

Once you have the year in a separate attribute you can use a TestFilter to do that, like this:Schermafbeelding 2022-06-27 095809

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.

17 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • June 24, 2022

Your StringSearcher is only returning the first match, but there are many. If you check in its parameters you can set a "all matches list name" under the Advanced section, do that and you'll get a list of, in this case, 88 matches.

I'm not familiar with the naming convention of these files though, so I'm not entirely sure which would be the latest one.

 

Then as for the KMZ placemarks, the FeatureReader is reading a dynamic filename, so when you're designing the workspace it doesn't actually know what that file is like. You can work around that by downloading one of the files first and use that to develop the workspace, then switch it back to a dynamic filename when you're done. Alternatively, you can manually specify which output port(s) you want it to have.


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

there are datasets and each dataset have storm in each area

like Atlantic Eastern Pacific Central Pacific

in each storm file name AL012022_017adv_most_likely_toa_34.kmz

only chnage is 012018

022018

 

each storm have numbers after Area alpha code and year so i need by numbers and current year


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

I am new in FME please help me Out


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • June 24, 2022

So...

AL01 = Atlantic

2022 = year

and then they're numbered consecutively?


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

Yes ..

 

So Atlantic = AL

Eastern Pacific  = ep

Central Pacific - cp

 

so each area will be seprate work space

 

 


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

Ep have three storm till now so they give the numbers how many storm have in that area


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

and one more thing

 

this KMZ file should convert from KMZ to Shapefile..


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • June 24, 2022

But in the matches list I see a different naming structure:

AL312020_most_likely_toa_34_latest.kmz

 

What you can do, once you have that naming structure clear, is:

  • Use an AttributeCreator to create region, year and number attributes using the SubString fuction
  • Sort by year and number
  • Use a Sampler, grouping by region, to get the last storm.

Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

Sorry i gave you wrong file name

 

AL312020_most_likely_toa_34_latest.kmz (This one is correct)

 

as i said i am new on FME


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

problrm is i am not able to get the latest storm from web


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • June 24, 2022

problrm is i am not able to get the latest storm from web

Have you tried to follow the steps I outlined above?

 

Schermafbeelding 2022-06-24 103046This should do the trick for getting the last storm.


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

Its work but problem is there is data as well under the document when i get placemark and document everything working fine but whn i load to Arcgis portal i get the data but not placemark why is that


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

image


Forum|alt.badge.img+5
  • Author
  • 170 replies
  • June 24, 2022

But in the matches list I see a different naming structure:

AL312020_most_likely_toa_34_latest.kmz

 

What you can do, once you have that naming structure clear, is:

  • Use an AttributeCreator to create region, year and number attributes using the SubString fuction
  • Sort by year and number
  • Use a Sampler, grouping by region, to get the last storm.

how can i get only current year Storm


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3699 replies
  • Best Answer
  • June 27, 2022

how can i get only current year Storm

Once you have the year in a separate attribute you can use a TestFilter to do that, like this:Schermafbeelding 2022-06-27 095809