Question

how to calculate lat long of this lines vertex points in FME with help of any transformer or any other useful method for any projection of the shapfile.

  • 29 November 2021
  • 5 replies
  • 3 views

How to calculate lat long of this lines corner vertex points in FME with help of any transformer or any other useful method with any projection of the shapfile.

Anybody can help in getting this Lat long or XY co-ordinated for this four corner positions of any randomn area with any projection.

Just need to extract XY Co-ordinates. how can we generate or extract it.

 

Please find below snapshot for reference to understand it better.Q1


5 replies

Userlevel 4
Badge +25

If you want the corner points and you know for sure it's going to be a properly oriented rectangle every time you can use the BoundsExtractor to extract the min/max X and Y coordinates to attributes.

Otherwise, check out the GeometryExtractor, which can take a feature's geometry and store it in an attribute in a number of different formats, some of them (GML, GeoJSON and WKT) are plaintext so could be processed to look exactly the way you like.

If you want the corner points and you know for sure it's going to be a properly oriented rectangle every time you can use the BoundsExtractor to extract the min/max X and Y coordinates to attributes.

Otherwise, check out the GeometryExtractor, which can take a feature's geometry and store it in an attribute in a number of different formats, some of them (GML, GeoJSON and WKT) are plaintext so could be processed to look exactly the way you like.

Tried this above approach but solution not helpful..... still thanks

Userlevel 4
Badge +25

Tried this above approach but solution not helpful..... still thanks

What exactly are you missing?

 

Tried this above approach but solution not helpful..... still thanks

Can you help me with the step by step in FME to aquire lat long for this Line features vertexs location. geometry is fixed in rectangular shape.

Userlevel 2
Badge +9

Tried this above approach but solution not helpful..... still thanks

Hi @actualabhijeet​, as @Hans van der Maarel​ mentioned above, using a BoundsExtractor should be adequate for this situation if you are just looking at rectangular geometry. I've attached a sample workspace to help you on your way.

Reply