[geotk] Illegal argument: uom
Robert Csok
robert.csok at gmx.de
Thu Mar 18 10:03:29 EDT 2010
Hello Martin,
you are right. The original URL actually is:
http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources /uom/ML_gmxUom.xml#m
I accidentally removed the last part while processing the data because the URL contained a whitespace just before "/uom/ML_gmxUom.xml#m".
The related XML file originated from a CSW request.
Now I still get an IllegalArgumentException after assembling the above URL. The exception reads as follows:
Exception in thread "main" java.lang.IllegalArgumentException: Illegal argument: "uom=http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/uom/ML_gmxUom.xml#m".
Maybe Geotk currently does not accept suffixes like "#m".
Robert
Am 18.03.2010 11:00, schrieb Martin Desruisseaux:
> Hello Robert
>
> Thanks for your XML fragment. After a closer look, it seems that the URL
> given to the uom attribute is incomplete. The provided URL is:
>
> http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources
>
>
> (note: maybe the path should be completed with "/uom/gmxUom.xml"), and
> some stuff are expected at the end for giving the actual units.
>
> Current Geotk implementation actually ignores the URL, but expects a
> "@gml:id" fragment at the end of it. For example:
>
> @gml:id='m'
>
> An alternative more often seen with the "http://" protocol is to end the
> URL with something like "#m".
>
> How do you generated the XML? Do you have any control on it? Otherwise
> I'm not sure what should be the Geotk default behavior when the URL is
> incomplete...
>
> Martin
--
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02
More information about the Geotoolkit
mailing list