Select to view content in your preferred language

Get coordinate data from shp file

870
2
11-27-2020 12:01 AM
MattiasWesterberg
Occasional Contributor
EGIS.ShapeFileLib.ShapeFile shapeFile = new EGIS.ShapeFileLib.ShapeFile();
shapeFile.LoadFromFile("myfile.shp");
string[] record = shapeFile.RenderSettings.DbfReader.GetRecords(shapeFile.RenderSettings.FieldIndex);

I am reading records from a shp file like this. It works fine. But i can not find any coordinates in my record variable.

How do i get the coordinate data?

0 Kudos
2 Replies
JoshuaBixby
MVP Esteemed Contributor

Those library names look like SharpMap · GitHub , is that what you are working with?  If so, I suggest you ask a question on GitHub where the project is hosted.

MattiasWesterberg
Occasional Contributor

Thank You

0 Kudos