sul-dlss / gis-robot-suite

Robots for GIS accessioning and delivery
Other
9 stars 4 forks source link

ISO 19110 should not be generated if no feature catalog present #104

Closed kimdurante closed 8 months ago

kimdurante commented 8 years ago

https://github.com/OpenGeoMetadata/edu.stanford.purl/tree/742d0ae6f4871acec84b4360e44b7bac8b3f4894/vj/873/xk/9564

drh-stanford commented 6 years ago

how can we tell whether there is a feature catalog? right now i'm using arcgis_to_iso19110.xsl to transform from the .xml to a -iso19110.xml file and it's outputing XML -- i would expect the output to be empty if it didn't have a feature catalog. in that case, we could remove the file if it were empty.

kimdurante commented 6 years ago

ISO19110 XML should only be generated when there is feature catalog information in the record. These are usually only present in vector data, and can be determined from a few XML elements in the ArcGIS metadata: eainfo OR contInfo/FetCatDesc

Raster datasets do not have feature catalogs and should not have an 19110 XML record

drh-stanford commented 6 years ago

Ok, so we have to check the ArcGIS XML to determine if there's a feature catalog? Right now, we don't parse the ArcGIS XML directly I don't think.

kimdurante commented 6 years ago

Parsing the metadata would probably be the easiest way, based on the presence of one or more elements. Or, the data itself could be parsed (contains '.dbf' file) but i'm not sure how reliable that would be.

thatbudakguy commented 1 year ago

@kimdurante and @thatbudakguy will work on this together & see where we're at on it.

whoever picks this up should work with Kim on it.

thatbudakguy commented 1 year ago

relevant robot code: https://github.com/sul-dlss/gis-robot-suite/blob/13216da1e7fe156cb6b6f4be43d11332cd7937ec/lib/robots/dor_repo/gis_assembly/extract_iso19139.rb#L59-L70