Re: [Geotools-devel] Proposal for the HTTPResponse interface

2022-05-26 Thread Jody Garnett
Just saw my example was messed up, now uses httpResponse.getResponseStream consistently: try { if (httpResponse.getStatus() == 200) { return ImageIOExt.readBufferedImage(httpResponse.getResponseStream()); } if (httpResponse.getStatus() == 400) { if ("application/vnd.ogc

Re: [Geotools-devel] Proposal for the HTTPResponse interface

2022-05-26 Thread Jody Garnett
Thanks for the proposal Roar: The GeoTools wiki is not restricted, we can consider setting that up as needed. If I understand correctly the proposal is: - boolean *isOK()*: returns true for HTTP status 200 - not quite sure if you want to consider some of the other success codes su

Re: [Geotools-devel] AttributeDescriptor reporting wrong type name

2022-05-26 Thread Jody Garnett
I remember annoying cite test style problems where tests were checking that an attribute named "location" was required to be a PointPropertyType. OGC 07-036r1 *Table 11* GML object element: gml:Point GML type: gml:PointType GML property type: gml:PointPropertyType *F.2.1.2.4 Default property

Re: [Geotools-devel] AttributeDescriptor reporting wrong type name

2022-05-26 Thread Andrea Aime
I'm actually not sure we ever use the type name... just the descriptor name. I have faint memories about this, but I think the parallel was: - descriptor is like an XML element name - type is like the XML type backing the element They can have legitimately two different names, no? In theory the sa

Re: [Geotools-devel] AttributeDescriptor reporting wrong type name

2022-05-26 Thread Jody Garnett
Please go ahead with the fix, now that GeoServer has the ability to redefine schema attributes (and I hope to add the ability to edit title / abstract) this information will be more widely used and relied on. Jody On Wed, May 25, 2022 at 11:32 PM Roar Brænden wrote: > Hi, > > I was reading som