Vector graphics in Xbase++
Posted: Wed Aug 07, 2019 4:02 am
Hi,
Some time I experimenting with vector graphics in Xbase. I have some digital maps (cadastral maps) where all parcels are as vector closed objects with coordinates x and y.
So I have viewer which can show this map to screen with GraLine/Grapos etc. functions. This works good, but I need interact with this map.
Now I can identify coordinates on screen and know calculate this to other cadastral coordinates. But I do not know how realize identify vector blocks (vector polygons) on screen.
This block can be very complicated polygons with hidden lines etc.
When I click to surface in this block I need identify it and do something for example change color or show data from database.
I tryed to set some section as rectangle with coordinates x1,yx to x2,y2 and when mouse is on this can identify that it is just concrete parcel.
But this need cut full map to many small rectangles.
Better way will be to can click to line of block and read for what parcel is this line. But not know some system how identify line when click with cursor to it.
I know this is not job for Alaska Xbase++ language, but I mean exist some way to create handy application for simply use.
For example demo Pendraw can paint lines, rectangles, circles, but I do not know how can do more with created objects .
If somebody have some tip, or some library for vector graphics, this can help me.
I know do something with SHP but at this moment need vector graphics because converting vector to SHP is qiute complicated.

Some time I experimenting with vector graphics in Xbase. I have some digital maps (cadastral maps) where all parcels are as vector closed objects with coordinates x and y.
So I have viewer which can show this map to screen with GraLine/Grapos etc. functions. This works good, but I need interact with this map.
Now I can identify coordinates on screen and know calculate this to other cadastral coordinates. But I do not know how realize identify vector blocks (vector polygons) on screen.
This block can be very complicated polygons with hidden lines etc.
When I click to surface in this block I need identify it and do something for example change color or show data from database.
I tryed to set some section as rectangle with coordinates x1,yx to x2,y2 and when mouse is on this can identify that it is just concrete parcel.
But this need cut full map to many small rectangles.
Better way will be to can click to line of block and read for what parcel is this line. But not know some system how identify line when click with cursor to it.
I know this is not job for Alaska Xbase++ language, but I mean exist some way to create handy application for simply use.
For example demo Pendraw can paint lines, rectangles, circles, but I do not know how can do more with created objects .
If somebody have some tip, or some library for vector graphics, this can help me.
I know do something with SHP but at this moment need vector graphics because converting vector to SHP is qiute complicated.
