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:

<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

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to