Hello,
I have a feature class in geobase which has about 1 300 000 features(objects/rows). And when I'm adding this feature class to map, the rendering takes a lot of time. So I want to limit this query(or filter). Definition query(in feature layer properties), and toolbox createFeatureLayer makes arcmap crash. So I wonder if I could query table to 150 objects, create emtpy feature class, add this 150 objects as features, and add this feature class to map. And how do this. I have some code, but it's not working.
What version of ArcGIS and what database type and version are using (enterprise (e.g. Oracle) or file geodatabase)? Have you applied any available service packs for your release of ArcGIS?
There is no reason why ArcMap should crash setting a definition query on a 1.3M features Feature Class, it is just a SQL constraint that your RDBMS should be able to process fine. Just make sure the field(s) you use to filter / query the dataset, are indexed.
Have you checked the integrity of the features by using Check Geometry and Repair Geometry tools?
If you only need visualisation (no edit), so you could query your database, then display your features as Graphic in a GraphicsLayer ?
It's pretty simple to use (see ArcGIS Runtime Java Samples)
I have ArcMap in version 10.2, and Oracle Database 11g Release 11.2.0.3.0 - 64bit Production. ArcMap crash and doesn't close, but it hangs up. Sometimes it shows features(after query definition), but still is not responding. Features are valid.
Field wchich I query are VARCHAR fields, and is not indexed. So my query looks like G5IDD LIKE '066201_1.0001%'. I have additional column, which is substring of G5IDD, so I don't have to user%.
If you only need visualisation (no edit), so you could query your database, then display your features as Graphic in a GraphicsLayer ?
It's pretty simple to use (see ArcGIS Runtime Java Samples)