Skip to main content
Solved

Why Point on area overlay does not work?


Forum|alt.badge.img

Hello,

 

 

I want to use Point on area overlay transformer but it does not work and I don't know why. As You can see here some points are overlaying the buffer I created but output is collapsing.

Best answer by david_r

If you define the coordinate columns when creating the CSV reader, FME will try it's best to convert the X/Y values to point geometries. However, if it fails on one or several features, those features will still be output, but with a NULL geometry.

Since the PointOnAreaOverlayer doesn't accept NULL geometries, they exit through the <Rejected> port, and therefore terminating your translation.

When you use the VertexCreator as you do in your screenshot here, you're effectively filtering away those features where the X/Y values are invalid, and as a consequence you no longer get any errors on the PointOnAreaOverlayer.

I hope that makes sense.

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

10 replies

david_r
Celebrity
  • February 27, 2018

What is the error message in the FME log window?


david_r
Celebrity
  • February 27, 2018

The GeographicBufferer expects an input geometry. If you connect an Inspector to the "CSV" input feature, are you seeing the geometries? If not, you may have to use a VertexCreator before the GeographicBufferer.


Forum|alt.badge.img
  • Author
  • February 27, 2018

I can see geometry in the inspector as you can see in the screen attached in the previous comment


david_r
Celebrity
  • February 27, 2018
oliwerurban wrote:

I can see geometry in the inspector as you can see in the screen attached in the previous comment

There's your problem, on the blue line. It seems you have one or more invalid values for the point geometry, hence no geometry is created an the PointOnAreaOverlayer rejects the feature.

 

You could insert a Tester on the CSV features to check that the X/Y values are within the expected range.

Forum|alt.badge.img
  • Author
  • February 27, 2018
david_r wrote:
There's your problem, on the blue line. It seems you have one or more invalid values for the point geometry, hence no geometry is created an the PointOnAreaOverlayer rejects the feature.

 

You could insert a Tester on the CSV features to check that the X/Y values are within the expected range.

 

But I still do not understand it. I can locate them on the map in the inspector and after I create a buffer I can see they overlay with the source points which can be seen here. Do you know what is the problem then?

 


david_r
Celebrity
  • February 27, 2018
oliwerurban wrote:

 

But I still do not understand it. I can locate them on the map in the inspector and after I create a buffer I can see they overlay with the source points which can be seen here. Do you know what is the problem then?

 

Are you 100% certain it's the same point in your screenshot as the one that fails?

 

My guess is that there's something wrong in the CSV data. Consider sending all the CSV features to the Inspector and carefully check all the X/Y values (not the geometries, but the attribute values used to create the geometry). I'm guessing you have at least one invalid or empty value somewhere.

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • February 27, 2018

You seem to have 1 rejected point geometry.

Try setting the Rejected object handling to "Continue".

You can find this setting in the Navigator panel under Translation.


Forum|alt.badge.img
  • Author
  • February 27, 2018

Thanks guys for help it turned out to be the vertexcreators that did the trick. The thing is that I do not understand that becuase I set up the X and Y coordinates when I added the readers which as I mentioned can be seen on the scan from the inspector. Nevertheless I think I have an positive outcome.


david_r
Celebrity
  • Best Answer
  • February 27, 2018

If you define the coordinate columns when creating the CSV reader, FME will try it's best to convert the X/Y values to point geometries. However, if it fails on one or several features, those features will still be output, but with a NULL geometry.

Since the PointOnAreaOverlayer doesn't accept NULL geometries, they exit through the <Rejected> port, and therefore terminating your translation.

When you use the VertexCreator as you do in your screenshot here, you're effectively filtering away those features where the X/Y values are invalid, and as a consequence you no longer get any errors on the PointOnAreaOverlayer.

I hope that makes sense.


Forum|alt.badge.img
  • Author
  • February 27, 2018
david_r wrote:

If you define the coordinate columns when creating the CSV reader, FME will try it's best to convert the X/Y values to point geometries. However, if it fails on one or several features, those features will still be output, but with a NULL geometry.

Since the PointOnAreaOverlayer doesn't accept NULL geometries, they exit through the <Rejected> port, and therefore terminating your translation.

When you use the VertexCreator as you do in your screenshot here, you're effectively filtering away those features where the X/Y values are invalid, and as a consequence you no longer get any errors on the PointOnAreaOverlayer.

I hope that makes sense.

 

It all makes sense now. Thanks for such an elaborated 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