Skip to main content
Solved

Create polygon from OSM


Forum|alt.badge.img

Hello,

I try to create polygon from osm like cemeteries. For now, I'm stuck after the XML Fragmenter and Vertex Creator. I don't know how to build lines between points because there isn't an unique value.

I didn't find anything on the FME community so I post this question.

If someone could give me an orientation, if would be very nice !

Thank you !

image 

 

Best answer by virtualcitymatt

virtualcitymatt wrote:

Can you share the test.xml file? It could just be there is some more hidden information

Hey, right yeah seems there is somethign a bit weird going on when using the detfault settings.

 

I found I got more results if I used the "Output Incomplete Ways and Relations" settings. A lot more retsults here

 

image

View original
Did this help you find an answer to your question?

6 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+39

hmmmm, Have you tried using FME's built in OSM reader? This might be a nice option for you.

 

You can save your request from the overpass HTTPCaller to a file rather than an attribute and then a the FeatureReader configured with The OSM XML Format to parse the results for you directly into FME features.


Forum|alt.badge.img
  • Author
  • October 24, 2022

Thank @virtualcitymatt​  , with your idea, I progress a litlle bit. But as you can see (Itried with cemeteries and park), only 31 polygon (only parks) were build. And I don't have name or others informations. For the cemeteries nothing happens and in the featureReader, all features go to Unknown category.

imageHere the featureReader parameter

imageSo right now it's not so positive ! ;)


virtualcitymatt
Celebrity
Forum|alt.badge.img+39
kael112 wrote:

Thank @virtualcitymatt​  , with your idea, I progress a litlle bit. But as you can see (Itried with cemeteries and park), only 31 polygon (only parks) were build. And I don't have name or others informations. For the cemeteries nothing happens and in the featureReader, all features go to Unknown category.

imageHere the featureReader parameter

imageSo right now it's not so positive ! ;)

Can you share the test.xml file? It could just be there is some more hidden information


Forum|alt.badge.img
  • Author
  • October 24, 2022
virtualcitymatt wrote:

Can you share the test.xml file? It could just be there is some more hidden information

@virtualcitymatt​  what do you think about it?


virtualcitymatt
Celebrity
Forum|alt.badge.img+39
  • Celebrity
  • Best Answer
  • October 25, 2022
virtualcitymatt wrote:

Can you share the test.xml file? It could just be there is some more hidden information

Hey, right yeah seems there is somethign a bit weird going on when using the detfault settings.

 

I found I got more results if I used the "Output Incomplete Ways and Relations" settings. A lot more retsults here

 

image


Forum|alt.badge.img
  • Author
  • October 25, 2022
virtualcitymatt wrote:

Can you share the test.xml file? It could just be there is some more hidden information

Yes it works with it! It's better, it think I can progress now.

Thank you @virtualcitymatt​  for your quick answer!


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