[Geoserver-devel] [JIRA] (GEOS-8620) using rest api to create spacial directory results in a shapfile store instead of directory of spacial files

bas created an issue

GeoServer / BugGEOS-8620

using rest api to create spacial directory results in a shapfile store instead of directory of spacial files

Issue Type:

BugBug

Affects Versions:

2.12.2

Assignee:

Unassigned

Components:

REST

Created:

07/Mar/18 10:39 AM

Priority:

MediumMedium

Reporter:

bas

When i create a Directory of spatial files (shapefiles) store, using the website it works fine (although browsing still has bugs trough symlinks), but i manage.

When i then get the store using the rest api i can fetch the .xml file containing it’s definition

i get something like this:

<dataStore>
<name>myShapefiles</name>
<type>Directory of spatial files (shapefiles)</type>
<connectionParameters>
<entry key=“memory mapped buffer”>false</entry>
<entry key=“timezone”>Europe/Amsterdam</entry>
<entry key=“create spatial index”>true</entry>
<entry key=“charset”>ISO-8859-1</entry>
<entry key=“filetype”>shapefile</entry>
<entry key=“cache and reuse memory maps”>true</entry>
<entry key=“url”>file:/path/to/shapefiles/myShapefiles/</entry>
</connectionParameters>
</dataStore>

When i save that xml, remove the datastore using the website and then add it again using the rest api, it doesn’t create a ‘Directory of spatial files (shapefiles)’ but a ‘shapefile’
It all functions (i can create layers etc.), but it displays the wrong properties in the website and i can’t edit it anymore (i get wrong dialogs)

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100081-sha1:75480ba)

Atlassian logo