curses, pushed tab/enter too soon!

On 30 May 2017 at 14:52, Ian Turton <ijtur...@gmail.com> wrote:

> I'm running into an issue with a WPS process which won't write to a
> Shapefile because:
>
> java.io.IOException: Unable to write column metaDataPr : java.lang.Object
>
> Now I don't have any attributes called MetaDataPr but searching the code
> base turns up a bunch of blocks like:
>
> // HACK HACK!! the parser sets no namespace to the properties so we're
>         // doing a hardcode property name black list
>         final List<String> ignoreList = Arrays.asList(new String[] {
> "location",
>                 "metaDataProperty", "description", "name", "boundedBy" });
>
>         for (Iterator<PropertyDescriptor> it = attributes.iterator();
> it.hasNext();) {
>             PropertyDescriptor property = it.next();
>             if (!(property instanceof AttributeDescriptor)) {
>                 continue;
>             }
>             AttributeDescriptor descriptor = (AttributeDescriptor)
> property;
>             Name name = descriptor.getName();
>
>             if (ignoreList.contains(name.getLocalPart())) {
>                 it.remove();
>             }
>         }
>         // / HACK END
>
>
Can anyone shed some light on where this mysterious attribute is coming
from and where I should add this block to my code or shapefile dumper, or
somewhere else?

Cheers

Ian

-- 
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to