Hot answers tagged

19

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 ...


16

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 = arcpy.Describe(...


9

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 ...


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: http:...


8

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.


8

See the database dump section on http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Georeferenzierung/Wikipedia-World/en. This gives the option for a PostGIS connection. There was also a CSV download option at one time but that seems to have been removed sometime between 2011 and 2016. Also look through http://en.wikipedia.org/wiki/Wikipedia:...


7

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 ...


7

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 ...


7

No, there isn't a GeoJSON metadata specification. Definitely do not put metadata in the properties object as @R.K. suggests. I would suggest, as @albert does, using some JSON-LD. You could add Dublin Core metadata to a feature collection like so: { "@context": { "description": "http://purl.org/dc/terms/description", ... }, "type": "...


7

At ArcGIS 10.1 INSPIRE Metadata is supported in ArcMap/ArcCatalog There are also more information here on the Regulation of Metadata (including metadata on metadata) http://eur-lex.europa.eu/legal-content/en/ALL/;ELX_SESSIONID=Pxf1Jb7C6XMpQpplr1dBPSYRfQZnTvX49LXZX3JMVvWY127CZ5Qx!1783894010?uri=CELEX:32008R1205


6

The Metadata standards and styles help topic is a great place to start and breaks down the different styles.


6

ArcCatalog in ArcGIS 10 automatically generates an HTML file from metadata when you click on the "Description" tab. Right click the document and go to properties, the URL given is an HTML file. If you don't need to do any additional XSL transformations this may meet your needs.


5

There is a metadata management tool for QGIS called "Metatools". I haven't tried it yet but it offers ISO style metadata handling:


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

I just did a quick test of creating a shapefile and then used ArcMap 10.2 to access the Metadata tab of Customize | ArcMap Options where I set the Metadata Style to ISO 19139 Metadata Implementation Specification (but the other choices are likely to behave similarly). In the Catalog window I accessed the Item Description of the shapefile and clicked Edit to ...


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 ...


5

The USGS provides a tool for bulk downloading of Landsat Metadata: Landsat Bulk Metadata Service The MTL files will allways be distributed with the data if you download the scenes through USGS EarthExplorer. If you don't want to download the bands again and just the MTL text files for each scene you can take a look at Amazons Landsat Mirror. Each scene is ...


5

Metadata is one of those things that is generally seen as "well, I know I probably should, but, is it really worth the time...?". And the answer is, for most of us, at least the basic parts of it probably should be. There is a LOT of information that can be put into metadata, depending on what standard you're using. However, a lot of that may not be all ...


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

I realize this is quite a while after the question, but we just had a big need for a similar capability and ended up building a general, free, open source Python library for the purpose. You can find it at https://github.com/ucd-cws/arcpy_metadata or by running a "pip install arcpy_metadata" - (edit: There is some documentation of features and how to use it, ...


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

There is a plugin in QGIS called Metatools that can read/write metadata in ISO19115 format.


4

There's an issue with editing the help for a model that makes it very difficult and unintuitive to do in ArcGIS 10.0 You have to first select the tool in the Catalog Tree, then right click the tool and select 'Item Description' in the ArcToolbox pane. You have to do it in that order. Then edit it like you would edit any metadata item. It is best to do ...


4

If you have ArcGIS Desktop 10.0 (or any of its service packs), 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 ...


4

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 + "\\" + ...


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 possibly ...


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

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 = gp....



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