Hi,
I modified the tutor example for the app-schema to use PostGIS and to work with WFS-T 2.0.1 . The reading requests such as GetFeature work well.
When I try Transaction with an Insert I always get the exception from the server:
<ows:ExceptionReport version=“2.0.0” xsi:schemaLocation=“http://www.opengis.net/ows/1.1 http://ubuntu:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd”><ows:Exception exceptionCode=“NoApplicableCode”>ows:ExceptionText{http://home.laghi.eu/tutorial}RoadSegment is read-only</ows:ExceptionText></ows:Exception></ows:ExceptionReport>
I then tried to debug it and found that in Transaction.java:
if (source instanceof FeatureStore) {
FeatureStore<? extends FeatureType, ? extends Feature> store;
store = (FeatureStore<? extends FeatureType, ? extends Feature>) source;
store.setTransaction(transaction);
stores.put(elementName, source);
if (elementNameDefault != null) {
stores.put(elementNameDefault, source);
}
stores2.put(typeRef, source);
} else {
String msg = elementName + " is read-only";
throw new WFSTransactionException(msg, (String) null, element.getHandle());
}
and since source is always of the type MappingFeatureSource which does not extend nor implement FeatureStore it will always fail.
Is it impossible to get transactional operations like Insert work with the app-schema ? If it is possible how should I proceed ?
Regards
Michele
On Thu, Mar 7, 2013 at 3:19 PM, Michele <michele@anonymised.com> wrote:
Hi,
I modified the tutor example for the app-schema to use PostGIS and to work with WFS-T 2.0.1 . The reading requests such as GetFeature work well.
When I try Transaction with an Insert I always get the exception from the server:
This is normal, the app-schema plugin is always read only, since the code supporting writes is completely missing.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
Hi Andrea,
thanks for the response. Do you (or somebody else) if the missing code will be implemented soon ?
Saluti
Michele
On 03/09/2013 11:48 AM, Andrea Aime wrote:
On Thu, Mar 7, 2013 at 3:19 PM, Michele <michele@anonymised.com <mailto:michele@anonymised.com>> wrote:
Hi,
I modified the tutor example for the app-schema to use PostGIS and
to work with WFS-T2.0.1 . The reading requests such as GetFeature
work well.
When I try Transaction with an Insert I always get the exception
from the server:
This is normal, the app-schema plugin is always read only, since the code supporting writes is completely missing.
Cheers
Andrea
--
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Michele,
the app-schema plugin does not support transactions. Data stores created with the app-schema plugin are read-only.
Kind regards,
Ben.
On 07/03/13 22:19, Michele wrote:
I modified the tutor example for the app-schema to use PostGIS and to
work with WFS-T2.0.1 . The reading requests such as GetFeature work well.
When I try Transaction with an Insert I always get the exception from
the server:
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre
On Sat, Mar 9, 2013 at 12:33 PM, Michele <michele@anonymised.com> wrote:
Hi Andrea,
thanks for the response. Do you (or somebody else) if the missing code will be implemented soon ?
As far as I know there are no (short term?) plans to implement write support in that datastore.
Ben should know better than me however.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
On 11/03/13 19:40, Andrea Aime wrote:
On Sat, Mar 9, 2013 at 12:33 PM, Michele <michele@anonymised.com
<mailto:michele@anonymised.com>> wrote:
Hi Andrea,
thanks for the response. Do you (or somebody else) if the missing
code will be implemented soon ?
As far as I know there are no (short term?) plans to implement write
support in that datastore.
Ben should know better than me however.
I am not aware of any plan to add transaction support to app-schema, not even at the project proposal level.
Kind regards,
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre