You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Native C# implementation - no dependencies.
NUnit and NUnit3TestAdapter for running tests - will get restored automatically when building the solution.
#Example
byte[]data=//raw unzipped vectortileVectorTile vt =newVectorTile(data);//get available layer namesforeach(varlyrNameinvt.LayerNames()){//get layer by nameVectorTileLayerlyr=vt.GetLayer(lyrName);//iterate through all featuresfor(inti=0;i<lyr.FeatureCount();i++){Debug.WriteLine("{0} lyr:{1} feat:{2}",fileName,lyr.Name,i);//get the featureVectorTileFeaturefeat=lyr.GetFeature(i);//get feature propertiesvarproperties=feat.GetProperties();foreach(varpropinproperties){Debug.WriteLine("key:{0} value:{1}",prop.Key,prop.Value);}//or get property value if you already know the key//object value = feat.GetValue(prop.Key);//iterate through all geometry parts//requesting coordinates as intsforeach(varpartinfeat.Geometry<int>()){//iterate through coordinates of the partforeach(vargeominpart){Debug.WriteLine("geom.X:{0} geom.Y:{1}",geom.X,geom.Y);}}}}