SfMaps cannot load data from ESRI dbf file

Hi,
I have shapefile created in QGIS.
When I add layer with it to SfMaps it cannot load data from dbf, ShapeData is null and ShapeItems is empty.
            ShapeFileLayer layer = new ShapeFileLayer();
            layer.Uri = uri;            
            layer.ItemsSource = items;
            layer.ShapeIDPath = "OSM_ID";
            layer.ShapeIDTableField = "OSM_ID";

What is wrong with shapefile? And why SfMaps cannot handle it?

Regards, Vasiliy.


Attachment: Shapes_6a2e27ec.zip

1 Reply

AK Ashwin Kumaravel Syncfusion Team September 27, 2017 07:47 PM UTC

Hi Vasiliy,

Thanks for using Syncfusion products,

We have validated your query and created a sample using Maps with your attached shapefile.
In the attached sample, we have placed bubbles over each shape and displayed its OSM_ID over each bubble. These data are read from your dbf files. Each shape has its own OSM_ID’s and those id are displaced over the bubble.

Can you please download the sample from the below link?

Sample link- http://www.syncfusion.com/downloads/support/forum/132879/ze/Maps_WPF-828665440  

Screenshot- 
 

Please get back to us if you have any concern.

Regards,
Ashwin
 


Loader.
Up arrow icon