Thank you, mbedward and Jody. I won't work any further on the storage of metadata for our shapefiles. I'm also writing the same data (and more) on HDF5 format where I had no problem to add the metadata so it is not really needed.
I may work on the .shp.xml classes at some point in my life (if I find the time to) as a personal project and your answers will help me. If you find any other useful information on the subject, feel free to contact me. G.L. Jody Garnett-2 wrote: > > mbedward passed on some docs; I worked on a project where they just > encoded the information into a simple text file. > > There is also an official ISO standard 19115; and geotools has the classes > to represent those ideas; but no parser/encoder. The standard can be > captured as an XML document; and is used by may "open" services on the web > (implementing OGC Catalog). > > I think you may want to talk your data custodians or suppliers and see > what metadata they have; in my experience it is better to write code for > the information you have than to try and ask people to conform to some > committee's idea of good data hygiene. > > > Jody > > On 29/01/2011, at 4:08 AM, G.L. wrote: > >> >> Hi Jody, >> >> Thank you. I'll have to talk about this to my supervisor. The metadata >> support might not be important enough to justify the effort. But if I >> have >> to program it, I'd be happy to share my work with everyone. >> I can read the DeveloperGuide, don't worry. >> I still have a question, though. Is there any standard for the .shp.xml >> format? If so, could you help me get information about it, please? I >> can't >> find any. >> >> G.L >> >> >> >> Jody Garnett-2 wrote: >>> >>> Three is an official shapefile.shp.xml file format to hold this kind of >>> information; but nobody ever uses it. GeoTools has limited support for >>> reading these files currently; if you would like to review the code and >>> extend the facility it would be appreciated. I see you already found the >>> "info" data structure we fill in with what information we can find. >>> >>> Jody >>> >>> On 28/01/2011, at 2:54 AM, G.L. wrote: >>> >>>> >>>> Hi, >>>> >>>> I use Geotools 2.7 and I managed to build the shapefiles I wanted to >>>> build. >>>> I would like to add some metadata to my files. I'd like to be abble to >>>> open >>>> an existing shapefile and attach information such as: >>>> >>>> name - type >>>> >>>> forecastDateTime - String >>>> generatedDate - String >>>> notes - String >>>> productName - String >>>> organisation - String >>>> latitudeMin - Int >>>> latitudeMax - Int >>>> longitudeMin - Int >>>> longitudeMax - Int >>>> >>>> etc. >>>> >>>> I have found some objects that might be abble to hold some form of >>>> information but no way to write it to a file or read it. I haven't >>>> found >>>> any >>>> example about it. Is there any way to do so? Can anyone please help me? >>>> >>>> Thanks. >>>> >>>> G.L >>>> -- >>>> View this message in context: >>>> http://osgeo-org.1803224.n2.nabble.com/Reading-Writing-metadata-from-to-a-shapefile-tp5966999p5966999.html >>>> Sent from the geotools-gt2-users mailing list archive at Nabble.com. >>>> >>>> ------------------------------------------------------------------------------ >>>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>>> Finally, a world-class log management solution at an even better >>>> price-free! >>>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>>> February 28th, so secure your free ArcSight Logger TODAY! >>>> http://p.sf.net/sfu/arcsight-sfd2d >>>> _______________________________________________ >>>> Geotools-gt2-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>> >>> >>> ------------------------------------------------------------------------------ >>> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >>> Finally, a world-class log management solution at an even better >>> price-free! >>> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >>> February 28th, so secure your free ArcSight Logger TODAY! >>> http://p.sf.net/sfu/arcsight-sfd2d >>> _______________________________________________ >>> Geotools-gt2-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>> >>> >> >> -- >> View this message in context: >> http://osgeo-org.1803224.n2.nabble.com/Reading-Writing-metadata-from-to-a-shapefile-tp5966999p5970728.html >> Sent from the geotools-gt2-users mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! >> Finally, a world-class log management solution at an even better >> price-free! >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires >> February 28th, so secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsight-sfd2d >> _______________________________________________ >> Geotools-gt2-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Reading-Writing-metadata-from-to-a-shapefile-tp5966999p5985835.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
