How can i manage to load a lot of data from an oracle data base to the gis module.
My goal is to display a googleOverlay with the outline and the name of administrive units on the top. I have 3 tables in oracle corresponding to 3 administratives units (for example it could be Township/Range/Section in USA), and i like to display them according to the zoom level : i dont want to display all the sections when i zoomed out totally. How can i manage to do that?
thanks in advance.
Load massive data
Hi sebastien,
We have OracleFeatureLayer class which is used to load data from oracle database, please take a look at the sample which is located in “HowDoISamples/DataProviders/loadAnOracleFeatureLayer”. And to display them according to the zoom level, you should set the style of the specific zoom level. For example, the code could be like this if you only want the oracle data to display from zoom level 1 to zoom level 5:
string connectString = "User ID=userid;Password=password;Data Source=192.168.0.178/orcl;";
OracleFeatureLayer oracleLayer = new OracleFeatureLayer(connectString, "states", "recid");
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
oracleLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level05;
Hope this helps.
Any more questions please let me know.
Thanks,
Sun
and is it possible to filter the table containing the geometry column so only required geometries are displayed ?
Sebastien
Sebastien,
So you mean you want to decide which feature should display and which one should not? We have a sample to demonstrate how to implement this which is located in “HowDoISamples/FeatureLayers/StopCertainFeaturesFromDrawing”. You need to hook the DrawingFeatures event of the OracleFeatureLayer and filter the feature in that event.
Any more questions please let me know.
Thanks,
Sun