Tag Info

New answers tagged

0

I have cobbled this Python code together from bits around the interweb and it works just fine for me in my win7, Python2.7, arcgis 10.2, Oracle 11g environment. It does CopyDatasets, CopyFeatureClasses, CopyTables from an existing SDE to a new GDB. While it may have some unnecessary modules at "# import modules" i use this as a template and dont mind the ...


0

What I had found was the line features that failed were zig-zagged between two different features in my clip feature. When I merged all my clip features together I no longer get the error and it clips as expected. Not sure why having multiple features in my clip feature would cause this, but merging them together resolved the problem.


0

If you're working with spatialite, here's how to do what you want: The SQL format is INSERT INTO ... SELECT FROM ... So, suppose you have a permanent spatial table "trees" with columns attrib1, attrib2, attrib3. Now one of the field guys brings a new shapefile "new_trees" with equivalent fields col_x, col_y, col_z. You would import the new shapefile into ...


2

In windows command line you could: FOR /D /R %g IN (*.gdb) DO ogr2ogr -update -append -f FileGBD D:\output.gdb x:\incoming\%g input_layername Just place the input_layername after the input dataset. /D tells FOR to search for directories and /R asks it to do it recursively. In a .bat file, replace the '%' with '%%', so %g > %%g Extended batch file ...


1

I don't think there is a hook in the file geodatabase API for this explicitly. But you can use a workaround by checking the file system for the presence of a "..sr.lock" file as mentioned above. File geodatabases are read like folders on the file system and there will be one of these files for each user machine that has an active (or unterminated...) ...


1

Inside a geodatabase you can only store GeoDatabase types, from Esri Help: A key geodatabase concept is the dataset. It is the primary mechanism used to organize and use geographic information in ArcGIS. The geodatabase contains three primary dataset types: Feature classes Raster datasets Tables So, in a GeoDatabase you can only store Tables, ...


1

CopyRows can't output to Excel, it can only output to dBASE, ArcSDE geodatabase, file geodatabase, personal geodatabase or INFO tables. You need to use the TableToExcel_conversion tool. Then you need to use os.path.dirname to get the gdb parent directory. Something like (untested...): import os, arcpy folder = arcpy.GetParameterAsText(0) for dirpath, ...


1

Below your 'CopyRows' command, where you're outputting tables inside the gdb, you need to output essentially to a level 'up', as indicated in your diagram...do this with a simple os.path.dirname(dirpath). (Make sure you've imported the os module.) FYI, to be consistent you should use os.path.join similarly (instead of '+ os.sep +'): os.path.join(dirpath, ...


1

Those two geodatabases are separate datasets. Which makes you think that they should match vertex by vertex? What I think is more probable reason is that vectors really differ. I converted both FileGDB files into shapefiles with ogr2ogr ogr2ogr -f "ESRI Shapefile" out.shp rd_char_mlpst.gdb ogr2ogr -f "ESRI Shapefile" out_2.shp LRS_Arcs.gdb This image ...


1

OK, here is the script I wrote a while back, and I just adjusted it for US States, but it will work for any kind of data, as long as it contains a column with unique values. import arcpy print 'imports over' arcpy.env.overwriteOutput = True # load dataset states = r"F:\Data\States\States_2010.shp" # create feature layer ...


1

I suggest a model-builder based solution. You can create a simple work flow that look as follow: Iterate by row selection extract the Name of each country using Get Field Value (model tools) Save Selected with Country name using the copy features tool; using %I_NAME% to mark feature name with the selected country name, where I_NAME is the variable name of ...


5

Split Layers by Attributes check out this python toolbox. Split Layer by Attributes, State Name, being the attribute you want.


0

AFAIK, QGIS can't load FileGDB using either the ESRI FileGDB API or the OpenFileGDB driver from a zip file, even though GDAL supports reading datasets via the /vsizip/ method. Loading datasets from a zip file is something that needs to be coded into QGIS. Feel free to open a feature request if one doesn't exist already =) Your dataset is probably valid and ...


1

That is the point with licensing of file geodatabases in ArcGIS 10.3. The author protects the geodatabase by creating first a license definition file (.licdef file, which will provide settings for the licensing) and generating a licensed file geodatabase (by copying the source file geodatabase and its data and modifying some of its properties). Thereafter, ...


2

If you have a Dropbox account and if you have enough space left, you could place it in your Dropbox and (temporarily) make a public link that accesses your .gdb. Then simply send your link (which is unlisted) with whom you want to share your data with.


1

You are not supposed to export any of those feature classes or uncompress the geodatabase. From the StreetMap Premium for ArcGIS Technical Restrictions: The detailed street layers (Geocode, Streets, and Routing_Streets) are protected; therefore, you cannot export these layers to a shapefile or other feature class. You also cannot use any ArcGIS ...


0

I prefer to use Feature Class to Feature Class, as you can use it to go back b/n both formats.


0

If I got your question right, in ArcMap, within Catalog window browse the gdb and then right click to Export to SHPs.



Top 50 recent answers are included