Hi.
I am looking for a way to save/load polygon data from/to TMapSeries, and wonder if the following statement from the Release.txt indicates that it is now possible (and how this is implemented);
"TMapSeries Assign and design-time / run-time persistence of polygon points to *.tee streams.
"
Thanks.
TMapSeries and 7.05
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi rasco,
This means that TMapSeries polygons can be stored and retrieved using .tee files (TeeChart native file format). For more information on how to use TMapSeries I'd suggest you to have a look at TeeChart's features demo and TeeMaps demo. Features demo is available at TeeChart's program group, TeeMaps demo can be found at TeeChart "Examples" folder.
This means that TMapSeries polygons can be stored and retrieved using .tee files (TeeChart native file format). For more information on how to use TMapSeries I'd suggest you to have a look at TeeChart's features demo and TeeMaps demo. Features demo is available at TeeChart's program group, TeeMaps demo can be found at TeeChart "Examples" folder.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Yes, I am aware of how to handle TMapSeries. I use my own routines to import/export ESRI SHP, AutoDesk DXF and other vector formats, but when using the SaveChartToFile method, still no data is saved with the template. I hoped that this had been solved in 7.05. If there is another method to use for saving native .tee files with MapSeries polygons, I would appreciate a clarification.
Thanks.
Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi racso,
It works fine here using v7.06, which will be available at our Customer Download Area in a few hours, when TMapSeries is manually populated. It just doesn't work when the series use random data as generated for FillSampleValues method.
Could you please try creating a blank project, adding a TChart with a TMapSeries and a TTeeCommander to it. Finally use the code below?
When you run it you should use the TTeeCommander "Edit" button, go to Series -> DataSource tab and select "Manual" datasource. Then export the chart using TButton1, clear the chart clicking on it and load the previously save .tee file. This works fine here, can you please if this works at your end?
It works fine here using v7.06, which will be available at our Customer Download Area in a few hours, when TMapSeries is manually populated. It just doesn't work when the series use random data as generated for FillSampleValues method.
Could you please try creating a blank project, adding a TChart with a TMapSeries and a TTeeCommander to it. Finally use the code below?
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
SaveChartToFile(Chart1,'c:\TestApps\Delphi7\myChart.tee',True);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
LoadChartfromFile(TCustomChart(Chart1),'c:\TestApps\Delphi7\myChart.tee');
self.ChartGrid1.Refresh;
end;
procedure TForm1.Chart1Click(Sender: TObject);
begin
Chart1.RemoveAllSeries;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
dear racso,
I am trying to import ESRI SHP file (point, polyline, Polygon) to TeeChart, but could not find appropriate ways. I saw TMapSeries example in Borland folder, but too complicated to understand it. You said you have "your own routines to import/export ESRI SHP". Could you please share your code with users? If you have Borland C++ code, it will be great help to me.
Thank you in advance.
I am trying to import ESRI SHP file (point, polyline, Polygon) to TeeChart, but could not find appropriate ways. I saw TMapSeries example in Borland folder, but too complicated to understand it. You said you have "your own routines to import/export ESRI SHP". Could you please share your code with users? If you have Borland C++ code, it will be great help to me.
Thank you in advance.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi IIHR,
You may also be interested in checking TeeMaps example which uses shape files and full sources are included at, for example:
C:\Program Files\Steema Software\TeeChart 7.08 for Delphi 2006\Examples\TeeMaps
You may also be interested in checking TeeMaps example which uses shape files and full sources are included at, for example:
C:\Program Files\Steema Software\TeeChart 7.08 for Delphi 2006\Examples\TeeMaps
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |