Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 20 18:35

    qgep-ninja on gh-pages

    Automatic update from https://g… (compare)

  • Sep 20 13:35
    haubourg commented #492
  • Sep 20 07:48
    ponceta opened #522
  • Sep 19 18:37

    qgep-ninja on gh-pages

    Automatic update from https://g… (compare)

  • Sep 19 14:17
    ponceta commented #519
  • Sep 19 14:16
    ponceta commented #519
  • Sep 19 14:16
    ponceta commented #519
  • Sep 18 08:45
    ponceta closed #505
  • Sep 18 08:44
    ponceta closed #492
  • Sep 18 08:44
    ponceta commented #492
  • Sep 18 08:42
    ponceta commented #492
  • Sep 17 18:33

    qgep-ninja on gh-pages

    Automatic update from https://g… (compare)

  • Sep 15 18:33

    qgep-ninja on gh-pages

    Automatic update from https://g… (compare)

  • Sep 13 18:33

    qgep-ninja on gh-pages

    Automatic update from https://g… (compare)

  • Sep 11 18:32

    qgep-ninja on gh-pages

    Automatic update from https://g… (compare)

  • Sep 09 18:30

    qgep-ninja on gh-pages

    Automatic update from https://g… (compare)

  • Sep 09 14:02

    3nids on fix_delta

    (compare)

  • Sep 09 14:02
    3nids closed #110
  • Sep 09 14:02

    3nids on master

    fix former delta by removing tr… (compare)

  • Sep 09 13:51
    3nids opened #110
Tudor Bărăscu
@tudorbarascu
I'm trying to restore the latest qgep data model and I get pg_restore: [archiver (db)] Error from TOC entry 846; 1259 23699 MATERIALIZED VIEW vw_network_segment postgres pg_restore: [archiver (db)] could not execute query: ERROR: function st_curvetoline(public.geometry, integer) does not exist LINE 1: SELECT ST_CurveToLine($1, 32) ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. QUERY: SELECT ST_CurveToLine($1, 32) CONTEXT: SQL function "st_curvetoline" during inlining Command was: CREATE MATERIALIZED VIEW vw_network_segment AS WITH reach_parts AS ( SELECT row_number() OVER (ORDER BY od_reach_p... pg_restore: [archiver (db)] could not execute query: ERROR: relation "vw_network_segment" does not exist Command was: ALTER TABLE vw_network_segment OWNER TO postgres;
Matthias Kuhn
@m-kuhn
@tudorbarascu You need to update postgis, ST_CurveToLine is only available in newer postgis versions (2.3?)
Tudor Bărăscu
@tudorbarascu
Thanks for the info!
Tudor Bărăscu
@tudorbarascu
Interesting, I have Postgis 2.2.2 and the function is there. Maybe it has changed.
Tudor Bărăscu
@tudorbarascu
@m-kuhn I am recreating the VM. Should I also update the requirements in the docs to postgis 2.3?
Matthias Kuhn
@m-kuhn
Ah yes that would be nice
Tudor Bărăscu
@tudorbarascu
Ok, restoring went well. I'm trying to digitize a reach with QGIS 2.16 as soon as I press ok after completing the form I get Layer vw_qgep_reach: PostGIS error while adding features: ERROR: Geometry type (LineString) does not match column type (CompoundCurve)
@m-kuhn any ideas?
Matthias Kuhn
@m-kuhn
@tudorbarascu can you try to replace something in the .qgs file
<datasource>service='pg_qgep' key='"obj_id"' srid=21781 type=LineString table="qgep"."vw_qgep_reach" (progression_geometry) sql=</datasource>
<datasource>service='pg_qgep' key='"obj_id"' srid=21781 type=CompoundCurve table="qgep"."vw_qgep_reach" (progression_geometry) sql=</datasource>
Tudor Bărăscu
@tudorbarascu
It worked, will make a pull request if you haven't made a commit already.
Matthias Kuhn
@m-kuhn
Thanks for the feedback
Can you include some changes in the PR
Tudor Bărăscu
@tudorbarascu
Yes, what changes?
Matthias Kuhn
@m-kuhn
sed -i.bak 's/type=LineString/type=CompoundCurve/g'
sed -i.bak 's/type=Polygon/type=CurvePolygon/g'
In QGIS turn off provider side simplification for all line and polygon layers
Tudor Bărăscu
@tudorbarascu
I guess I should also add to the docs that QGIS provider side simplification for all line and polygon layers should be turned off?
Matthias Kuhn
@m-kuhn
That cannot hurt.
I think it should be fixed in QGIS (it shouldn't try to simplify curve postgis layers)
That's what triggered qgis/QGIS#3325 but that cannot be merged into 2.18
Tudor Bărăscu
@tudorbarascu
@m-kuhn Thanks for all the help.
Can you please tell me what qgep_en.qgs.cfg and qgep_en_webmap.qgs are for?
qgep_en.qgs.cfg has:
Matthias Kuhn
@m-kuhn
Oh, are they in the repo
they are used for a webmap
Tudor Bărăscu
@tudorbarascu
        "vw_qgep_reach": {
            "abstract": "", 
            "displayInLegend": "True", 
            "baseLayer": "False", 
            "noLegendImage": "False", 
            "id": "vw_qgep_reach", 
            "title": "vw_qgep_reach", 
            "singleTile": "True", 
            "geometryType": "line",
Should the geometry type also change?
Matthias Kuhn
@m-kuhn
Nothing to change there
Tudor Bărăscu
@tudorbarascu
ok, for the webmap thought? I suppose the same changes should go there, right?
I mean, should I simply ignore them or do that same?
Matthias Kuhn
@m-kuhn
I wouldn't change them
As long as they don't make trouble
Tudor Bărăscu
@tudorbarascu
ok, cool!
Tudor Bărăscu
@tudorbarascu
@m-kuhn Do you use any specific version of QGIS for QGEP? I'm trying to use a digitize a drainage channel action for the first time but I get ```
An error occurred during execution of following code:
import qgepplugin

feature = QgsMapLayerRegistry.instance().mapLayer('od_wastewater_structure').getFeatures( QgsFeatureRequest().setFilterExpression( 'obj_id = \'{}\''.format( '' ) ) ).next()
qgepplugin.ui.forms.digitizeDrainageChannel(feature.id(), 'od_wastewater_structure')


traceback.print_exception() failed
On QGIS 2.16
Matthias Kuhn
@m-kuhn
2.16 looks ok
In the python console
QgsMapLayerRegistry.instance().mapLayer('od_wastewater_structure')
Does that work?
Tudor Bărăscu
@tudorbarascu
QgsMapLayerRegistry.instance().mapLayer('od_wastewater_structure')
<qgis._core.QgsVectorLayer object at 0x7f08c0233050>
Yes
Matthias Kuhn
@m-kuhn
How are you triggering the action?
From the feature form?
Tudor Bărăscu
@tudorbarascu
Using the Identify features tool, right clicking on vw_qgep_cover features and choosing Digitize...
I also just tried from the form just for the sake of it and I'm getting the same error.
Matthias Kuhn
@m-kuhn
Can you check this pr
QGEP/QGEP#213
Matthias Kuhn
@m-kuhn
(i.e. the qgep_en.qgs project inside)
Tudor Bărăscu
@tudorbarascu
yep, in 20 mins, thanks
Tudor Bărăscu
@tudorbarascu
It works for the Digitize action (which didn't worked before) but not for the (Digitize channel action)
Tudor Bărăscu
@tudorbarascu
@m-kuhn Does it work for you? If so, what's the Linux flavor/version + QGIS version? I also tested under Windows and it didn't work.
Arnaud Poncet-Montanges
@ponceta
Hi, is there a Qwat gitter?
Tudor Bărăscu
@tudorbarascu
Hi! not that I know of
Arnaud Poncet-Montanges
@ponceta
I'll ask Regis and Denis, they do probably know :smile: