Recent

Author Topic: GIS Library for Lazarus  (Read 10143 times)

amir.eng

  • New Member
  • *
  • Posts: 49
Re: GIS Library for Lazarus
« Reply #15 on: January 19, 2022, 06:31:42 am »
Great, I check it out and also tools.

Few issues:

-Parcels border are not clear when Outline mode is diabled (Please take a look at the attached image, the left shape file is in Arcmap and the right one is the same shape file in the Application)
-Is it possible to add Zoom In and Zoom Out to the main shape view window?
-Is it possible to select feature by clicking on the main shape veiw window and showing only the feature's attributes on the shapetable ?
« Last Edit: January 19, 2022, 06:34:03 am by amir.eng »
Lazarus 2.2.0 , FPC 3.2.2 , Windows 10 64, Excel 2013 64

zamtmn

  • Sr. Member
  • ****
  • Posts: 481
Re: GIS Library for Lazarus
« Reply #16 on: January 19, 2022, 08:55:09 am »
There is also such an variant, it does not directly supports SHP, but a lot has been done in it for fast processing of vector graphics

stab

  • Full Member
  • ***
  • Posts: 234
Re: GIS Library for Lazarus
« Reply #17 on: January 20, 2022, 12:04:08 am »
Regarding your question:
Is it possible to select feature by clicking on the main shape veiw window and showing only the feature's attributes on the shapetable ?

Should I understand this so:
 you would like that only attributes for selected shape is displayed?

Regarding border not clear:
  Have to look at that little more

Working on zoomin, zoomout and pan

loaded

  • Hero Member
  • *****
  • Posts: 569
Re: GIS Library for Lazarus
« Reply #18 on: January 20, 2022, 08:18:58 am »
-Parcels border are not clear when Outline mode is diabled (Please take a look at the attached image, the left shape file is in Arcmap and the right one is the same shape file in the Application)
Regarding border not clear:
  Have to look at that little more

By the way, I can say with the experience I gained from a CAD application that I designed in Android Studio, the backbone of which I wrote with Lazarus+LAMW;
Defining the brush and pen colors separately will solve the problem.

Related application usage test video;
If Ide=Lazarus 2.0.10 32 Bit and Os=Win 10 Home 64 Bit then Get up and do something useful! Because God is the helper of those who start again;

amir.eng

  • New Member
  • *
  • Posts: 49
Re: GIS Library for Lazarus
« Reply #19 on: January 20, 2022, 11:56:55 am »
Regarding your question:
Is it possible to select feature by clicking on the main shape veiw window and showing only the feature's attributes on the shapetable ?

Should I understand this so:
 you would like that only attributes for selected shape is displayed?

Regarding border not clear:
  Have to look at that little more

Working on zoomin, zoomout and pan
Yes I mean the table shows only attribute for selected shape like Arcmap.
Could you please add zoomin, zoomout,pad, selecting feature by mouse ??
Lazarus 2.2.0 , FPC 3.2.2 , Windows 10 64, Excel 2013 64

stab

  • Full Member
  • ***
  • Posts: 234
Re: GIS Library for Lazarus
« Reply #20 on: January 20, 2022, 12:43:05 pm »
Regarding selecting feature by mouse, you have it already, just check HitTest and click in a shape. In the version you have right now, all features will show up, but current attribute is marked. I've a new version where just attributes for the selected is shown.
Working on  zoomin, zoomout,pan and your problem with somewhat jagged borders.

stab

  • Full Member
  • ***
  • Posts: 234
Re: GIS Library for Lazarus
« Reply #21 on: January 26, 2022, 06:48:04 pm »
Have been testing quite a bit to achieve fast drawing, am not satisfied but
think someone smarter than me have to fix that.

You now have zoom, pan and antialiasing.

Included in the zip file is a new component ShapeObBGRA that draws on a
TBGRAGraphicControl that handles antialiasing and removes jagged borders.

If you or someone else improves the component I'd be glad to have a copy.

winni

  • Hero Member
  • *****
  • Posts: 3057
Re: GIS Library for Lazarus
« Reply #22 on: January 26, 2022, 07:43:20 pm »
@stab

Hi!

You forgot the dir auxiliary with the file shapeobjbgra.pas  in your zip file.

Winni

stab

  • Full Member
  • ***
  • Posts: 234
Re: GIS Library for Lazarus
« Reply #23 on: January 26, 2022, 10:04:23 pm »
Sorry, new zip file included test shapefile :o

winni

  • Hero Member
  • *****
  • Posts: 3057
Re: GIS Library for Lazarus
« Reply #24 on: January 27, 2022, 12:04:00 am »
Hi!

First shot:

Code: Text  [Select][+][-]
  1. ShapeObj.pas(5595,58) Error: Call by var for arg no. 5 has to match exactly: Got "Double" expected "Extended"
  2.  

On Linux64

Winni

stab

  • Full Member
  • ***
  • Posts: 234
Re: GIS Library for Lazarus
« Reply #25 on: January 28, 2022, 02:03:05 pm »
As I wrote earlier:
Have written TShapeObj according the shapefile format description and it has served my purposes well. It is not optimized and when some new need has showed up it has been expanded.
Anyone is welcome to improve it. If so, I'm interested in getting a copy.

 

TinyPortal © 2005-2018