Jump to content

I want to Convert Coordinates to Geometries,


Xu PengYan

Recommended Posts

Hi eagle.xu,

First, let's clarify this. Are you trying to generate geometries from Xmin,Xmax, etc

That's not possible (in any software). The geometries objects have their own data . Each vertex that goes along a line (or boundary) in a geometry is a separate xy-coordinate. Now, when you have a bunch of xy-coordinates in a sequence, that can create a polygon, and from the polygon you can extract min/max and centroid information (like Xcenter,Ycenter,Xmax,Xmin, etc). It's impossible to go the other way however.

Now if I've misunderstood and youdohave that geometry data somewhere but just can't get it to show in Spotfire, let us know and we can diagnose the issue.

Link to comment
Share on other sites

Given the data you have, you would only be able to draw simple shapes (like circles or rectangles) using your Xmin, Xmax, Ymin, Ymax, Ycenter, Xcenter. You can do this using a TERR Data Function in Spotfire.

 

For circles, start with this: https://community.spotfire.com/wiki/useful-geospatial-data-functions-spotfire#toc-4

 

For rectangles, start with this: https://community.spotfire.com/wiki/useful-geospatial-data-functions-spotfire#toc-5

 

Both of these are for "fixed" dimensions, but if you wanted varying dimensions for your different rows of Xmin, Xmax, etc, then you could modify the data function scripts.

 

Alternatively, if you have a set of coordinates you wanted to connect together to make a single geometry, you can use this Data Function (though I don't believe this is your scenario): https://community.spotfire.com/wiki/useful-geospatial-data-functions-spotfire#toc-3

 

Ultimately, I believe with what you're trying to do, you don't have the data required to plot complex geometries. You should reach out to the provider of your data source and see if they can provide you the geometry data -- likely in a Shapefile (.shp)

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...