Linuxuser1234 1 Posted October 9, 2022 (edited) I'm trying to visualize Weather Alert Polygons onto a 3d sphere how can i make my own shapefile viewer using .PAS and display the data like its another bitmap texture that's the best way i can describe it. Edited October 9, 2022 by Linuxuser1234 Share this post Link to post
Linuxuser1234 1 Posted October 9, 2022 and here is where i got the shapefile data from https://www.weather.gov/source/crh/shapefiles/ Share this post Link to post
dummzeuch 1505 Posted October 9, 2022 Reading shape files is not difficult. The format is documented and I personally wrote a unit u_dzShapeFileReader for reading them which is part of my dzlib library. There is even a simple test program ShapeFileReader that uses this to display such files (but not on a sphere, it simply takes the coordinates as they are without any projection). But you will still need to know which coordinate system that data uses (WGS 84 would be my guess, but I don't know for sure) project these coordinates on a sphere and display that three dimensional sphere on a two dimensional display as everybody has already been telling you in various topics already. You seem to want a library that does everything you need. If you are willing to pay for it, maybe TMS FNC Map is a possible solution, but I don't know for sure, because I never used that. And I seem to remember that they don't provide any coordinate conversion. But even assuming that this library can help you for parts of the code, this is a far from simple task. Expect to spend many days (or probably more like months) on it. Maybe there are better tools / libraries for other programming environments than Delphi. I wouldn't know. Share this post Link to post
Linuxuser1234 1 Posted October 10, 2022 @dummzeuch How can i automatically extract the shapefile Share this post Link to post
dummzeuch 1505 Posted October 10, 2022 18 minutes ago, Linuxuser1234 said: @dummzeuch How can i automatically extract the shapefile You keep asking questions that are not really related to Delphi programming. Answer to this one: By buying a software like MapInfo. Please note that I'll ignore any further question related to this topic. Share this post Link to post