Tag Info

Hot answers tagged

41

Based on comments from @mattwilkie, and testing myself, I am updating this to change the first few steps. You should be able to install QGIS Wroclaw 1.7.4, with ESRI File GDB support, using the OSGeo4W installer. Here is the process that worked for me. Please note that I am running a Window 7 64Bit computer. The File Geodatabase I am opening was created ...


34

At a high level the way I choose is based on whether users are inexperienced and need nothing more than points, lines and polygons. Shapefiles are ideal for this. If they need annotation, domains for pick lists and validation, raster, etc then use File Geodatabases which are easy to use, fast and can be massive in size. I would never use Personal ...


18

I am not aware of an ArcObjects way to get it, but you can enable the Size column in the Customize menu -> ArcCatalog Options -> Contents tab: This works on file geodatabases but not on SDE geodatabases (in that case you could use some DBMS-specific queries to determine it though). It does not work on personal geodatabases.


13

If you have QGIS running and compiled against GDAL 1.11.0, it now has native FileGDB support via the OpenFileGDB driver. To open a geodatabase in QGIS, be sure to choose "Add vector layer", "Source Type = Directory" and source should be either "OpenFileGDB" or "ESRI FileGDB". Then just browse to the *.gdb folder of choice, press "Open" and the layers will ...


12

We have, on a large project, managed quite well to isolate ArcObjects code from our business logic. That is generally the way to go, I'd say, rather than attempting to mock it all out, even if it is possible using mocking frameworks to get some of the way. Ask yourself, Why it is you feel the need to mock. Typically, it is because of a missing abstraction. ...


11

I recommend that you try the Feature Class To Shapefile ( Conversion) tool instead. This should enable you to convert feature classes within your file geodatabase to shapefiles.


9

You can use a Python script to do the heavy work for ya: Check this out and adapt it to your needs. Needless to say, this is not tested, and don't use it on production data WITHOUT MAKING A BACKUP FIRST. import arcgisscripting gp = arcgisscripting.create(9.3) gp.Workspace = "path_to_your_geodatabase" # you can use absolute path to this function ...


9

Very few contiguous cells in a detailed DEM will have identical values of both slope and aspect. Therefore, if the input features represent contiguous areas of common slope and common aspect, we should expect the result of this intersection procedure to have, on average, almost one feature per cell. There were originally 65,000 * 1000^2 = 6.5 E10 cells in ...


8

I try to avoid using shapefiles as you cannot store domains, relationships, aliases etc. but they are the most portable format when distributing data to other people who are using different GIS systems/tools. Whilst file geodatabases give better performance and are capable of storing huge datasets, everyone above is giving the humble personal geodatabase a ...


7

I don't have an answer for everything, but will give this a shot...I work for a utility setting up a GIS system for land acquisition, maintenance and engineering. We have a whole system of checks and balances where the behind-the-scenes IT server information is not something that I maintain, but can give you a glimpse of what we've seen with our production ...


7

If you are on a Mac you can compile the filegdb driver from scratch using these instructions.


7

The Features tab of the Find tool will do this if you add every feature class in the File Geodatabase to a map. For example, if you are trying to find Afghanistan on a map of the world, you can enter Afghanistan or just Afgh in the Find tool, and you'll get a list of the features from layers in your map that contain that search string in any of ...


7

You can loop through the FC first and find them maximum value. Example: import arcpy nullvalues = ["", " ", None, 0] # Loop through and get Max value cur = arcpy.SearchCursor("Telecommunications Line") fac_id_values = [int(row.FACILITYID[-4:]) for row in cur if row.FACILITYID not in nullvalues] max_value = max(fac_id_values) # Loop through and Calculate ...


6

ESRI intentionally obfuscated the FileGDB file structure so people wouldn't try and mess with it internally: A file geodatabase is stored as a folder of files. When you view the folder with Windows Explorer, apart from the .gdb extension, it looks like any other folder and you can view its contents. The folder contains cryptically named files that ...


6

It works fine. As far as I know osgeo4w compiles the API on it's own. I don't think I've had any trouble with it all year. These are from yesterdays build of QGIS 1.9 Master (fa135f0):


6

There are a few issues that are probably coming into play here. Let's walk through them and see if there are workarounds. The layer type is inherently very difficult to process. Topographic layers are made up of contour lines that tend to be very long, miles in many cases, and depending on the method used to create them, these lines can be extremely ...


6

Speaking from personal experience, it is easy to corrupt a GDB if you manipulate the files individually outside of ArcGIS (i.e. ArcMap or ArcCatalog) with something like Windows Explorer. The individual files that you describe make up the guts of a GDB. Instead of adding these individually to a folder, you should be able to locate, view and utilize the GDB ...


6

From what I know, there is no property to automatically identify compressed file geodatabase with arcgis. But you can see this information in ArcCatalog : A compressed feature class or table has "(compressed)" in the Type column. For routine check, you can also look for the .cdf files inside your .gdb folder using file searching methods (e.g. os.walk() or ...


5

Most people would recommend storing your data in a database for performance reasons, i.e quick to query and search. However I believe there is also the benefit of currency when data is in a database. For example, if you pass a shapefile to a colleague they are likely to use that indefinitely but the data may have been updated. Where as if the data was stored ...


5

Here is an ArcCatalog add-in for ArcGIS 10 that adds a command to update the feature class extent, likely using the same method as @Ragi's VBA code: Re-calculate or update extent of feature class


5

I generally use FGDBs, but it really depends on what you need to store. Like the other posts have mentioned, Personal GDBs are outdated and have size issues. Using a geodatabase allows you to set up a topology, which you can't do with plain shapefiles. Shapefiles hold the exact coordinates of the shapes. In a GDB, the locations are snapped to the nearest ...


5

File geodatabases (FGDB): A FGDB may contain feature datasets, which aid in coordinate system control and data integrity via topology rules. You are on your own with shapefiles. FC's may be up to 256 TB in size with the use of configuration keywords. All component files of a shapefile are limited to 2GB each (source & whitepaper). FC performance is ...


5

It's difficult, though possible, to corrupt a file geodatabase. You should certainly delete the table that was loading when the application was terminated. 22k points doesn't seem like a lot, so there may be other issues at play here (and these issues may increase the probability of corruption).


5

One way is read excel file as feature , then pipe output to WorkSpaceRunner which takes file name as input . WorkSpaceRunner runs another Workspace which takes file as input and does it magic there. I have used WorkSpaceRunner is case where ineeded to read hundreds of las files and reproject and export them to database. Normal workspace which loaded all ...


5

Esri CASE tools with Microsoft Visio, CASE Support. Supported by Esri. ArcGIS Geodatabase Design with UML (for 10.0). Add-in to Enterprise Architect (third party). Unsupported by Esri. ArcGIS Diagrammer (for 9.x, 10.0, 10.1, 10.2). Visual editor (not uml). Schema and data reporting. Unsupported by Esri. Geodatabase Diagrammer (for 9.x, 10.x) Requires ...


5

As John has stated you probably have a lock on your database from the map service. If your feature class is not versioned and the features you are working with are not complex (i.e. they do not participate in a relationship class or a topology), you can do the following safely without interrupting your ArcSDE users: Use ISchemaLock to get an exclusive lock ...


5

File Geodatabase in QGIS 2.4 Note: Use Directory rather than File Once the file geodatbase is loaded save the shapefile


4

Unit Testing for Esri Developers by Dave Bouwman and Brian Noyle is a pretty good starting place - particularly since they threw out some code to look at.


4

You can use AGSSOM command within a python script to stop/start the services at 2am, which may be initiated by a windows scheduler calling a bat file to run your python script.


4

Another advantage of a fgdb over shapefiles is that features in a fgdb can have true curves. In shapefiles, curves are composed of arbitrarily small straight line segments. I'm not sure about personal gdbs.



Only top voted, non community-wiki answers of a minimum length are eligible