Re: [Qgis-user] features saved to geoserver with swapped coordinates
On 2/17/22 8:21 AM, Raymond Nijssen wrote: > In the "New WFS Connection" dialog there's a checkbox for "Swap ax > orientation" (or something similar, my QGIS is not in English right now). I asked the user to check that but the checkbox is not checked. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] features saved to geoserver with swapped coordinates
One of the users who edits data of a geoserver instance reported the following: - she imported in qgis a gpx file - she copied the features to a wfs layer connected to a remote geoserver, the features were positioned correctly on the map - she saved the data When she checked the result on the site where the layer data are publicly available, she found out that the data from the imported gpx were not where they should've been. She run qgis and found the features from the imported gpx now were not in the correct position. I checked the coordinates of the features in the gpx files and of the imported ones and discovered that in geoserver the coordinates were swapped. The features in the gpx are in northern Italy (approx coordinates lat 46, long 11), those saved in geoserver are in the sea north of Somalia (approx. coords lat 11, long 46). I checked the settings of the layer, of qgis, of the gpx, but everything seems ok. I tried the same operations on another device and everything worked as expected. What should I check? Qgis 3.16.8-Hannover Windows 10 Version 2009 Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Update WFS layer field type
On 2/10/22 3:21 PM, Richard Duivenvoorde wrote: > Off course users sometimes update their data (like you), so in the > Geoserver web interface, go to 'Server Status' and then click the > 'Reload' (the bottom button): Configuration and catalog. > That refreshes Geoserver's internal metadata... (which for what I know > only is cached in memory). FIY I added a new field to a postgis table, then I checked in the relative geoserver layer if the new field was there (it was). I saved the geoserver layer. I tried again changing conf/web.xml and checked the layer using curl and describefeatureType but the new field was missing from the response. I tried Server status - Configuration and catalog - Reload too and checked again with describefeatureType but the new field was still missing. That Geoserver installation has some other problem that shouldn't be related to this problem, but who knows. After restarting geoserver the new field was there. maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Update WFS layer field type
On 2/10/22 3:21 PM, Richard Duivenvoorde wrote: > Off course users sometimes update their data (like you), so in the > Geoserver web interface, go to 'Server Status' and then click the > 'Reload' (the bottom button): Configuration and catalog. > That refreshes Geoserver's internal metadata... (which for what I know > only is cached in memory). I'm pretty sure I did that too. And I edited conf/web.xml so tomcat should have reloaded configuration and catalog one way or the other. I'll do a test when I'll delete the field I added out of despair. :-) Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Update WFS layer field type
On 2/10/22 9:19 AM, Richard Duivenvoorde wrote: > Can you confirm (F12 in QGIS, seeing the requests), that QGIS is > requesting WFS_describeFeatureType? Thank you, I didn't know the QGIS Network logger, I lost hours trying to find out how to log network requests :-( I used the function Copy as cURL and tested it from a terminal. The response of geoserver doesn't include either the new field or the updated type field. So it must be a geoserver problem. Perhaps it caches the attributes definitions. I restarted geoserver and now the attributes are ok. I'll ask on the geoserver mailing list if that is the expected behaviour. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Update WFS layer field type
On 2/9/22 1:34 PM, emmexx wrote: > In geoserver the field type is displayed correctly but in qgis it isn't, > in layer properties - fields the field type is still the old one (int > instead of string). I didn't find a way to edit it. Same problem if I add a new field to the postgis table. I can update the fields definitions in geoserver, I can see that the attributes of the table are updated when I send a WFS_describeFeatureType request to geoserver but qgis doesn't update the field list and the field type. I tried to remove the WFS connection in Browser, I cleared the cache in Settings - Options - Network but the field list doesn't change. Is this a bug? maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Update WFS layer field type
I had to change the type of a field in a postgis table. The table is used in a geoserver layer and Qgis has access to that layer as a WFS layer. In geoserver the field type is displayed correctly but in qgis it isn't, in layer properties - fields the field type is still the old one (int instead of string). I didn't find a way to edit it. Is it possible? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] regexp_match stopped working after update
On 12/8/19 11:39 PM, Nyall Dawson wrote: > Can you provide detailed steps to reproduce? I can't reproduce it now. :-( Anyway the steps to try to reproduce are: - open a vector layer with features (multilines) - select the layer - open the Select by expression window - enter the expression regexp_match( "myField" ,'.*\\b(44)\\b.*') - click on Select features. The expected result is the selection of all the features that have 44 inside the value in myField. Yesterday nothing was selected, now all the expected features are selected. I'm running qgis in archlinux as a qemu vm, it could be something wrong with that environment not qgis. I'll check if I can reproduce and in which conditions. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] regexp_match stopped working after update
I used for a long time the following expression to select features on a layer: regexp_match( "myField" ,'.*\\b(2|9)\\b.*') myField values are numbers separated by a comma (e.g. 3,43,87.) I used it successfully last week too. 2 or 3 days ago I updated qgis to 3.10.0 and that expression stopped working. Other expressions work as expected: regexp_match( "myField" ,'43') The example expression inside the expression editor has a different result yet: regexp_match('QGIS ROCKS', '\\sROCKS') gives me 5 while the online help says it should give 4. Any suggestion? Thank you maxx p.s. I use qgis on Archlinux. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] not advertised wfs layers
I installed qgis 2.18.16 on slackware 14.2 and now when I try to open a project saved with a previous version a window opens up with one wfs layer listed as containing connection errors. Tha layer is one of others defined in a geoserver server, the only difference from the others is that this one is not advertised (Advertise is a layer property in Geoserver). Is it possible to load a not advertised wfs layer in this version of qgis? thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] pasted gpx line simplified
I loaded a gpx file (Vector - gps - gps tools - Load gpx file). I selected the line just loaded, then Edit - Copy features and then Edit - Paste features - New vector layer (or new memory vector layer). The pasted line is different from the gpx line, it is a simplified version of it. Is this a feature? Is there some parameter to set? thank you maxx Qgis is a rather old 2.10.1 running on slackware ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] QGIS crashes opening wfs layer
I installed qgis 2.18.4 on slackware 14.2 (http://qgis.gotslack.org/). I slightly modified the compilation option to enable spatialite. When I try to open a wfs vector layer qgis crashes. Gdb output and backtrace: src/core/qgsmaprenderer.cpp: 213: (adjustExtentToSize) [0ms] 6.7566848874092065,40.1852046012878290 : 18.636521720488,47.2066830635070644 src/core/qgsmaprenderer.cpp: 221: (adjustExtentToSize) [0ms] Adjusted map units per pixel (x,y) : 0.00774997622761505, 0.00774997622761505 src/core/qgsmaprenderer.cpp: 223: (adjustExtentToSize) [0ms] Recalced pixmap dimensions (x,y) : 1574, 906 src/core/qgsscalecalculator.cpp: 129: (calculateGeographicDistance) [0ms] Distance across map extent (m): 697310 src/core/qgsscalecalculator.cpp: 86: (calculate) [0ms] scale = 1.6744e+06 conversionFactor = 39.3701 src/core/qgsmaprenderer.cpp: 228: (adjustExtentToSize) [0ms] Scale (assuming meters as map units) = 1:1674398.5704983938485384 src/gui/qgsmapcanvas.cpp: 688: (refresh) [0ms] CANVAS refresh already scheduled src/gui/qgsmapcanvas.cpp: 704: (refreshMap) [45ms] CANVAS refresh! src/core/qgsmaprenderersequentialjob.cpp: 29: (QgsMapRendererSequentialJob) [1ms] SEQUENTIAL construct src/core/qgsmaprenderersequentialjob.cpp: 63: (start) [2ms] SEQUENTIAL START src/core/qgsmaprenderercustompainterjob.cpp: 37: (QgsMapRendererCustomPainterJob) [0ms] QPAINTER construct src/core/qgsmaprenderercustompainterjob.cpp: 64: (start) [0ms] QPAINTER run! src/core/qgsmaprenderercustompainterjob.cpp: 66: (start) [0ms] Preparing list of layer jobs for rendering src/core/qgsscalecalculator.cpp: 40: (setMapUnits) [0ms] Map units set to 2 src/core/qgsmaprendererjob.cpp: 182: (prepareJobs) [0ms] CACHE VALID: 0 src/core/qgsmaprendererjob.cpp: 192: (prepareJobs) [1ms] Rendering at layer item bicitalia_tracce5a20170514103445416 src/core/qgsmaprendererjob.cpp: 208: (prepareJobs) [0ms] layer bicitalia:tracce5a: minscale:0 maxscale:1e+08 scaledepvis:0 blendmode:0 src/core/qgsvectorlayerrenderer.cpp: 93: (QgsVectorLayerRenderer) [2ms] rendering v2: SINGLE: LINE SYMBOL (1 layers) color 157,20,230,255 src/core/qgsmaprenderercustompainterjob.cpp: 102: (start) [0ms] Rendering prepared in (seconds): 0.003 src/core/qgsmaprenderercustompainterjob.cpp: 240: (doRender) [1ms] [thread:0x1c85c00] Starting to render layer stack. src/providers/wfs/qgswfsutils.cpp: 64: (getCacheDirectory) [1ms] [thread:0x1c85c00] Creating our cache dir /home/maxx/.qgis2//cache/wfsprovider/pid_11128 src/providers/wfs/qgswfsutils.cpp: 162: (updateTimestamp) [0ms] [thread:0x1c85c00] Updating keep-alive [New Thread 0x7fff5dac0700 (LWP 11215)] src/core/qgsvectorfilewriter.cpp: 295: (init) [2ms] [thread:0x1c85c00] forced UTF-8 encoding for SpatiaLite Thread 12 "Thread (pooled)" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff5b2bf700 (LWP 11179)] 0x7fffeed68414 in spatialite_init () from /usr/lib64/libspatialite.so.5 (gdb) Backtrace (gdb) backtrace #0 0x7fffeed68414 in spatialite_init () at /usr/lib64/libspatialite.so.5 #1 0x7008ec9f in () at /usr/lib64/libgdal.so.1 #2 0x70093d6d in () at /usr/lib64/libgdal.so.1 #3 0x700977d3 in () at /usr/lib64/libgdal.so.1 #4 0x70085582 in OGR_Dr_CreateDataSource () at /usr/lib64/libgdal.so.1 #5 0x754aac46 in QgsVectorFileWriter::init(QString, QString, QgsFields const&, QgsWKBTypes::Type, QgsCoordinateReferenceSystem const*, QString const&, QStringList, QStringList, QString*, QgsVectorFileWriter::FieldValueConverter*, QString const&, QgsVectorFileWriter::ActionOnExistingFile) () at /usr/lib64/libqgis_core.so.2.18.4 #6 0x754af8c5 in QgsVectorFileWriter::QgsVectorFileWriter(QString const&, QString const&, QgsFields const&, QGis::WkbType, QgsCoordinateReferenceSystem const*, QString const&, QStringList const&, QStringList const&, QString*, QgsVectorFileWriter::SymbologyExport) () at /usr/lib64/libqgis_core.so.2.18.4 #7 0x7fff6f6b15b1 in () at /usr/local/lib/qgis/plugins/libwfsprovider.so #8 0x7fff6f6b5b79 in () at /usr/local/lib/qgis/plugins/libwfsprovider.so #9 0x7fff6f68a120 in () at /usr/local/lib/qgis/plugins/libwfsprovider.so #10 0x7fff6f68a880 in () at /usr/local/lib/qgis/plugins/libwfsprovider.so #11 0x754ecd2c in QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator(QgsVectorLayerFeatureSource*, bool, QgsFeatureRequest const&) () at /usr/lib64/libqgis_core.so.2.18.4 #12 0x754eddf0 in () at /usr/lib64/libqgis_core.so.2.18.4 #13 0x75500504 in () at /usr/lib64/libqgis_core.so.2.18.4 #14 0x753644e5 in QgsMapRendererCustomPainterJob::doRender() () at /usr/lib64/libqgis_core.so.2.18.4 #15 0x7536478b in QgsMapRendererCustomPainterJob::staticRender(QgsMapRendererCustomPainterJob*) () at /usr/lib64/libqgis_core.so.2.18.4 #16 0x75365ccc in () at /usr/lib64/libqgis_core.so.2.18.4 #17 0x747bdcba in () at /usr/lib64/libQtCore.so.4 #18 0x747ca3bc in ()
[Qgis-user] $length null for wfs geoserver layer
When I add a calculated field to a wfs geoserver layer (based on postgis) to get the length of multiline geometries, all records have a NULL value. Why is that? thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Connect lines in Geoserver
On 05/10/2016 10:40 AM, emmexx wrote: > I enable snapping, create the line, add the points and snap the starting > and ending nodes to other lines, then I save. > If I try to move the connecting node in qgis, both lines move. > But when I check on geoserver the 2 lines are not connected (I use that > layer for routing). I exported the layer data to josm and even there I > see that the lines are not connected. Upon further investigation I found out the problem arises from the number of significant digits of the nodes. The node pre-existing in the layer has coordinates: POINT(9.9145925045 45.6483308807) The connected node in the newly created line has coordinates: POINT(9.9145925 45.64833088) Why is that? If I snap a node in an existing node, shouldn't the same coordinates be used? maxx p.s. the coordinates shown are extracted using select ST_AsText(geom) from (select (ST_DumpPoints(g.geom)).* from... ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Connect lines in Geoserver
I was trying to update a lines layer from geoserver (WFS) to add a new line and to connect it to other lines. I remember I did that in the past but I'm not sure now. I enable snapping, create the line, add the points and snap the starting and ending nodes to other lines, then I save. If I try to move the connecting node in qgis, both lines move. But when I check on geoserver the 2 lines are not connected (I use that layer for routing). I exported the layer data to josm and even there I see that the lines are not connected. What am I doing wrong? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] crash loading missing wfs connection
Il 01/23/2016 08:46 PM, Richard Duivenvoorde scrisse: Tried to reply your scenario here with latest master: - one 2.8 geoserver on 8080, layer foo - one 2.6 geoserver on 8080 without layer foo - starting qgis with 2.8/foo - while layer loaded, stop 2.8 and start 2.6 - no problems, only I miss data (off course) That is not my scenario. :-) I create a geoserver instance that I call gs281. Its url is http://mypublicurl:8080/gs281/wfs username: foo password: 1234 I start qgis and add a connection to a layer of that instance. I close qgis. I stop geoserver and start the production instance. Its url is http://mypublicurl:8080/geoserver/wfs username: foo2 password: 5678 I start qgis and it crashes. bye maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] crash loading missing wfs connection
I created a wfs connection to a geoserver in qgis 2.10. Now the geoserver is not working anymore. I start qgis and it crashes after loading the gui. The following is in the terminal where I started qgis: Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_en_US] Warning: loading of qt translation failed [/usr/lib/qt/translations/qt_en_US] Warning: QObject: Cannot create children for a parent that is in a different thread. (Parent is QgsNetworkAccessManager(0x9004768), parent's thread is QThread(0x8ed5218), current thread is QThread(0x997ca40) Warning: QObject: Cannot create children for a parent that is in a different thread. (Parent is QgsNetworkAccessManager(0x9004768), parent's thread is QThread(0x8ed5218), current thread is QThread(0x997ca40) Warning: QObject: Cannot create children for a parent that is in a different thread. (Parent is QgsNetworkAccessManager(0x9004768), parent's thread is QThread(0x8ed5218), current thread is QThread(0x997ca40) Segmentation fault I use slackware 14.1 Is this a bug? Is it possible to delete the defunct connection from .config/QGIS/QGIS2.conf ? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] crash loading missing wfs connection
Il 01/23/2016 01:00 PM, Richard Duivenvoorde scrisse: Yes you can delete the 'connections-wfs' lines, then these saved connection will be gone. Connections deleted and qgis starts. I 'think' however, that it will still be around in your project file (though you can edit that one too... to remove it). My file has the right connection. But as Matthias says: it would be good to see if it occurs in newer versions too, because then it's a bug I'll try. Slackware packages are updated not very frequently. So is it a special/public wfs, can you give the connection url? Or is it a local one, which you run yourself? You don't need a specific connection. You can just add a non existent connection to your QGIS2.conf file. My problem surfaced when I temporarily disabled the production geoserver to run a test. I installed on the server a different geoserver version in a different folder. I connected QGIS to this server, run the test and enabled the production server. The production server url was: http://publicip:8080/geoserver/wfs The test server: http://publicip:8080/gs281/wfs Qgis started to crash after deleting the test server. I'll report on other qgis versions as soon as I can. thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Form not opening on osx
Il 12/02/2015 10:13 AM, emmexx scrisse: When I open the layer properties - Fields and click on Edit widget of my widget nothing happens in the debugger. The widget configuration window (Edit widget properties) opens but the only parameter field is missing. If I select (on the left) another type of field (check box, text edit...) their respective configuration parameters are displayed in the window. But if I select again my widget, the configuration parameters of the last selected widget stays on the window. As a test I created a new widget based on Matthias tutorial: http://blog.vitu.ch/10142013-1847/write-your-own-qgis-form-elements First I created the files for a new plugin using the plugin builder. In the test_widget.py file I added the tutorial code (the one using re). In the method initGui of the plugin I added the 2 lines to register the widget. When I try to select my test widget in the field configuration of a layer nothing happens. Only Editable field and Label on top controls are displayed in the widget configuration. Same behaviour as my widget. Is it possible to download a plugin with a custom widget in order to check if I'm doing something wrong in the plugin setup file? thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Form not opening on osx
Il 08/17/2015 01:35 PM, Matthias Kuhn scrisse: From the stack trace it looks like it does not get a widgetwrapper back from the factory. Can you verify if the method in the factory is called before the crash and returns a widget wrapper? Sorry for answering your question after a long time. I do not own a Mac and it is a little bit difficult for me to debug on that os. Meanwhile I found out that my plugin seems to be working only on my development pc (slackware 14.1). :-( I remember I tested it on a windows 7 pc with qgis 2.8.1 too but now it works no more on it so I'm not sure of anything. Anyway the plugin doesn't work on osgeo 9 mini live (qgis 2.8.3), windows 8.1 (qgis 12), windows 7 (qgis 2.8.1), osx (qgis 2.10.*). I tried to debug it on the pc with osgeo 9. I put some breaks on the code in the *_setup.py file. class TreeWidgetWrapperFactory( QgsEditorWidgetFactory ): def __init__( self ): QgsEditorWidgetFactory.__init__( self, "MyTreeWidget" ) def create( self, layer, fieldIdx, editor, parent ): return TreeWidgetWrapper( layer, fieldIdx, editor, parent ) __init__ runs when qgis starts. create and the other methods of TreeWidgetWrapperFactory never run. When I open the layer properties - Fields and click on Edit widget of my widget nothing happens in the debugger. The widget configuration window (Edit widget properties) opens but the only parameter field is missing. If I select (on the left) another type of field (check box, text edit...) their respective configuration parameters are displayed in the window. But if I select again my widget, the configuration parameters of the last selected widget stays on the window. I don't know what else to do. Thank you maxx Matthias On 08/17/2015 01:24 PM, emmexx wrote: Il 08/17/2015 12:51 PM, Matthias Kuhn scrisse: What exactly does this plugin involve? You helped me create it last march! :-) I have a field of comma-separated integers. The user should be able to select one or more values from a tree-like list. The plugin just shows the data in a tree view fashion and manages the transition between field format and treewidget format. I followed the "manual" and your suggestions, see the thread "Customised attributes form". maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Geoserver WFS update request error
Il 11/28/2015 09:34 AM, Richard Duivenvoorde scrisse: 2 options: - xml guru confirms that it is not ok to write a uri in a xmlns attribute No xml guru around here? :-) - if you are able to compile yourself, you could try to change #53 to change to 'wfs' instead of the uri, and check if all requests are still valid... Compiling is not feasible for me. Is there a way to intercept the request using a plugin? Ok perhaps it is easier to compile but what I'dlike to know is who is the "culprit", qgis or geoserver? I posted months ago my problems using qgis and geoserver prior to 2.7.1. I made many tests adding and updating features and everything worked fine. I'd like to know if something changed in qgis and the way the request is created. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Geoserver WFS update request error
I posted the following on the geoserver mailing list but nobody replied. I have a problem when I try to update a multilinestring geometry. I had the same issue in the past, I thought I had solved it but now it is back again. :-( Setup: geoserver 2.7.1 and a test layer connected to a postgis table. Qgis 2.10. I connect to the layer in qgis. I can create a new feature (line), I can update feature attributes but I can't update the geometry of any feature. If I add or move a node I get an error: Transaction failed org.geoserver.wfs.WFSTransactionException: Update error: java.lang.String cannot be cast to com.vividsolutions.jts.geom.Geometry I enabled geoserver debug log and the xml transaction sent from qgis is the following: http://www.opengis.net/wfs; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; version="1.0.0" xmlns:ws1="http://.***; service="WFS" xmlns:wfs="http://www.opengis.net/wfs; xmlns:ogc="http://www.opengis.net/ogc; xsi:schemaLocation="http://.*** http://*.***:8080/geoserver/wfs?SERVICE=WFSVERSION=1.0.0REQUEST=DescribeFeatureTypeTYPENAME=ws1:testSRSNAME=EPSG:4326username=user1password=***; xmlns:gml="http://www.opengis.net/gml;> http://www.opengis.net/wfs; typeName="ws1:test"> http://www.opengis.net/wfs;> http://www.opengis.net/wfs;>geom http://www.opengis.net/wfs;> 8.304399974,44.2324155100271 8.00578959672930246,44.17149441442651892 8.0690913599982,44.1671947399934 http://www.opengis.net/ogc;> http://www.opengis.net/ogc; fid="test.4"/> I tried to execute it in the demo requests and got the same error. So I compared the example xml request created by the demo with the one created by qgis and the only relevant difference is in the xmlns used in any tags or declared in the transaction tag. So I started from a working xml request (based on the one generated by the demo) and modified the tags from the outer tag to transform it to an xml similar to the qgis-generated one. First I modified the transaction tag followed by the Update tag and so on. The transactions were successful up to when I used the following xml: http://www.opengis.net/wfs; service="WFS" version="1.0.0" xmlns:ws1="http://*.***; xmlns:ogc="http://www.opengis.net/ogc; xmlns:wfs="http://www.opengis.net/wfs; xmlns:gml="http://www.opengis.net/gml; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://*.*** http://**.***:8080/geoserver/wfs?SERVICE=WFSVERSION=1.0.0REQUEST=DescribeFeatureTypeTYPENAME=ws1:testSRSNAME=EPSG:4326username=user1password=**;> http://www.opengis.net/wfs; typeName="ws1:test"> http://www.opengis.net/wfs;> http://www.opengis.net/wfs;>geom http://www.opengis.net/wfs;> srsName="http://www.opengis.net/gml/srs/epsg.xml#4326;> 8.304399974,44.2324155100271 8.00578959672930246,44.17149441442651892 8.0690913599982,44.1671947399934 The problem seems to be in the Value tag. If the xml has ... it works. If I change it to http://www.opengis.net/wfs;>... I get the aforementioned error. Any clue on what's wrong here? I suppose the problem is in the way geoserver parses the xml transaction but I wonder if there could be an error in the way qgis generates the xml request. I'm not an expert in wfs-t and xml but my opinion is that both xml are syntactically correct. But the one created by qgis is not working. thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Form not opening on osx
Il 08/17/2015 12:51 PM, Matthias Kuhn scrisse: What exactly does this plugin involve? You helped me create it last march! :-) I have a field of comma-separated integers. The user should be able to select one or more values from a tree-like list. The plugin just shows the data in a tree view fashion and manages the transition between field format and treewidget format. I followed the manual and your suggestions, see the thread Customised attributes form. maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Form not opening on osx
I created a project to edit geoserver data using wfs. The project includes a form created using qgis to edit features. The form uses a plugin to edit data in a field using a treewidget. Everything works as expected when using linux and windows. I tried it on osx using the latest qgis but the form is never shown. Other times trying to edit a feature crashes qgis. Any idea of what could be missing or wrong? Thank you maxx Debug info created by osx after the crash: Process: QGIS [772] Path: /Applications/QGIS.app/Contents/MacOS/QGIS Identiier:org.qgis.qgis2 Version: 2.8.2 (2.8.2 []) Code Type: X86-64 (Native) Parent Process:??? [1] Responsible: QGIS [772] User ID: 501 Date/Time:2015-08-05 14:10:31.718 +0200 OS Verson:Mac OS X 10.10.2 (14C109) Report Version:11 Anonymous UUID:2D109D8B-2E2A-FA80-4582-396895E2431F Time Awake Since Boot: 16000 econds Crashed Thread:0 Dispach queue: com.apple.main-thread Exception Type:EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0100 VM Regions Nea 0x100: -- __TEXT000106c6d000-000107467000 [ 8168K] r-x/rwx SM=COW /Applications/QGIS.app/Contents/MacOS/QGIS Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.qgis.qgis2_gui 0x00010b6fbb0e QgsWidgetWrapper::widget() + 16 1 org.qgis.qgis2_gui0x00010b73fca6 QgsAttributeForm::createWidgetFromef(QgsAttributeEditorElement const*, QWdget*, QgsVectorLayer*, QgsAttributeEditorContext, QString, bool) + 616 2 org.qgis.qgis2_gui0x00010b73fe89 QgsAttributeForm::createWidgetFromDef(QgsAttributeEditorElement const*, QWidget, QgsVectorLayer*, QgsAttributeEditorCotext, QString, bool) + 1099 3 org.qgis.qgis2_gui0x00010b73c8fb QgsAttributeForm::init() + 1307 4 org.qgis.qgis2_gui0x00010b73c2e1 QgsAttribueForm::QgsAttributeForm(QgsVectorLayer*, QgsFeatue const, QgsAttributeEditorContext const, QWidget*) + 331 5 org.qgis.qgis2_gui0x00010b73b5fb QgsAttributeDialog::init(QgsVectorLayer* QgsFeature*, QgsAttributeEditorContextconst, QWidget*) + 255 6 org.qgis.qgis2_gui0x00010b73b8cc QgsAttributeDialog::QgsAttributeDialog(QgsVectorLayer*, QgsFeature, bool, QWidget*, bool, QgsAttributeEdiorContext const) + 150 7 org.qgis.qgis20x000106d95115 QgsFeatureAction::newDialog(bool) + 519 8 org.qgis.qgis2 0x000106d95a1f QgsFeatureAction::addFeature(QMapint, QVariant const, bool) + 993 9 org.qgis.qgis20x00106df211a QgsMapToolAddFeature::adFeature(QgsVectorLayer*, QgsFeature*, bool) + 162 10 org.qgis.qgis20x000106df2a7a QgsMapToolAddFeature::canasMapReleaseEvent(QgsMapMouseEvent*) + 2054 11 og.qgis.qgis20x000106e043c9 QgsMapToolAdvancedDigitizing::canvasReleaseEvent(QMouseEvent*) + 109 12 org.qgis.qgis2_gui 0x00010b7c877a QgsMapCanvas::mouseReleaseEent(QMouseEvent*) + 194 13 QtGui 0x00010c14840b QWidget::event(QEvent*) + 2427 14 QtGui 0x00010c4de40cQFrame::event(QEvent*) + 44 15 QtGui 0x00010c56abb7 QAbstractScrollArea::viewportEvent(QEvent*)+ 23 16 QtGui0x00010c716eeb QGraphicsView::viewportEvent(QEvent*) + 123 17 QtGui 0x00010c56cf40 QAbstractScrollAreFilter::eventFilter(QObject*, QEvent*) + 48 18 QtCore0x00010be2a137 QCoreApplicationPrivate::sendThrougObjectEventFilters(QObject*, QEvent*) +151 19 QtGui 0x00010c0f0b3e QApplicationPrivate::notify_helper(QObject*, QEvent*) + 142 20 QtGui 0x00010c0f6f10 QApplicatin::notify(QObject*, QEvent*) + 8752 21 org.qgis.qgis2_core 0x00010aebe36f QgsApplication::notify(QObject*, QEvent*) + 93 22 QCore0x0010be2a68c QCoreApplication::notifyInternal(QObject*, QEvent*) + 124 23 QtGui 0x00010c0f829d QApplicationPrivte::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidge*, QWidget**, QPointerQWidget, bool) + 333 24 QtGui 0x00010c0a468b qt_mac_handleMouseEvent(NSEvent*, QEvnt::Type, Qt::MouseButton, QWidget*, bol) + 763 25 com.apple.AppKit 0x7fff960fac83 -[NSWindow _reallySendEvent:] + 1052 26 com.apple.AppKit 0x7fff95b8416e -[NSWindow sendEvnt:] + 446 27 QtGui 0x00010c0996f7 -[QCocoaWindow sendEvent:] + 87 28 com.apple.AppKit 0x7fff95b6451 -[NSApplication sendEvent:] + 4183 29 QtGui 0x00010c09e7d4
[Qgis-user] WFS editing on slow connection
I created a project to edit geoserver data using wfs. I usually work using a fast connection and there's no problem loading data and editing. I tried the same project file using the connection of another user and editing becomes almost impossible: the opening of the form with data from a feature takes minutes and operation involving remote data are lengthy. The download speed of the connectione is fast but the upload speed is rather low (dl: 7-8 MB/s, ul: 0.7-0.8 MB/s). There's no other difference between the 2 connections: same project file, same computer, same geoserver, same layer. What is the problem? What can I do to solve? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] splitting gpx file problem
I don't understand the difference in behaviour of the splitting tool when using it on a WFS-T layer and on an imported gpx file. When I split a line of the gpx file it is very difficult to identify the splitted parts: - selecting one of the parts selects all the line - if I copy a selected feature, all the line is copied making it difficult to paste the feature in another layer - if I select the line (after splitting) and use the Cut features tool only the part that I selected is cut Why is that? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] splitting gpx file problem
Il 05/11/2015 02:00 PM, emmexx scrisse: - if I select the line (after splitting) and use the Cut features tool only the part that I selected is cut I add another odd behaviour. After cutting the feature I paste it in another layer. What is pasted is not the cut feature but all the line of the other layer. bye maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Segmentation fault at start
I'm using a qgis-master version in parallel with qgis 2.6 on linux slackware 14.1. I used the qgis-master a few times with no problem. A few minutes ago I used it to load a wfs layer from a geoserver and edit a feature. I closed it and now I get a segmentation fault: ./qgis Running from build directory! - source directory: /home/myuser/QGIS-master/QGIS-master - output directory of the build: /home/myuser/QGIS-master/QGIS-master/build-master/output Warning: loading of qgis translation failed [/home/myuser/QGIS-master/QGIS-master/build-master/output/i18n/qgis_en_US] Warning: loading of qt translation failed [/usr/lib/qt/translations/qt_en_US] Warning: !!! prefix path was requested, but it is not valid - we do not run from installed path !!! Warning: QObject: Cannot create children for a parent that is in a different thread. (Parent is QgsNetworkAccessManager(0xa832958), parent's thread is QThread(0xa706570), current thread is QThread(0xbb76088) Segmentation fault Qgis 2.6 works as expected. What should I check/delete/restore? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WFS-T update to geoserver fails
Il 02/27/2015 06:51 PM, Scott scrisse: This matches my own experiences with trying to edit a WFS-T from GeoServer using QGIS. I typically get an error saying unexpected html response or something to that effect. The edits will make it into the layer in GeoServer but will not update in QGIS on commit (just like you have seen). I'm using GeoServer 2.6 (but it's consistent for 2.4, and 2.5) and QGIS 2.6 (also a problem since 2.2 at least). The GeoServer is on an Ubuntu VM so I don't believe this is unique to AWS deployments. An update on my problems with geoserver. One of the developers provided a patch and now I can use qgis/geoserver without any problem. The patch is in the master development release. There's a thread on the geoserver mailing list: Problem with QGis and WFS-T bye maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/18/2015 09:39 AM, Matthias Kuhn scrisse: I tested and it is not your fault. It's about the python bindings that seem not to support certain C++ constructs (in particular private virtual methods). I have just pushed a fix to master, so if you are working with that your code should run fine now (or with the next nightly). This can also be backported to 2.8.2. I would appreciate a short feedback if it also workd for you. I compiled master and it works. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/13/2015 10:50 AM, Matthias Kuhn scrisse: Create a python plugin that registers a custom widget like the one in the referenced blog post. Following your tips I created a plugin that registers a tree widget. And following the tutorial that you linked I was able to add a parameter to set the layer that the treewidget should use as a model (sort of) for data. There's only one glitch. I expected that that parameter would be saved when saving the project and loaded when opening it. But that is not the case. class TreeWidgetWrapperFactory( QgsEditorWidgetFactory ): ... def readConfig( self, elem, layer, idx ): Read a config object from an XML element pdb.set_trace() config = dict() config['MyTreeWidget'] = elem.attribute( 'MyTreeWidget' ) return config The readConfig function never runs. I don't understand what could be wrong because I copied and pasted the tutorial code for that class and changed only the name of the parameter where to save the configuration (MyTreeWidget instead of rule.) All other functions regarding config['MyTreeWidget'] in the wrapperConfig and WrapperFactory classes work as expected. Inside the qgs file of the project I found 2 instances where the parameter is present: projectlayers layercount=2 ... expressionfields/ edittypes edittype widgetv2type=MyQTreeWidget name=TYPE widgetv2config fieldEditable=1 labelOnTop=0 MyTreeWidget=tags/ /edittype /edittypes ... attributeactions/ edittypes edittype widgetv2type=MyQTreeWidget name=TYPE widgetv2config fieldEditable=1 labelOnTop=0 MyTreeWidget=tags/ /edittype /edittypes What am I missing? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/13/2015 11:36 AM, Matthias Kuhn scrisse: Once you have registered your custom widget it will appear in the list of available widgets in Layer Properties Fields. QGIS will then be able to connect it to a particular (QTreeWidget) widget on a .ui form by the field name and the object name of the widget on the form. If I understand correctly, once I have registered the custom widget, the connection between qgis and the .ui file must be established by setting the custom widget for each field I want to be customised (in qgis fields page). Am I right? I thought that once the Attribute editor layout was set to Provide ui-file, the settings in the Fields page of qgis would cease to be loaded. But is there no interference between the .ui file and the field settings? I mean, I could associate a field in Qt interface to a combo and set it to a Date/Time in Qgis. Isn't that a problem? Is there a priority rule? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/12/2015 11:32 AM, Matthias Kuhn scrisse: This tree widget can then be positioned with the d'n'd designer (or a QtDesigner form if you like) together with other attributes this layer has. After one day of trial and error I surrender. My knowledge of qgis, qt and pyqgis is too poor to go on without any tip from some expert developer. I would like to use the interface I created using Qt interface. I understand that I should let qt interface and qgis share some info about my custom widget but it is not as simple as suggested in the article you posted. I suppose I should use the Promoted feature of qt interface but I'm not sure about what should be the content of the header file. There are various articles about adding a custom widget in qt but there's no 2 lines of code recipe. It's not a problem to code, I just don't want to lose another day to accomplish nothing. Is there a more detailed tutorial about this argument? Or can somebody write 2 lines with some directions so I can continue on my own? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/13/2015 10:50 AM, Matthias Kuhn scrisse: Is this enough information or is there anything in particular where you need more? What I'm failing to understand is how qgis can distinguish between a standard widget and a customised one. Let's say I want to add to my interface a standard qt widget and a customised one. I mean a standard QLineEdit and a non standard one. How can qgis automagically use my custom code only on the customised one? Should I check the name of the widget or some othe property? Thank you very much maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Customised attributes form
I'm new to qgis programming and to the inner workings and APIs. I'd like to use a customized form for editing feature attributes. I found out the relevant articles on the qgis blog and it works for simple elements. But I need a more complex widget and an even more complex management of some of the attribute values. I have one field whose value is a comma separated list of ids. The allowed values must be chosen from a tree. I tried to use a QTreeWidget but I couldn't find a way to manage the transition from the value in the field and its representation in the tree widget and vice versa. I tried to find some signal that let me intercept the feature value before it is passed or loaded by the tree widget and to intercept the tree widget value before it is passed to the feature. Something like beforeLoadValue and beforeSaveValue. But I'm not sure that is the right strategy in qgis and qt. I'm not even sure if it's possible to intercept (and modify) the values of the feature. Any comments and suggestions are welcomed Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/12/2015 09:44 AM, Matthias Kuhn scrisse: This may be what you are looking for: http://blog.vitu.ch/10142013-1847/write-your-own-qgis-form-elements I had already studied that example but I'm not sure that is what I want to accomplish. I want to use a custom interface - I need to organize attributes better than the qgis form can - but I don't understand if, and how, I can mix a custom interface, custom widgets and custo validation. Is that possible? thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/12/2015 10:46 AM, emmexx scrisse: I want to use a custom interface - I need to organize attributes better than the qgis form can - but I don't understand if, and how, I can mix a custom interface, custom widgets and custo validation. Is that possible? I overlooked the Drag and drop designer option. Is that the right path to accomplish what I want? thanks maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Customised attributes form
Il 03/12/2015 11:32 AM, Matthias Kuhn scrisse: If I understand you correctly, you have 1 single attribute that contains a list of values. For that, the linked example is the way to go. Yes, correct. I'll followed the example. I couldn't reconcile a custom widget with a custom form but your suggestion reassures me. I'm not a qt and python expert, so I want to limit my exploration of unknown APIs and programming quirks. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] load remote data (for a join)
Il 03/09/2015 10:38 AM, emmexx scrisse: I'd like to know if it is possible to load non geographical data from a remote source to use them for a join with another layer. The documentation has reference to a SPIT plugin that I don't find in my version of qgis (2.6 linux slackware). I'd prefer not to use a direct connection to a db but if there's no other way. json, xml or a csv like format would be good but access through a remote connection. FYI: I used a fake geojson file and loaded it as a vector layer with source of type Protocol. bye maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] load remote data (for a join)
I'd like to know if it is possible to load non geographical data from a remote source to use them for a join with another layer. The documentation has reference to a SPIT plugin that I don't find in my version of qgis (2.6 linux slackware). I'd prefer not to use a direct connection to a db but if there's no other way. json, xml or a csv like format would be good but access through a remote connection. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WFS-T update to geoserver fails
Il 02/27/2015 05:36 PM, emmexx scrisse: At the end of this message I add the geoserver log when adding a new feature. I attach the log bacause inline a part of it was lost. bye maxx 2015-02-27 16:07:48,672 DEBUG [org.geoserver.security] - AuthenticationCache found an entry for basic, admin:bfa584f5598433a3c1fe16b00acc9c43 2015-02-27 16:07:48,672 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 DEBUG [org.geoserver.ows.OWSHandlerMapping] - Mapping [/wfs] to HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@6ccf6ecc] and 1 interceptor 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - First 4 bytes of XML doc are : 3C ('') 54 ('T') 72 ('r') 61 ('a') 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 1. Inferred encoding: UTF-8 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Invalid(?) XML declaration: Trans. 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 2. Charset in XML declaration is `null`. 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Trying to create reader basing on existing charset information: `UTF-8`. 2015-02-27 16:07:48,674 DEBUG [org.geoserver.ows] - Raw XML request: Transaction xmlns=http://www.opengis.net/wfs; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.0.0 xmlns:topp=http://www.openplans.org/topp; service=WFS xsi:schemaLocation=http://www.openplans.org/topp http://default-environment-h2ymykfmrd.elasticbeanstalk.com/wfs?SERVICE=WFSamp;VERSION=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=topp:tasmania_roadsamp;SRSNAME=EPSG:4326amp;username=adminamp;password=geoserver; xmlns:gml=http://www.opengis.net/gml;Insert xmlns=http://www.opengis.net/wfs;tasmania_roads xmlns=http://www.openplans.org/topp;TYPE xmlns=http://www.openplans.org/topp;qgis2/TYPEthe_geom xmlns=http://www.openplans.org/topp;gml:MultiLineString srsName=EPSG:4326gml:lineStringMembergml:LineStringgml:coordinates cs=, ts= 145.65235964938219126,-41.51154335626732461 146.15953266438796732,-41.68750134106524285 145.54367971759523925,-42.2153752954590118 146.26303736132794597,-42.58799220444284828 146.26303736132794597,-42.58799220444284828/gml:coordinates/gml:LineString/gml:lineStringMember/gml:MultiLineString/the_geom/tasmania_roads/Insert/Transaction
Re: [Qgis-user] WFS-T update to geoserver fails
Il 01/27/2015 03:05 PM, Richard Duivenvoorde scrisse: Geoserver has a lot of debug levels, try to raise the debuglevel to see what comes in at geoserver? As I've used QGIS in combi with WFS-T before ad your osgeo live setup is succesfull, my first guess is the Boundless Geoserver, but I could be wrong. I get back to this thread because I made no or very little progresso on this. I tried to use a new server. I created an instance of AWS Elastic Beanstalk. To service let you run an app by creating an instance of an AWS virtual server, running on top of it java, tomcat 7 and geoserver 2.6.2. (the official edition, not boundless) I didn't modify anything in geoserver, I only changed the debug level. In qgis I added a new wfs server, with that new server there are no more problems when updating, the wfs service doesn't stop after committing. I loaded the Tasmanian Roads layer. I tried to add new features, updating existing features (only the geometry), updating only attributes of an existing feature, updating both attributes and geometry of an existing feature. I get no error only when committing an update of an attribute, with no change to the geometry. In all the other cases I get a timeout (?) error: Provider errors: Empty response If I reload the layer, in general I find that the changes were committed. At the end of this message I add the geoserver log when adding a new feature. As I already posted in another thread, I got inconsistent results when splitting features. I used qgis on my slackware 14.1 and on windows 7 getting the same results. I wonder if AWS servers have some special settings that make them unusable with geoserver and QGIS. Unfortunately, at the moment QGIS is unusable for editing data on my geoserver. Any suggestion is welcomed. Thank you maxx 2015-02-27 16:07:48,672 DEBUG [org.geoserver.security] - AuthenticationCache found an entry for basic, admin:bfa584f5598433a3c1fe16b00acc9c43 2015-02-27 16:07:48,672 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 TRACE [org.geoserver.ows.OWSHandlerMapping] - No handler mapping found for [/wfs] 2015-02-27 16:07:48,673 DEBUG [org.geoserver.ows.OWSHandlerMapping] - Mapping [/wfs] to HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@6ccf6ecc] and 1 interceptor 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - First 4 bytes of XML doc are : 3C ('') 54 ('T') 72 ('r') 61 ('a') 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 1. Inferred encoding: UTF-8 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Invalid(?) XML declaration: Trans. 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Charset detection phase 2. Charset in XML declaration is `null`. 2015-02-27 16:07:48,674 DEBUG [org.vfny.geoserver.requests] - Trying to create reader basing on existing charset information: `UTF-8`. 2015-02-27 16:07:48,674 DEBUG [org.geoserver.ows] - Raw XML request: Transaction xmlns=http://www.opengis.net/wfs; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.0.0 xmlns:topp=http://www.openplans.org/topp; service=WFS xsi:schemaLocation=http://www.openplans.org/topp http://default-environment-h2ymykfmrd.elasticbeanstalk.com/wfs?SERVICE=WFSamp;VERSION=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=topp:tasmania_roadsamp;SRSNAME=EPSG:4326amp;username=adminamp;password=geoserver; xmlns:gml=http://www.opengis.net/gml;Insert xmlns=http://www.opengis.net/wfs;tasmania_roads xmlns=http://www.openplans.org/topp;TYPE xmlns=http://www.openplans.org/topp;qgis2/TYPEthe_geom xmlns=http://www.openplans.org/topp;gml:MultiLineString srsName=EPSG:4326gml:lineStringMembergml:LineStringgml:coordinates cs=, ts= 145.65235964938219126,-41.51154335626732461 146.15953266438796732,-41.68750134106524285 145.54367971759523925,-42.2153752954590118 146.26303736132794597,-42.58799220444284828 146.26303736132794597,-42.58799220444284828/gml:coordinates/gml:LineString/gml:lineStringMember/gml:MultiLineString/the_geom/tasmania_roads/Insert/Transaction ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WFS-T update to geoserver fails
Il 02/27/2015 06:51 PM, Scott scrisse: This matches my own experiences with trying to edit a WFS-T from GeoServer using QGIS. I typically get an error saying unexpected html response or something to that effect. The edits will make it into the layer in GeoServer but will not update in QGIS on commit (just like you have seen). I'm using GeoServer 2.6 (but it's consistent for 2.4, and 2.5) and QGIS 2.6 (also a problem since 2.2 at least). The GeoServer is on an Ubuntu VM so I don't believe this is unique to AWS deployments. Thank you Scott, at least now I know I'm not crazy. :-) I wonder why qgis works when using OSGeo Live. The OSGeo Live server has special settings? Or is it a network problem? I mean, the OsGeo Live is on a local network. Did you find an alternative to Qgis? Bye maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WFS-T update to geoserver fails
Il 02/27/2015 07:29 PM, Scott scrisse: That's a good question. I haven't tried OSGeo Live. So that works if you run OSGeo Live in a VM and QGIS is on your local machine? Or is the QGIS also in the OSGeo instance? I used an OsGeo Live dvd on a pc and Qgis on my development pc. Or is it a network problem? I mean, the OsGeo Live is on a local network. I've tried it against the VM locally on my machine and also hitting our server on the web. It's the same problem for me. I just did some searching and found a closed issue on this problem here: http://hub.qgis.org/issues/12029. That's me! ;-) Did you find an alternative to Qgis? We used our MapLoom build (an OpenLayers web client) and our mobile app against the same WFS-T and they work very well (see http://geoshape.org for more information). I'll check it out. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Splitting WFS-T line gives wrong results
I tried qgis 2.6 on slackware 14.1 and windows 7 against geoserver 2.6.2 on an AWS Elastic Beanstalk instance. I load the Tasmania Roads layer, enable editing, select a feature, select the Split features tool, split it. When I commit I get the following error: Could not commit changes to layer Tasmania roads Errors: ERROR: 1 feature(s) not added. Provider errors: empty response So I cancel the edits, remove the layer, reload it and I find the original feature and one (only) one of the splitted features. Am I doing something wrong? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WFS-T update to geoserver fails
Il 01/27/2015 03:05 PM, Richard Duivenvoorde scrisse: is it possible to use try out another wfs-t client to talk to your Boundless geoserver (for example a simple openlayers client)? If that one is also failing/hanging then you can point your energy into the Geoserver. I used Kosmo Desktop on the OSGeo Live 8 DVD and successfully edited one record of my wfs geoserver. What can I do now? I mean what can I do to find and solve the problem? Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] WFS-T update to geoserver fails
Il 01/27/2015 03:05 PM, Richard Duivenvoorde scrisse: Hi, is it possible to use try out another wfs-t client to talk to your Boundless geoserver (for example a simple openlayers client)? If that one is also failing/hanging then you can point your energy into the Geoserver. I don't know pretty well the gis desktop software. So I'm uncertain if I'm not using them properly or it is a geoserver or application problem. I tried using udig but I couldn't connect to the wfs layer. I don't want to add other layers of uncertainty to my knowledge. I'll try to connect using some of the clients in the osgeo live distributions. I didn't know about it until last week. With Openlayers and using firefox with firebug (javascript debugging) you can easily extract the wfs-t requests and responses and rerun them using the extention 'poster'. I never used wfs-t with openlayers but I developed some application, it shouldn't be too difficult. What I've seen before with a geoserver wfs-t was that the first edit went wrong (because of the missing of an id or so) and then subsequent edits were ok (though that was with an Oracle-layer). No, it is not my case. I just edit one record, update and the wfs service stops working. You should not be able to 'hang' geoserver using whatever client, you have to look into the logs of geoserver to see what happens. Do you have a lot of layers and is geoserver updating it's cache or so? Not many layers, less than 10. Geowebcache is active. Geoserver has a lot of debug levels, try to raise the debuglevel to see what comes in at geoserver? Geoserver logs are almost empty, no errors, not a clue. I'll try to raise the debuglevel. As I've used QGIS in combi with WFS-T before ad your osgeo live setup is succesfull, my first guess is the Boundless Geoserver, but I could be wrong. I agree with you and unfortunately that is the worst scenario to me. Thank you maxx ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] WFS-T update to geoserver fails
I load a wfs-t layer hosted on a geoserver server and add or modify a feature. When I save the layer, qgis timeouts, the layer is not updated on the server and I have to restart geoserver in order to be able to load it again in qgis (and elesewhere too). The qgis error is: Could not commit changes to layer xxx Errors: ERROR: 1(s) feature not added Provider errors: Empty response I found something similar described here: [[http://gis.stackexchange.com/questions/115471/qgis-wfs-error-could-not-commit-changes-to-layer]] [[http://jira.codehaus.org/browse/GEOS-6059]] Trying to understand what was wrong in the qgis call (update of a feature or new feature added) I used netTool. This program has a tunnel feature that acts as a MITM between an application and a remote server. So I changed the wfs address in qgis from: http://mywebsite:8080/geoserver/wfs to http://localhost:7000/geoserver/wfs and set netTool to tunnel to http://mywebsite:8080 I updated a feature value, saved and to my great surprise everything worked fine. After filing a bug in qgis I was suggested to try to connect to another geoserver. I started osgeo live 8 on another pc on my local network, from my desktop I started qgis, added a WFS layer from geoserver on osgeo live 8, updated a feature and everything worked fine. So I'm asking here for help. I asked for help on the geoserver mailing list but since I'm using the boundless opengeo versione, they can't help. I just want to understand if this is a geoserver only problem or if it derives from the interaction of qgis and geoserver. Why does netTool makes everything work fine? Why can a call from qgis hang geoserver (the wfs service of...)? Any help would be appreciated. maxx QGIS version2.6.1-BrightonQGIS code revisionexported Compiled against Qt4.8.5Running against Qt4.8.5 Compiled against GDAL/OGR1.11.0Running against GDAL/OGR1.11.0 Compiled against GEOS3.3.8-CAPI-1.7.8Running against GEOS 3.3.8-CAPI-1.7.8 PostgreSQL Client VersionNo support.SpatiaLite Version4.0.0 QWT Version5.1.1PROJ.4 Version480 QScintilla2 Version2.6.1 Geoserver is version 2.5 snapshot installed from boundless opengeo suite 4.1 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user