Tag Info

Hot answers tagged

12

This works for me, using the arcpy.da.Walk function at ArcGIS 10.1 SP1: import arcpy, csv, os workspace = r"c:\GISData" output = r"C:\temp\test.csv" with open(output, 'wb') as csvfile: csvwriter = csv.writer(csvfile) for dirpath, dirnames, filenames in arcpy.da.Walk(workspace): for filename in filenames: desc = ...


10

Here is a Python script for ArcGIS 10 that basically does what you want, except that the output is a CSV file, not a geodatabase table. Feel free to modify and use as you like. Note that it is not well tested and not supported, so use at your own risk. """ This script looks through the specified geodatabase and reports the names of all data elements, their ...


8

As far as I know, UML models are not included with OGC specifications. FYI, the full set of XSDs for published specifications are available here: http://schemas.opengis.net/. Also, you should be able to download the OGC specs (not ISO) for free from here. You could also ask Carl Reed or Raj Singh about making any of UML available, their emails are here: ...


8

See the database dump section on http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Georeferenzierung/Wikipedia-World/en. This gives the option for both a CSV download and a postgreSQL connection. Also look through http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates for other options.


7

When you use Python, you must use the correct modules to do what you want. To find all files in a directory with extension shp, for example, there are much simpler solutions that was presented without the break, which is awful...(as the solution presented by Nathan W, but there are many, many others, just search on Internet) Some examples with relevant ...


6

Check out CatMDEdit. It's open-source and I think its pretty useful for editing metadata related to spatial data. From their website: CatMDEdit is a metadata editor tool that facilitates the documentation of resources, with special focus on the description of geographic information resources. It's also ISO compliant: Metadata edition in ...


6

The easiest way to do this from arcpy is to create an xml file using python and then invoking Import Metadata (Conversion). However, this will overwrite everything. An alternative is to use ArcObjects to obtain an IName to the dataset, cast to IMetadata, and edit the IPropertyset.


6

We have been struggling with this and solved it by having a simple python library built around the arcobjects metadata functions. It's based on a xml-file where the metadata values have been replaced with keywords. You can use these keywords in your python code to get or set the value of a metadata field. Code woud look something like this: import ...


5

"Starting with GDAL 1.10..." "I am using the Python bindings with GDAL 1.9.2..." GDAL 1.10 hasn't been released yet. Beta 1 was released a short while ago or if you're using Windows, you can grab a build of the current trunk (1.10dev) from GISInternals. If you're stuck with 1.9.2 for a while, here's some code to parse envi headers (envi.py) Some ...


5

For Quantum GIS (QGIS) v 2.0 I would recommend the qNote plugin. It will create a dockable window in your project that you can use to save notes about a project. Go to Plugins>Manage and Install Plugins, select Get More and then search for qNote in the plugin manager console. If you are using ArcGIS Desktop, go to File>Map Document Properties. You can ...


4

There is an ANZLIC Compliant Metadata Editor for ArcGIS 10.2 available for download from here. Versions for ArcGIS 10.0 and 10.1 can be downloaded from the same link.


4

An API solution is probably your best bet, but if you are dead-set on using the database dumps, in this Twitter response the WikiLocation API author explains a bit that he is not scraping the entire Wikipedia database dump but only certain tables. I would start by looking at the external links database and looking for the links to GeoHack (probably only ...


4

I suppose I could export the metadata to xml and parse the xml This is the approach that I have used successfully in the past. I posted a script in this answer that does exactly what it sounds like you are talking about (creating an inventory of a geodatabase including certain metadata elements): Creating a table containing all filenames (and ...


4

Metadata is a dynamic thing. "Locking" it probably wouldn't be wise, even if you could. For example, what if they reproject your dataset? The metadata will be incorrect if it were "locked". My suggestion: publish the metadata separately in a clearinghouse and distribute your dataset with links permanent URL to the to "authoritative" metadata. The link ...


3

Heard whispers about GeoGit at FOSS4G. Chris Holmes and others are working on this as a WFS-Versioning replacement, of sorts. Don't know how far along the project is, or how it would tie in with spatial databases like PostGIS... . http://geoserver.org/display/GEOS/GeoGit+approach


3

Sorry to say your not going to find a quick way to do it as of SP2; primarily because Metadata is badly broken @ ArcGIS 10. I really would not expect that sample code you see to work cleanly, I suspect it might even damage the metadata. Your real only option is going to be to do it manually.We undertook a major metadata update project over the last 2 months ...


3

Take a look at the XSLT Transformation GP tool to see if it will meet your needs. I have not used this tool myself and am not familiar with the stylesheets that are provided out-of-the-box.


3

I've had better success using the XSLTransform_conversion operation in my Python geoprocessing scripts. There are a few ESRI-supplied XSL files in the C:\Program Files\ArcGIS\ArcToolBox\Stylesheets directory (on a 32-bit machine). Here's an example of the line using the XSL transform I used in a python script I published to ArcGIS Server: results = ...


3

If you have ArcGIS version 10 or greater, I think your best bet is writing a python script that uses os.walk to look through a defined GIS directory and searches for common GIS file extensions such as .shp, .gdb, .mdb, etc... and writes the result to a comma delimited text file. You can then bring the text file into excel, see code example below: import ...


3

Thanks artwork21 and Nathan W for your response. And yes Nathen's code made the magic. import os, arcpy #create blank text file with open("C:\\Temp\\GISlayers.txt", "w") as txt: for root, dirs, files in os.walk("C:\\Temp\\temp"): for f in files: #look for shapefiles if f.endswith('.shp'): desc = arcpy.Describe(root + "\\" + ...


3

Why without ArcSDE? Are you aware of ArcSDE Personal Geodatabases? ArcSDE Personal Geodatabases are included in ArcGIS for Desktop Standard and Advanced (formerly ArcEditor and ArcInfo) license level without additional license fee. I am talking about ArcSDE Personal Geodatabases. I am not taking about Personal Geodatabases. Sometimes ArcSDE Personal ...


3

Thanks for posting the sample. I'd bet money that PDF was generated automatically from some other format or system that is structured. Before heading down the road of trying to recreate the structure I would (attempt to) contact the data provider/author and ask for the structured metadata. Explain your goal, and they may be happy to give you a raw dump of ...


2

The geometry and attributes should be linked. If you already have the FeatureDataRow object then try getting attribute values with row["ATTRIBUTE_NAME"] If you can't actually get a FeatureDataRow object have a look at the How do I return a set of feature attribute data from a click on a map? page, but you will need to use SharpMap.Data.Providers.ShapeFile ...


2

I believe the tool you want is the XSLTransform_conversion tool. This tool is found in ArcToolbox's Coversion tools. Look in Conversion Tools, then open the Metadata toolset. It's called XSLT Transformation. If you execute it in python, it's the arcpy.XSLTransform_conversion() method. You can look it up in ArcGIS Desktop help for a full description. ...


2

i'm having the same issue with ANZMET xmls and thought i'd pass on this info i found at link: http://www.linz.govt.nz/geospatial-office/about/projects-and-news/anzlic-metadata-profile/faq If an ESRI software user has an Enterprise License Agreement (ELA) including ArcGIS Server products then the ANZLIC Metadata Profile functionality in the GeoPortal Server ...


2

There are Eleven Editors for ISO 19115 http://www.fgdc.gov/metadata/iso-metadata-editor-review 2 Support other Data Storage. Have successful used QR codes to maintain metadata and paper document for a large project - http://code.google.com/apis/chart/image/docs/chart_wizard.html It can be used with a mobile/cell phone without the need on a PC (apart from ...


2

Following this discussion http://www.ogcnetwork.net/node/1323, it seems you must refer to UML ISO diagrams for most UML OGC diagrams. You can get this diagrams on http://www.isotc211.org/hmmg/HTML/


2

Beside geo-network, as proposed by simo, you may be interested by EUOSME. For more information, see there. See also this online example.


2

ElementTree does allow one to programatically edit XML metadata files. I've used this on a recent project to update many tags using information stored in a database. So basically for each shapefile I have a data description, citation, abstract, etc. stored in a table and access the tags using ElementTree and retrieving the metadata using a search cursor. ...


2

Try the USGS MP Metadata Translator. I somehow missed it earlier, but it's producing all of the various HTML I'm familiar with. Part 2: I haven't had much luck with the XSLT Transformation Tool. In fact, no luck. But I'm an ArcGIS 10 client w/ ArcGIS Server 9.3.1. I had filed an ESRI incident for a problem with the arcpy.ExportMetadata_conversion, ...



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