Xu PengYan Posted September 29, 2019 Share Posted September 29, 2019 I have the Xcenter,Ycenter,Xmax, Ymax,Xmin,YminCoordinates,but i also need theGeometries.I want to konw how to convert it in spotfire. Thanks so much. Link to comment Share on other sites More sharing options...
Neil Kanungo 2 Posted September 29, 2019 Share Posted September 29, 2019 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 More sharing options...
Xu PengYan Posted September 30, 2019 Author Share Posted September 30, 2019 Maybe i haven't describe my mean. I want to use the Xcenter,Ycenter,Xmax, Ymax,Xmin,Ymin to create a polygon.Like the pciture .Every ID of the data ,can have the only one polygon on the map.I dont konw its impossible Thanks so much. Link to comment Share on other sites More sharing options...
Neil Kanungo 2 Posted September 30, 2019 Share Posted September 30, 2019 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 More sharing options...
Xu PengYan Posted October 11, 2019 Author Share Posted October 11, 2019 thanks so much , you sloved my problem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now