Tag Info

Hot answers tagged

15

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


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


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

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

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


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

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

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


4

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


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

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


4

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


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

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.


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

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

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

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


3

This page states that the ExportXML coClass was removed in version 10.0 so this is why your code has stopped working. If you want your code to be as simple as your original code then by far the easiest method is to call the export geoprocessing tool using the IGeoProcessor. Otherwise you would need to obtain the propertyset and write out each element of ...


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



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