[Qgis-developer] gdal 2.0 - needed code changes in QgsOgrProvider

2015-04-05 Thread Mark Johnson
request with the needed changes is not possible. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] plugins using spatialite-amalgamation, pyspatialite

2015-04-05 Thread Mark Johnson
I have opened an issue at: https://hub.qgis.org/issues/12510 the I suggest that plugins that use a hardcoded spatialite-amalgamation be depreciated since they can damage a db created with a later spatialite version. Mark Johnson, Berlin Germany

[Qgis-developer] Question about QEP process

2016-12-27 Thread Mark Johnson
er or submit it now, completing it within the next 7-10 days. There is also the question: keep it short or (what I would prefer) extensive? Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lis

Re: [Qgis-developer] Question about QEP process

2016-12-27 Thread Mark Johnson
> > Hey Mark, > > A QEP should be opened in order for review to take place on any design > changes that might need descussion. > The 'design changes' will be more on how the Georeferencer will work, not QGIS 3.0 itsself. > Also please note that 2.x is not receiving any new features as we are now >

Re: [Qgis-developer] Valid or invalid geom in PostGIS?

2017-01-16 Thread Mark Johnson
ng correct results - when Topological error exists -- and should be corrected Mark Johnson ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Valid or invalid geom in PostGIS?

2017-01-16 Thread Mark Johnson
> > thanks for your feedback. Shouldn't this be reported by ST_IsValid also? > Yes, it should. SELECT ST_GeomFromText('POLYGON((7 7, 77 77, 35 35,7 7))') AS bad_poly, ST_IsValid(ST_GeomFromText('POLYGON((7 7, 77 77, 35 35,7 7))')) AS bad_poly_valid, ST_IsValidDetail(ST_GeomFromText('POLYGON((7

Re: [Qgis-developer] Valid or invalid geom in PostGIS?

2017-01-17 Thread Mark Johnson
> > let me be more clear: there are NO invalid geoms in the DB, as reported > by st_isvalid. what is strange: > * invalidities are reported in qgis log (this may be due to > simplification, thanks Alvaro) > > Then attept an 'ST_Simplify(geom,tolerance)' on these geometries to see if these errors oc

Re: [Qgis-developer] Processing params always n meters?

2017-03-05 Thread Mark Johnson
ndering using MapUnit - retrieve the 1 meter value - multiply by the meter value set in the MapUnit property and use that result This would be an API break that should be done now. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Q

Re: [Qgis-developer] Processing params always n meters?

2017-03-05 Thread Mark Johnson
To add to the last note: If API break is not desired, a 'MetersUnit' could be used - that would implement the the 'transformation' to MapUnits That might even be better to avoid any breaks and be clear for everyone. Mark Joh

Re: [Qgis-developer] Processing params always n meters?

2017-03-06 Thread Mark Johnson
> Are you referring to symbology here? Ie adding a new "map length (metres)" Yes, where the combo-box show - millimeter - pixels - Map units one could add - Meters to Map units Presently definded in QgsSymbolV2 and calulated in QgsSymbolLayerV2Utils::convertToMapUnits and QgsSymbolLayerV2Utils::c

[Qgis-developer] QGIS 3.0: Plans to support librttopo?

2017-03-06 Thread Mark Johnson
case of degrees - the use the librttopo functionality as a part of the 'QgsGeos' would be the most effective way to deal with this This would be a new dependency, but would also offer many other functionalities (such as Topology). Mark Johnson, Berlin Germany __

Re: [Qgis-developer] QGIS 3.0: Plans to support librttopo?

2017-03-06 Thread Mark Johnson
try this out and see if it brings a reasonable result. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.or

Re: [Qgis-developer] QGIS 3.0: Plans to support librttopo?

2017-03-06 Thread Mark Johnson
>> I'm confused - what is missing? The topic here is that when using MapUnits - where the MapUnits are degrees that a constant value (valid around the world) is not possible. If you set this to 5 (intended as meters on the map) - the further you zoom in, the circle will get bigger always showing

[Qgis-developer] Wiki page/area for 'Building QGIS from scratch'

2017-03-17 Thread Mark Johnson
ly installing Qwt Building QScintilla for PyQt5 Building PyQt5 QGIS3 ccmake I would be willing to start this with my experiences. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lis

Re: [Qgis-developer] Wiki page/area for 'Building QGIS from scratch'

2017-03-17 Thread Mark Johnson
>> Can you clarify on which systems you are working and which dependencies cause headaches? In my case I am working on an old machine, where many things have been installed in the past and cause conflicts. So until a new machine can be bought I am attempting to get this done in a custom application

Re: [Qgis-developer] Wiki page/area for 'Building QGIS from scratch'

2017-03-17 Thread Mark Johnson
>> You should instead make your contributions to the "developers guide" - source is at https://github.com/qgis/QGIS-Documentation/tree/release_2. 18/source/docs/developers_guide. I assume you mean the wiki area, which is nice since I have experience in that type of wiki --> https://github.com/geop

[Qgis-developer] RE. Wiki page/area for 'Building QGIS from scratch'

2017-03-17 Thread Mark Johnson
>> No, I mean in the .rst files. Send the changes via a PR. Then it'll be added to the developers guide at Well, I have no idea what : * .rst files are * how to make then or * how to view them The wiki pages I can do on the fly while working this out. Can you live with a wiki version ? - if not I

[Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
initial release of QGIS 3. The present master version does not read tables that have more than one geometry correctly. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
>> I see no use of OGR_F_GetGeomFieldRef() so it seems that you select among the various different geometry fields by relying on the "layer_name(geometry_field_name)" syntax That is caused by the fact that the initial list (QgsOgrProvider::subLayers()) returns only the "layer_name(geometry_field_n

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > In the provider we could decide to allocate layer ids diffently than OGR . > > >> Example if you have a dataset with > > - layer1 (geom1, geom2) > > - layer2 (geom) > > >> Then you would map that to : > > - qgis_ogr_provider_layer_id = 1: layer1, geom1 > > - qgis_ogr_provider_layer_id = 2: laye

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > Application will crash with a Lookup error? Yes. And that's perfectly fine. That's only an issue that can happen for us >> developers playing > > with different versions, and we know how to solve those issues. > > The proposed solution for this constellation for-sees - at application start: r

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > Please keep in mind that's there's some non-negotiables here: > One way or another this matter needs to be resolved before an initial > release of QGIS 3. This topic is only about QGIS 3.0 only. Mark ___ Qgis-developer mailing list Qgis-developer@

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
There are different issues you've raised and that we might want handle or > not: > > 1) make sure that a URI points to the same layer if the datasource evolves > (new layer) > > 2) be able to deal with the corner cases of layers with same name > > > > 1) involves that we cannot always rely on the i

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > Isn't this about PR #3697 - which is opened against 2.18? If #3697 is > abandoned, can I close to clean up the PR queue? Since the problem is not resolved, no. The present QGIS 3.0 cannot table with more than geometry. - at that time there was no QGIS 3 I changed that to 3.0 this morning. M

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > > 1. No extra code will be allowed in master to handle GDAL < 2.0. QGIS > 3.0 has a hard GDAL >= 2.0 requirement, and no code will be accepted > to work around this requirement. The original code did many tasks being coded multiple times - these common tasks are written once in a extra functi

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > The layer name can be stored in subLayers() for conveniency, since it has >> usually a short life. And for subLayers() / askUserForOGRSublayers() make >> the layer id what is used. > > subLayers is not used when read from a project, only when a new source is added. > >> Not sure to what you ar

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > Great - looking forward to seeing you push this to the PR! It'll make > the remaining changes much easier to review. Thats the way it was done when submitted.. Mark ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://l

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > Yet I still see lots of code in that PR like: > > if defined(GDAL_VERSION_NUM) && GDAL_VERSION_NUM >= > GDAL_COMPUTE_VERSION(2,0,0) > > That's what I'm referring to. All this conditional code needs removal > (unless it's testing for something in GDAL > 2.0 ). Mosty in the static functions - Q

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > Ok - I find this thread very confusing. Does this acknowledgement mean > > that you WILL remove these ifdefs from the PR? > > Yes, indeed. > >> Here's the thing: I *want* your work to land in QGIS. It's important > > stuff, and needs to be addressed. But in its current form it won't be > > mer

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-20 Thread Mark Johnson
> > So if we want to address both we need the layer_id and layer_name. I'd say > when you build a OGR URI (mostly in QgisApp::askUserForOGRSublayers()), > then look at the uniqueness of the layer names. If there's layer name > unicity, then use only the layer name. Otherwise fallback to uniquely th

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-21 Thread Mark Johnson
> > So if both a layerid and layername, you would prever layerid over > layername ? no, the other way around Default: layername, only when a duplicate layername exists, should the id be used Checking for duplicate names is done in subLayers() - if layername is unique, id will be set to -1 and sen

Re: [Qgis-developer] Corrections of QgsOgrProvider implementaion of GDAL 2.0

2017-03-21 Thread Mark Johnson
> > That will *not* work for other formats that can have multiple geometry > fields, like GML. Could you send me such a GML to test this? Have you ever seen or have a GML with a duplicate layer-name? but it would probably be cleaner to have a dedicated URI parameter for the > geometry column name

Re: [Qgis-developer] Wiki page/area for 'Building QGIS from scratch'

2017-03-21 Thread Mark Johnson
> > Good - I think it will get outdated quickly and history shows that such > content does not get well maintained. If we had to do anything along these > lines, it could be to have a small chapter which lists all the QGIS > dependencies along with a pointer to the upstream build instructions for

Re: [Qgis-developer] Wiki page/area for 'Building QGIS from scratch'

2017-03-22 Thread Mark Johnson
> > On Ubuntu 17.04, which is based on Qt5.7.1, output from > > `./output/bin/qgis` > > >> `Couldn't load PyQt. > > Python support will be disabled. (a really big deal) > > >> Traceback (most recent call last): > >File "", line 1, in > > ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: v

Re: [Qgis-developer] Wiki page/area for 'Building QGIS from scratch'

2017-03-22 Thread Mark Johnson
> > > Can you live with a wiki version ? > > > - if not I will stop it > > >> Hi Mark, > > >> if you insist ( and I see you do :-) ): > > Well, nobody said it should be stopped > >> Then PLEASE create a system in which you make it clear > > WHICH version of QGIS you are trying to build on > > each

Re: [Qgis-developer] Wiki page/area for 'Building QGIS from scratch'

2017-03-22 Thread Mark Johnson
> > Python support will be disabled. > I assume that these errors came from QGIS3-Dialog: correct? That would mean that QGIS3 has found all of the libQt5* it needs - and thus all paths are correct The used python3 calls - /usr/local/lib/python3.5/dist-packages/PyQt5/QtCore.so so the pythonpath sho

[Qgis-developer] QgsComposerTableV2 in QGIS 3.0

2017-05-03 Thread Mark Johnson
I noticed that although many of the classes 'V2' have been renamed, the class 'QgsComposerTableV2' (together with QgsComposerTextTableV2) has not. (Just in case this was overlooked). Mark ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org Li

Re: [QGIS-Developer] Qgis keeps crashing

2017-05-05 Thread Mark Johnson
> > When I am using the georeferencer plug in, the software is crashing and > the "the application stopped unexpectedly" message appears. Does anyone > knows why? Here it would be important to learn, when using the georeferencer, what the working conditions are: How many gcp-points are being use

[QGIS-Developer] QGIS3 QgsField : adding DATE / DATETIME / BLOB support

2017-05-28 Thread Mark Johnson
r. At the moment only String / Int / Double are supported. Mark Johnson ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/lis

Re: [QGIS-Developer] QGIS3 QgsField : adding DATE / DATETIME / BLOB support

2017-05-28 Thread Mark Johnson
>> What makes you think that? Based on the implementation of the QgsSpatiaLiteProvider (which only supports TEXT, INTEGER and DOUBLE) and the documentation of QgsField. >> Constructor. Constructs a new QgsField object. * \param type Field variant type, currently supported: String / Int / Doub

Re: [QGIS-Developer] QGIS3 QgsField : adding DATE / DATETIME / BLOB support

2017-05-28 Thread Mark Johnson
Good, then I will work those samples into QgsSpatiaLiteProvider. For Spatialite 4.5.0 QgsSpatiaLiteProvider needs to be worked on, which I am doing now. Mark ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.or

Re: [QGIS-Developer] QGIS3 QgsField : adding DATE / DATETIME / BLOB support

2017-05-28 Thread Mark Johnson
>> what are your thoughts on http://osgeo-org.1560.x6.nabble.com/Future-of-spatialite-provider-td5311979. html ? For gpkg: should remain solely with OGR. For VectorLayers (SpatialTables and SpatialViews) is more problematic, since OGR does not support writable SpatialViews, which I use heavily.

Re: [QGIS-Developer] Export layer with measures

2017-05-29 Thread Mark Johnson
>> What GDAL version? You need GDAL >= 2.1 for M values Also the QGIS running must be compiled with GDAL >= 2.1 for this to work. Mark ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis

Re: [QGIS-Developer] Incremental drawing possible?

2017-07-10 Thread Mark Johnson
>> QGIS seems to need to draw the entire background in it's head, then displays it all at once Yes, this is a problem (it seems) with all of the the Raster rendering. With a GeoTiff during Panning, the Background blanks out and pops back, while the Vectors don't. Hard on the eyes when searching fo

[QGIS-Developer] QDateTimeEdit: setting a useful minimum Date

2017-07-11 Thread Mark Johnson
t::ISODate ))); (QDateTime can store lower Dates, but they cannot be displayed as an ISODate) If somebody could give a hint as to where the 'Feature Attributes" Dialog is, I could try this out tomorrow. Mark Johnson ___ QGIS-Developer mailing

Re: [QGIS-Developer] Regular vs spatialite sqlite database

2017-07-24 Thread Mark Johnson
atabase - or where you wish to *transform* to another projection (i.e. ST_Transform(geometry,3068) With "SELECT InsertEpsgSrid(3068)" - you would add an 'EPSG:3068' entry to 'spatial_ref_sys' http://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html#p16 Mark Johns

[QGIS-Developer] Adding a new DataProvider - not found by QgsProviderRegistry

2017-08-29 Thread Mark Johnson
umed, that since Grass also has both a Raster and Vector provider that this would not cause a problem. Some sort of extra step seems to be needed that I have overlooked. Mark Johnson, Berlin Germany ___ QGIS-Developer mailing list QGIS-Developer@lists.osge

Re: [QGIS-Developer] Adding a new DataProvider - not found by QgsProviderRegistry

2017-08-29 Thread Mark Johnson
> > I'm not sure if you are aware of it, but GDAL 2.2 SQLite driver supports > rasterlite2 datasets > (in read-only), provided it is built against librasterlite2. > > Even Yes, I know. This a part of the 'overhaul' of the QgsSpatiaLiteProvider in preparation for Spatialite 4.5.0 which will contai

Re: [QGIS-Developer] Is PySpatiaLite needed for QGIS v3?

2017-10-24 Thread Mark Johnson
QgsSpatiaLiteProvider and adding a QgsRasterLite2Provider is needed. https://groups.google.com/forum/#!topic/spatialite-users/xC65HkmUbPw The pull request for these changes has not yet been reviewed. Mark Johnson, Berlin Germany ___ QGIS-Developer mailing list QGIS

[QGIS-Developer] QGis3: QgsLayerMetadata usage from QgsDataProvider to QgsMapLayer ?

2017-11-10 Thread Mark Johnson
My assumption is that it a Provider would be a major source to gather the needed information an set QgsLayerMetadata. I am doing this now for the new QgsSpatiaLiteProvider. QgsDataProvider does not contain (at present) a mMetadata; member as QgsMapLayer does. So when setDataProvider runs in QgsVe

Re: [QGIS-Developer] Minimum SpatiaLite version 4.2

2017-11-15 Thread Mark Johnson
, whereas the proposed new version (for QGis 3.2) does. Mark Johnson, Berlin Germany ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org

Re: [QGIS-Developer] Support to loading GIS projects from an extended OWC geopackage in the QGIS core

2017-12-18 Thread Mark Johnson
lite connection it is very easy to create an empty pure GPKG Database (106.5 Kb) with: SELECT gpkgCreateBaseTables(); It would contain only 3 SRS (-1,0 and 4326) in 'gpkg_spatial_ref_sys' with all of the other GPKG admin-tables (including 'gpkg_extensions&#x

[Qgis-developer] QGIS georeferencer / vector georeferencer

2015-11-26 Thread Mark Johnson
to new dependencies that have been added Otherwise I would be willing to cooperate with anybody that could get this working as a part of QGIS. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osg

[Qgis-developer] Warning from DigitizingTools about CRS mismatch

2016-04-09 Thread Mark Johnson
s EPSG:25832. The shape file has the following .prj file: ETRS_1989_UTM_Zone_32N - with a 'Z' in 'Zone' as apposed to the small 'z' in 'zone' If QGIS is only checking this, then: 'z' != 'Z' - checking with a 'toLower' could re

[Qgis-developer] ​Geophoto management

2016-07-04 Thread Mark Johnson
on is based on the code of 2 years ago, but will be updated when the integration has been completed. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Geophoto management

2016-07-04 Thread Mark Johnson
eopackage specification had not occurred to me. Mark Johnson ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Geophoto management

2016-07-04 Thread Mark Johnson
> > Will it easily be possible to extract such a photo from the spatialite file? > > No, once created, the database itself could retrieve all the data without spatialite - the exception being that the geometry could not be read The position(s) are stored in extra fields The image itself is a simple

[Qgis-developer] QGIS 2.16 compiling with '-std=c++11', Screen refreshing

2016-08-28 Thread Mark Johnson
centrating on the map while moving, so this 'blinking' is truly a strain on the eyes. --- The above solution seems to have resolved the first issue, since it went on to 54% where it failed while linking qgis. (Undefined reference to `QgsRelationManagerDialog::setLayers(QList const&

[Qgis-developer] QGIS 2.16 compiling with '-std=c++11'

2016-08-29 Thread Mark Johnson
g++ 4.9.1 After looking for the cause of the link problem, I came to the conclusion that my (rather old) git copy has gotten a bit 'confused'. I have made a new copy and have started again (without adding '-std=c++11') - it is now at 40%, well see how fart it goes. ___

Re: [Qgis-developer] FOSS4G code sprint idea: improving SLD

2016-09-02 Thread Mark Johnson
reate these Styles and export them would then a great help for the Database designer. Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubs

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-17 Thread Mark Johnson
oal of the Grant Programme '9)​ Correction of QgsOgrProvider implementaion of GDAL 2.0' was to resolve this problem. Mark Johnson ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/lis

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-17 Thread Mark Johnson
Sorry, I misread the request. In this case, if I have now understood correctly, you are opening the source before retrieving the layer. That would then be everything up to the first '|'. For a file-base source the full-filename with path. For a Database-System such as PostGis the Connection-Str

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-17 Thread Mark Johnson
Be warned though that when using gdal 2.* - GetLayer with the layerid will not (always) work as it did with gdal 1.* Mark ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Uns

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-18 Thread Mark Johnson
= OGR_DS_GetLayer( ogrDataSource, iLayerIndex ); or with the layer-name ogrLayer = OGR_DS_GetLayerByName( ogrDataSource, TO8( sLayerName ) ); when all tasks are completed, the Datasource is closed. Inside QgsOgrProvider all of this is done as needed, but when using the OGR-API directly each

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-18 Thread Mark Johnson
yName( ogrDataSource, TO8( sLayerName ) ); This should work for both PostgreSQL and spatialite based on your samples. Mark Johnson ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-18 Thread Mark Johnson
> > But the above is NOT an ogrDataSource yes, but you are using the OGR-API directly - so you must use the OGR-Syntax i.e. you must 'translate' the syntax used in QgsSpatiaLiteProvider to something OGR will understand. ___ Qgis-developer mailing list Q

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-18 Thread Mark Johnson
> > > Running the automated test is done via: > > > > ctest -V -R ProcessingToolsTest I have never used this before, from where should it be called? Mark ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-18 Thread Mark Johnson
Sorry, but I often have problems with python ... Are you supposed to configure something beforehand? This is what I get: UpdateCTestConfiguration from :.../QGIS/build_release-2_16/DartConfiguration.tcl Parse Config file:/home/mj10777/000_links/gis_software/qgis_git/mj10777/QGIS/build_release-2_1

Re: [Qgis-developer] ogrLayerName in processing/tools/vector.py

2016-10-18 Thread Mark Johnson
> > Didn't you use "ctest" ? Yes, the first list of errors was from that > PYTHONPATH to include ${BUILDDIR}/output/python/plugins. Have done that and now am building the latest branch > using latest tree > in release-2_16 branch Before you wrote branch 'master_2' - that is what I checked ou

[Qgis-developer] Fwd: Plans after friday's release?

2016-10-20 Thread Mark Johnson
Would this halt all updates in the 2 branch? - I was hoping to submit the needed changes for gdal 2.* in QgsOgrProvider in the next week or so Mark Johnson ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org

[Qgis-developer] Python: creating a QgsPolygonV2 from the result of exteriorRing() or interiorRing(n) [QgsCurveV2]

2016-10-22 Thread Mark Johnson
question: How can the srid of a geometry retrieved from a QgsVectorLayer be determined? Mark Johnson ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Correction of QgsOgrProvider implementaion of GDAL 2.0

2016-10-28 Thread Mark Johnson
should be removed. Reasons: As gdal evolves, it will become more difficult to 'emulate' OGR functions that do not exist in gdal 1.* - the inclusion of which would cause a 'symbol lookup error' A proper support for M-Values will probably become more important in the future than it is now. --- (sorry if this is a bit long winded, but one has to start somewhere) Mark Johnson, Berlin Germany ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Correction of QgsOgrProvider implementaion of GDAL 2.0

2016-10-28 Thread Mark Johnson
> > I think you should target master only for your changes (and consider only > GDAL > >= 2 case). It is unlikely they are appropriate for backporting, or that > should be considered in a later stage depending on the impact they have. Since on my older machine, getting master to run properly is pr

Re: [QGIS-Developer] Status of transaction support in Geopackages

2018-02-27 Thread Mark Johnson
ng the extra functionality of Spatialite 5.0. Mark Johnson, Berlin Germany ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Status of transaction support in Geopackages

2018-02-27 Thread Mark Johnson
uture developments. It is also likely that Sandro will take a closer look after the present development phase is over. Mark Johnson, Berlin Germany ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.

Re: [QGIS-Developer] 来自Kurt Stine的邮件

2018-03-10 Thread Mark Johnson
>> Determining if the function gaiaStatisticsInvalidate exists in the C:/OSGeo4W/lib/spatialite_i.lib failed with the following output: gaiaStatisticsInvalidate has existed since Spatialite 4.2, so a version before that must of been found. Could you show a list of files in C:/OSGeo4W/lib/ that co

Re: [QGIS-Developer] 来自Kurt Stine的邮件

2018-03-10 Thread Mark Johnson
>> C:\OSGeo4W/lib\spatialite.lib >> C;\OSGeo4W\lib\spatialite_i.lib This naming convention seems to be normal for OSGeo4W. I found a site that contains the 32 bit Spatialite 4.3 version: http://www.norbit.de/~jef/osgeo4w/x86/release/spatialite/ http://www.norbit.de/~jef/osgeo4w/x86/release/spati

Re: [QGIS-Developer] 来自Kurt Stine的邮件

2018-03-11 Thread Mark Johnson
>> Determining if the function gaiaStatisticsInvalidate exists in the C:/OSGeo4W/lib/spatialite_i.lib failed yes, the first one says it cannot find gaiaStatisticsInvalidate. But if the file size is the same it should be found in spatialite_i.lib, then it looks as if the cmake routine 'CheckFunctio

Re: [QGIS-Developer] 来自Kurt Stine的邮件

2018-03-11 Thread Mark Johnson
That is very likely the cause. At the moment I am working on getting Spatialite/RasterLite2 working on android with arm(32), arm64 X86_64. https://github.com/geopaparazzi/libjsqlite-spatialite-android/wiki/Android_4.5.0.mk ___ QGIS-Developer mailing li

[QGIS-Developer] QgsMapCanvas refresh for geometries only possible?

2018-05-30 Thread Mark Johnson
, QgsMapLayer/QgsVectorLayer classes but I fail to see what is being done differently. If an hint could be given where this done, I would be grateful. Mark Johnson ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https

Re: [QGIS-Developer] QgsMapCanvas refresh for geometries only possible?

2018-05-30 Thread Mark Johnson
ssume that 'CachingEnabled' causes this effect (Raster not being 'refreshed' but just re-using the existing image, while redrawing the changed geometry). BTW: what is the cause of the 'blank' screen effect when the raster is being refreshed? Mark Johnson

Re: [QGIS-Developer] Relative path for GeoPackage/Rasterlite

2018-07-26 Thread Mark Johnson
A possible cause is that the given path is not relative to the diretory from which QGIS was started from. Possibly the value of : QGIS_PREFIX_PATH found in Options/System/Current environment variables Mark ___ QGIS-Developer mailing list QGIS-Developer

Re: [QGIS-Developer] Relative path for GeoPackage/Rasterlite

2018-07-26 Thread Mark Johnson
Am Do., 26. Juli 2018 um 15:32 Uhr schrieb Mark Johnson < mj10...@googlemail.com>: > A possible cause is that the given path is not relative to the diretory > from which QGIS was started from. > > Possibly the value of : > QGIS_PREFIX_PATH > ​Sorry, ​I meant: ​PWD​

Re: [QGIS-Developer] GeoPackages with constraint problems

2018-08-09 Thread Mark Johnson
>> Executing PRAGMA foreign_keys = ON This is also done for Spatialite in the SpatialiteProvider, so this is not a general GeoPackage issue. The need to keep this on is important, since the TRIGGERS enforces the 'sanity' of the data (such as same srid and geometry-type rules). Also the Database-D

Re: [QGIS-Developer] [Qgis-user] New Features in Shape Tools 3.2.0

2018-09-25 Thread Mark Johnson
>> We use a direct port from GRASS: This may also be caused by: /* * From original rttopo documentation: * Tested against: * http://mascot.gdbc.gov.bc.ca/mascot/util1b.html * and * http://www.ga.gov.au/nmd/geodesy/datums/vincenty_direct.jsp */ QgsPointXY QgsDistanceArea::computeSphero