19

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


11

We 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". There is some documentation of features and how to use it, with some additional contributions from the World Resources ...


11

The meta property contains the basic raster metadata. The profile property is a super set of meta which includes dataset creation options (i.e inc. tiling, block size, compression etc...). You would use src.profile when you want to ensure you create an exact (empty) clone of an existing dataset. And it is especially useful when you are reading in block ...


10

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

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


8

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


7

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


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


7

You can create a table in PostgreSQL to store your metadata. For example call it public.metadata with the columns you need for your metadata schema. This would be the best way to store metadata in PostgreSQL.


6

You can use a simple python script that uses the Band.SetDescription method to set the band names: """ Set Band descriptions Usage: python set_band_desc.py /path/to/file.ext band desc [band desc...] Where: band = band number to set (starting from 1) desc = band description string (enclose in "double quotes" if it contains spaces) Example: ...


6

From the Wayback Machine: ISRIC WorldGrids The domain worldgrids.org will be discontinued. A set of GIS layers of biophysical properties available at: ftp://isric.org username: gsp password: gspisric for each territory in the world. If you can't find what you are looking for, the following links might be useful http://data.isric....


6

You can use layerOptions to add creation options. layerOptions is a list of strings formated as 'KEY=VALUE'. Hence, embedding a layer description in the geopackage just comes to adding options.layerOptions = ["DESCRIPTION=This are the roads covering such and such, Dec 2019"] Here is a generic function which saves a layer into a geopackage and uses the ...


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


5

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


5

I just created metadata simultaneously for some rasters. They were in a file workspace as opposed to a geodatabase workspace so I'm not sure if that will be an issue. If I understand correctly you are trying to create generic metadata for multiple files. Here's what I did: Open arcCatalog and update the metadata for one of the files Be generic so the ...


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

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


5

You can warp to VRT then translate to your output GeoTIFF. This will also avoid issues that can arise when using gdalwarp to output compressed files. gdalwarp -of VRT \ -ot Int16 \ -s_srs "EPSG:4269" -t_srs "EPSG:3005" \ -tr 15 15 -r bilinear \ -wm 4096 -multi \ -co NUM_THREADS=ALL_CPUS \ -...


5

It represent from January 1st to January 16th. Here you got some information: From Agricultural and Forest Meteorology 161 (2012) 15–25 The day of year (DOY) for each MODIS image represents the first day of the period of the 8- or 16-day composite. The day during the composite period when the best observation is recorded is called the day of pixel ...


5

This information gets added to the Metadata statement of the layer. in QGIS, if you right click - properties - Metadata, you will see where the information is and available to edit. I believe Identifier gets added to the Title field, whilst the Description gets added to the Abstract. This is also available for view on the Information summary page of the ...


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

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

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

First to separate ISO 19115 and 19139: Both describe the same. ISO 19115 ist the formal specification of a comprehensive set of metadata properties (some few, I think around 20, of them core metadata which are mandatory, and a huge set, I think some hundreds of optional metadata properties). ISO19139 is just a XML Schema File (XSD) which you can use to ...


4

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


4

Editor Tracking was introduced at ArcGIS for Desktop 10.1. It allows to track the user name, as well of the date and time, of created and edited features. Additionally, I would create a fields to store the link to supporting documentation for each feature (e.g. Edit_Link). Finally, if you are using an enterprise geodatabase, I would use geodatabase ...


4

There is no universal and reliable way to check when the data in WFS are changed. If the feature type has an attribute for holding a timestamp of the latest update it is of course possible to use that in a filter and read only new features. However, it is impossible to know which features have been deleted without reading the whole feature type and making a ...


4

is creating a standalone .xml file for the feature class an option? ... for instance a temporary XML, which you delete extracting the information you need? If yes, you might want to look into the arcpy command "XSLTransform_conversion". To get acquainted with it, look into ArcToolbox: Conversion Tools > Metadata toolset. The arcpy command only calls this ...


4

Here is the code that finally did the trick. This is the same method proposed by Helene above. Any comments on how to improve this are welcome. #Create XML from RCI Basemap Metadata translator = "C:\Program Files (x86)\ArcGIS\Desktop10.2\Metadata\Translator\ARCGIS2FGDC.xml" arcpy.ExportMetadata_conversion(roads,translator,arcpy.env.workspace+"\\"...


4

@dvdhns suggestions, are what you should do. However you don't need to write a xslt for html conversion because Esri has done this for you. see this code snippet: import arcpy from arcpy import env env.workspace = "C:/data" #set local variables dir = arcpy.GetInstallInfo("desktop")["InstallDir"] xslt = dir + "Metadata/Stylesheets/ArcGIS.xsl" arcpy....


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