Map Series of Shapefile
Posted: Mon Aug 17, 2020 6:44 am
Hi All,
I am trying to create some maps from shapefiles. So far, I have managed to draw the polygons in a shapefile with the code below.
However, I can't figure out how to load or access the attributes of the shapes from the dbf file. Can anyone help?
I also couldn't find an example of Map Series with GIS layers (at https://github.com/Steema/TeeChart-VCL-samples)?
When I try to compile the TeeChart_Maps project, I get a Unit DBTables not found error. I am using: Steema TeeChart Pro VCL FMX Source Code 2020.30
I am trying to create some maps from shapefiles. So far, I have managed to draw the polygons in a shapefile with the code below.
However, I can't figure out how to load or access the attributes of the shapes from the dbf file. Can anyone help?
I also couldn't find an example of Map Series with GIS layers (at https://github.com/Steema/TeeChart-VCL-samples)?
When I try to compile the TeeChart_Maps project, I get a Unit DBTables not found error. I am using: Steema TeeChart Pro VCL FMX Source Code 2020.30
Code: Select all
Chart1.View3D := false;
Chart1.Legend.Visible := false;
series1 := TMapSeries.Create(Chart1);
Chart1.AddSeries(series1);
series1.Clear;
SHPFile := 'shapes.shp';
try
LoadMap(Series1 , SHPFile);
finally
end;
Series1.ColorEachPoint := true;