Skip to main content
Solved

Create polygon from OSM

  • October 20, 2022
  • 6 replies
  • 62 views

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

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

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.

6 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • October 21, 2022

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
  • 20 replies
  • 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+47
  • Celebrity
  • 2000 replies
  • 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 ! ;)

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


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

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+47
  • Celebrity
  • 2000 replies
  • Best Answer
  • October 25, 2022

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
  • 20 replies
  • October 25, 2022

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!