c# - Drawing Oracle spatial geometries with sharp map -
i need create simple app can display geometries oracle spatial in c#. these geometries exported shape file oracle spatial.
i need pan,zoom layers.
when trying use sharp map produces error
could not load file or assembly 'oracle.manageddataaccess, version=4.112.3.60, culture=neutral, publickeytoken=89b483f429c47342' or 1 of dependencies. system cannot find file specified.
my code is
sharpmap.layers.vectorlayer vlay = new sharpmap.layers.vectorlayer("states"); string connstr = "server=10.2.5.55;port=5555;user id=xxxx;password=xxxx;database=mygis;"; vlay.datasource = new sharpmap.data.providers.oracle(connstr, "states_new", "geometry", "objectid"); messagebox.show(vlay.datasource.getfeaturecount().tostring()); mapbox1.map.layers.add(vlay); mapbox1.map.zoomtoextents(); mapbox1.refresh();
i using oracle version of oracle11g_home2 , operating system windows 8. please me..
Comments
Post a Comment