[gdal-dev] Shapefile reprojection - copy and update metadata file
Doug_Newcomb at fws.gov
Doug_Newcomb at fws.gov
Wed Sep 3 13:23:23 EDT 2008
Arrgh! After having some caffeine, I looked at the last line of the
metadata file and saw:
<Esri><CreaDate>20080818</CreaDate><CreaTime>12482200</CreaTime><SyncOnce>FALSE</SyncOnce><SyncDate>20080818</SyncDate><SyncTime>12492900</SyncTime><ModDate>20080818</ModDate><ModTime>12492900</ModTime><DataProperties><lineage><Process
Name="Project_2" ToolSource="C:\Program
Files\ArcGIS\ArcToolbox\Toolboxes\Data Management Tools.tbx\Project"
Date="20080818" Time="113851">Project
K:\basinpro8\BasinPro8\boundary\cb100sl.shp
K:\basinpro8\BasinPro8\boundary\cb100sl_Project.shp
PROJCS['USA_Contiguous_Albers_Equal_Area_Conic_USGS_version',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',0.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-96.0],PARAMETER['Standard_Parallel_1',29.5],PARAMETER['Standard_Parallel_2',45.5],PARAMETER['Latitude_Of_Origin',23.0],UNIT['Meter',1.0]]
#
PROJCS['NAD_1983_StatePlane_North_Carolina_FIPS_3200',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Lambert_Conformal_Conic'],PARAMETER['False_Easting',609601.22],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-79.0],PARAMETER['Standard_Parallel_1',34.33333333333334],PARAMETER['Standard_Parallel_2',36.16666666666666],PARAMETER['Latitude_Of_Origin',33.75],UNIT['Meter',1.0]]</Process></lineage></DataProperties><MetaID>{053D32E4-73BE-41CF-95B6-3807A00C95F3}</MetaID></Esri><dataIdInfo><envirDesc
Sync="TRUE">Microsoft Windows XP Version 5.1 (Build 2600) Service Pack 2;
ESRI ArcCatalog 9.2.6.1500</envirDesc><dataLang><languageCode Sync="TRUE"
value="en"></languageCode></dataLang><idCitation><resTitle
Sync="TRUE">cb100sl</resTitle><presForm><PresFormCd Sync="TRUE"
value="005"></PresFormCd></presForm></idCitation><spatRpType><SpatRepTypCd
Sync="TRUE" value="001"></SpatRepTypCd></spatRpType><geoBox
esriExtentType="decdegrees"><westBL Sync="TRUE">-84.387576</westBL><eastBL
Sync="TRUE">-75.193695</eastBL><northBL
Sync="TRUE">37.632602</northBL><southBL
Sync="TRUE">33.431576</southBL><exTypeCode
Sync="TRUE">1</exTypeCode></geoBox><dataExt><geoEle><GeoBndBox
esriExtentType="native"><westBL Sync="TRUE">1054139.550968</westBL><eastBL
Sync="TRUE">1833461.446476</eastBL><northBL
Sync="TRUE">1688800.246248</northBL><southBL
Sync="TRUE">1345099.136175</southBL><exTypeCode
Sync="TRUE">1</exTypeCode></GeoBndBox></geoEle></dataExt></dataIdInfo><mdLang><languageCode
Sync="TRUE" value="en"></languageCode></mdLang><mdStanName Sync="TRUE">ISO
19115 Geographic Information - Metadata</mdStanName><mdStanVer
Sync="TRUE">DIS_ESRI1.0</mdStanVer><mdChar><CharSetCd Sync="TRUE"
value="004"></CharSetCd></mdChar><mdHrLv><ScopeCd Sync="TRUE"
value="005"></ScopeCd></mdHrLv><mdHrLvName
Sync="TRUE">dataset</mdHrLvName><distInfo><distributor><distorTran><onLineSrc><orDesc
Sync="TRUE">002</orDesc><linkage
Sync="TRUE">file://\\yoda2\gis2\usgs_albers\boundary\cb100sl.shp</linkage><protocol
Sync="TRUE">Local Area Network</protocol></onLineSrc><transSize
Sync="TRUE">3.209</transSize></distorTran><distorFormat><formatName
Sync="TRUE">Shapefile</formatName></distorFormat></distributor></distInfo><refSysInfo><RefSystem><refSysID><identCode
Sync="TRUE">USA_Contiguous_Albers_Equal_Area_Conic_USGS_version</identCode></refSysID></RefSystem></refSysInfo><spatRepInfo><VectSpatRep><topLvl><TopoLevCd
Sync="TRUE" value="001"></TopoLevCd></topLvl><geometObjs
Name="cb100sl"><geoObjTyp><GeoObjTypCd Sync="TRUE"
value="001"></GeoObjTypCd></geoObjTyp><geoObjCnt
Sync="TRUE">347</geoObjCnt></geometObjs></VectSpatRep></spatRepInfo><mdDateSt
Sync="TRUE">20080818</mdDateSt></metadata>
So it was updating everything with the audit trail. Sorry for the noise.
Doug
Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newcomb at fws.gov
---------------------------------------------------------------------------------------------------------
The opinions I express are my own and are not representative of the
official policy of the U.S.Fish and Wildlife Service or Dept. of Interior.
Life is too short for undocumented, proprietary data formats.
Matt Wilkie
<matt.wilkie at gov.
yk.ca> To
Doug_Newcomb at fws.gov
09/03/2008 12:31 cc
PM Even Rouault
<even.rouault at mines-paris.org>,
gdal-dev at lists.osgeo.org
Subject
Re: [gdal-dev] Shapefile
reprojection - copy and update
metadata file
Doug_Newcomb at fws.gov wrote:
> Hmm, The first few lines of the metadata for an older shapefile ( as
> opposed to personal geodatabase) look a bit different
Without examining things closely, I've seen variance in how ArcGIS
populates the metadata (which fields it choses to fill out). It seems to
treat shapes differently from geodatabases feature classes & feature
datasets differently from coverages.
> A quick visual overview of the metadata .xml file associated with
> this shape file does not reveal any other differences. In other
> words, the act of reprojecting the shapefile does not seem to be
> reflected in any automatic captured history in the shapefile
> metadata.
There is a checkbox in Arccatalog to enable/disable automatic metadata
update. Perhaps this is why the example you note was not changed? In my
tests locally the projection is always updated. The attached .xml were
created by projecting a polygon shapefile from Albers to UTM to WGS84.
cheers,
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------
(See attached file: gdal-meta-update.zip)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdal-meta-update.zip
Type: application/zip
Size: 10997 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080903/6bc67403/gdal-meta-update-0001.zip
More information about the gdal-dev
mailing list