Skip to main content

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

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


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.


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