Re: [Qgis-user] [Qgis-developer] QGIS loaded millions of entries

2017-03-04 Thread Tobias Wendorff
Am So, 5.03.2017, 04:03 schrieb Nyall Dawson:
>
> A change I just pushed to master also prevents this full table load if
> you use the "show selected features" mode. So that helps a bit.

Thanks, so this will appear in v3.0?
I'm using OSGeo4W, let me try the nightly builds.

___
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] print composer

2017-03-04 Thread Boaz Bar Ilan
Thanks
I think its because overwheigt. The file itself is few gigas.  The big
problem is to create a legend to one or two layers . It brings forward all
the layers detailed and its impossible to handle.
Thanks
Boaz

בתאריך 5 במרץ 2017 05:12,‏ "Nyall Dawson"  כתב:

> On 4 March 2017 at 15:16, Boaz Bar Ilan  wrote:
> > hallo
> >
> > you are right
> >
> > well, I am trying to export qgis produce into ppt . I want to save the
> image
> > with a legend. I'm trying to activate composer manager in order to
> produce
> > map and  legend and to export it as image to the ppt.  there is not
> reapond
> > from the composer. an it be because of too many layers ?
>
> Thanks for the extra detail!
>
> How many layers have you got? Are any of them remote sources (eg a wms
> or wfs server)?
>
> Could you make a cut-down version of your project which demonstrates
> this issue so that we can investigate?
>
> Cheers,
> Nyall
>
>
> > thanks
> > boaz
> > p.s - qgis 2.14
> >
> > 2017-03-04 6:40 GMT+02:00 Nyall Dawson :
> >>
> >> On 4 March 2017 at 13:54, Stephen Wandling  wrote:
> >> > Are you saying that cultural insensitivity is part of list etiquette?
> >>
> >> I'm just saying that this list is manned by humans. A terse message
> >> with no detail at all provides no value to anyone. You only get out of
> >> this list what you put into it.
> >>
> >> Nyall
> >>
> >>
> >> >
> >> > Stephen
> >> >
> >> >
> >> > On 03/03/2017 6:50 PM, Nyall Dawson wrote:
> >> >>
> >> >> On 4 March 2017 at 03:30, Boaz Bar Ilan
> wrote:
> >> >>
> >> >>>
> >> >>> print composer sopped responsing
> >> >>>
> >> >>> what to do ?
> >> >>>
> >> >>>
> >> >>
> >> >> I'd start by learning some mailing list etiquette - this isn't a chat
> >> >> bot.
> >> >>
> >> >> Nyall
> >> >> ___
> >> >> 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 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 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 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] QGIS maps for Garmin GPS

2017-03-04 Thread Stephen Wandling
[I just noticed the typos in my Subject line.  I hope that has not 
violated any list etiquette.]


Brent,

The OSM project sounds interesting, and as you say, there is more 
interest in high density areas.  If I did not have the number of 
projects on the go that I have, I might take a look at it.


I live on the BC Sunshine Coast and bought 092G042, -043 and -053 from a 
map store in Richmond.  They did not have 092G052 so I downloaded the 
PDF and they plotted it for me.  The outfit they had been getting these 
from went bankrupt and now the have no supplier for these maps.  They 
can plot mine for me, but cannot plot a bunch and sell them.  In the 
world of maps, British Columbia is a black hole.


Ignoring errors, in the maps I purchased, like a very significant local 
creek is not on the provincial or federal maps, and they put another 
creek in it's ravine, the biggest deficiency is that they only show 
about 5% of the vast trail system in the Regional District.  The SCRD 
has these trail files on their open data site, along with lakes, parks, 
etc., so I have no problem getting them.


This mapping, which has been all consuming for the last few months, is 
only a part of a much bigger project.  And I only have so much energy.  
So, I seek the elegant, simple answer for my GPS map.  But, I may just 
shelve that project for now.


Thanks for your insights,

Stephen

On 04/03/2017 7:10 PM, Brent Fraser wrote:

Stephen,

  I'd recommend having another, closer look at the OSM project. It was 
created by by people just like you wanting a better base map.  People 
all over world contribute either by digitizing features using Bing 
imagery on the OSM website, or by uploading their own GPS tracks.  
Various services then take OSM data and render beautiful basemap 
tiles, etc.  so everyone can benefit.


  While their strategy worked very well in England (its birthplace) 
and other areas with a high population density, places like Canada 
have struggled.  The Canadian federal government adjusted its license 
to allow bulk uploading of the 1:50K basemap data.  But as you've 
pointed out, while it is better than nothing, it can be very out of 
date (a lot of maps haven't been updated since the 1980's).  Don't get 
discouraged though; look at it as an opportunity to contribute.  I've 
added trails from my Saskatchewan home town (along with street names, 
building names, etc), and paths in parks in Calgary.  I get quite a 
feeling of satisfaction in seeing them instantly appearing in the 
OpenStreetMap mapping tiles.


  Many of the provinces have taken over base mapping from the Feds.  I 
see that BC has made PDFs of their 1:20K mapping available at:


http://geobc.gov.bc.ca/base-mapping/imagery/topographic.html

  Ironically, while they acknowledge using OSM data in their base 
maps, their own license appears to prevent their data being uploaded 
and used in OSM!  Maybe they will come around to the idea of Open Data.


 What area (or map sheet) are you interested in?

Best Regards,
Brent Fraser

On 3/4/2017 6:13 PM, Stephen Wandling wrote:

Phil,

Someone suggested the same OSM approach in an off list email. Here 
was my response:
I have just taken a look at OSM, and the maps there, for my area of 
interest, are taken from the ancient (pre 1992) British 
Columbia/Canada maps that are very incomplete and riddled with 
errors.  It is because there are no accurate maps of this area that 
I resumed my struggles with GIS and have been making maps and having 
them plotted. 
The areas I am creating maps for are entirely forest areas, with 
streams, trails, roads, parks and that is about it.  No buildings, 
streets, etc.


In the last 20 years or so the mountain bikers and hikers, have put 
in and documented hundreds of kilometers of trails along this coast.  
The OSM maps have a single digit percentage of what is here now.  And 
many they do have have been obliterated by clear cut logging operations.


I have been making simple maps, that meet my needs, and having them 
plotted at a local facility for $15 each, which is cheaper than the 
incomplete/error ridden maps that one can purchase.  I use these maps 
to travel through this area on foot.


Now I wanted a better map for my GPS.  So far, no luck.

Stephen

On 04/03/2017 4:28 PM, Phil (The Geek) Wyatt wrote:
Depending on the size of the area involved and how 'custom' your 
maps are likely to be you may be better off looking at solutions 
from OSM. There are many sites that create files suitable for Garmin 
GPS


http://garmin.openstreetmap.nl/

If the areas are small you could also create KMZ (Google Earth 
Files) and transfer them to your garmin device. These can be created 
in QGIS. Look at the plugin GarminCustomMap.


Cheers - Phil

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf 
Of Stephen Wandling

Sent: Sunday, March 5, 2017 11:03 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] QGOS maps fort Garmin GPS

Re: [Qgis-user] QGOS maps fort Garmin GPS

2017-03-04 Thread Phil (The Geek) Wyatt
No problems Stephen,

Unfortunately many government agencies can't keep up with edits of new 
tracks/trails but that is the beauty of Open Street Map. Your contribution, by 
adding tracks, means that all the folks making derivative products get the 
benefits. You also get the benefit of their knowledge in the creation of 
products to suit your GPS. Indeed you can even use OSM mapping as a background 
in QGIS so you get the same benefits immediately.

If you have some GPS files, drop me a few and I will get them loaded for you to 
get you started.

The Mountain bike community are quite active in some areas and have great wiki 
information on tagging for trails

http://wiki.openstreetmap.org/wiki/Mountain_biking

https://openmtbmap.org/ 

Cheers - Phil


-Original Message-
From: Stephen Wandling [mailto:swandl...@gmail.com] 
Sent: Sunday, March 5, 2017 12:14 PM
To: Phil (The Geek) Wyatt
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] QGOS maps fort Garmin GPS

Phil,

Someone suggested the same OSM approach in an off list email.  Here was my 
response:
> I have just taken a look at OSM, and the maps there, for my area of 
> interest, are taken from the ancient (pre 1992) British 
> Columbia/Canada maps that are very incomplete and riddled with errors.  
> It is because there are no accurate maps of this area that I resumed 
> my struggles with GIS and have been making maps and having them 
> plotted.
The areas I am creating maps for are entirely forest areas, with streams, 
trails, roads, parks and that is about it.  No buildings, streets, etc.

In the last 20 years or so the mountain bikers and hikers, have put in and 
documented hundreds of kilometers of trails along this coast.  The OSM maps 
have a single digit percentage of what is here now.  And many they do have have 
been obliterated by clear cut logging operations.

I have been making simple maps, that meet my needs, and having them plotted at 
a local facility for $15 each, which is cheaper than the incomplete/error 
ridden maps that one can purchase.  I use these maps to travel through this 
area on foot.

Now I wanted a better map for my GPS.  So far, no luck.

Stephen

On 04/03/2017 4:28 PM, Phil (The Geek) Wyatt wrote:
> Depending on the size of the area involved and how 'custom' your maps 
> are likely to be you may be better off looking at solutions from OSM. 
> There are many sites that create files suitable for Garmin GPS
>
> http://garmin.openstreetmap.nl/
>
> If the areas are small you could also create KMZ (Google Earth Files) and 
> transfer them to your garmin device. These can be created in QGIS. Look at 
> the plugin GarminCustomMap.
>
> Cheers - Phil
>
> -Original Message-
> From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf 
> Of Stephen Wandling
> Sent: Sunday, March 5, 2017 11:03 AM
> To: qgis-user@lists.osgeo.org
> Subject: [Qgis-user] QGOS maps fort Garmin GPS
>
> I am running QGIS 2.18.3 and am at a very early learning stage.  I wish to 
> create simple maps, with 2 or 3 shape files for my Garmin GPSMaps 76CSx.  
> This map would consist of Trails and Streams shp files and maybe Contours.  
> It would also be accepted by Mapsource and Base Camp.
>
> There were some tutorials that seemed like they were what I wanted, but they 
> all failed in one regard or another: 1.) They were using an 'ancient' version 
> of qgis.  2.) The maps they produced worked in just about every Garmin GPS 
> except the one I own.  3.) They use a plug-in with a disclaimer that it will 
> demolish my data.  There were other issues, but my memory fails me.
>
> If someone out there is familiar with my situation (and possibly has the same 
> GPS) and can either point me to a site I missed, or outline the steps for me, 
> I would be grateful.
>
> [If it is easier to do in ArcMap, I have access to the ESRI software 
> also.]
>
> Please keep in mind that while I have a general idea about GIS work and have 
> been making some maps, for plotting, that satisfy my needs, I get very lost 
> when I am subjected to acronyms and technical jargon.  If is not clear and 
> straightforward, it will probably be wasted on me.
>
> TIA,
> Stephen
>
> ___
> 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 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] print composer

2017-03-04 Thread Nyall Dawson
On 4 March 2017 at 15:16, Boaz Bar Ilan  wrote:
> hallo
>
> you are right
>
> well, I am trying to export qgis produce into ppt . I want to save the image
> with a legend. I'm trying to activate composer manager in order to produce
> map and  legend and to export it as image to the ppt.  there is not reapond
> from the composer. an it be because of too many layers ?

Thanks for the extra detail!

How many layers have you got? Are any of them remote sources (eg a wms
or wfs server)?

Could you make a cut-down version of your project which demonstrates
this issue so that we can investigate?

Cheers,
Nyall


> thanks
> boaz
> p.s - qgis 2.14
>
> 2017-03-04 6:40 GMT+02:00 Nyall Dawson :
>>
>> On 4 March 2017 at 13:54, Stephen Wandling  wrote:
>> > Are you saying that cultural insensitivity is part of list etiquette?
>>
>> I'm just saying that this list is manned by humans. A terse message
>> with no detail at all provides no value to anyone. You only get out of
>> this list what you put into it.
>>
>> Nyall
>>
>>
>> >
>> > Stephen
>> >
>> >
>> > On 03/03/2017 6:50 PM, Nyall Dawson wrote:
>> >>
>> >> On 4 March 2017 at 03:30, Boaz Bar Ilan  wrote:
>> >>
>> >>>
>> >>> print composer sopped responsing
>> >>>
>> >>> what to do ?
>> >>>
>> >>>
>> >>
>> >> I'd start by learning some mailing list etiquette - this isn't a chat
>> >> bot.
>> >>
>> >> Nyall
>> >> ___
>> >> 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 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 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 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] QGOS maps fort Garmin GPS

2017-03-04 Thread Brent Fraser

Stephan,

  I'd recommend having another, closer look at the OSM project. It was 
created by by people just like you wanting a better base map.  People 
all over world contribute either by digitizing features using Bing 
imagery on the OSM website, or by uploading their own GPS tracks.  
Various services then take OSM data and render beautiful basemap tiles, 
etc.  so everyone can benefit.


  While their strategy worked very well in England (its birthplace) and 
other areas with a high population density, places like Canada have 
struggled.  The Canadian federal government adjusted its license to 
allow bulk uploading of the 1:50K basemap data.  But as you've pointed 
out, while it is better than nothing, it can be very out of date (a lot 
of maps haven't been updated since the 1980's).  Don't get discouraged 
though; look at it as an opportunity to contribute.  I've added trails 
from my Saskatchewan home town (along with street names, building names, 
etc), and paths in parks in Calgary.  I get quite a feeling of 
satisfaction in seeing them instantly appearing in the OpenStreetMap 
mapping tiles.


  Many of the provinces have taken over base mapping from the Feds.  I 
see that BC has made PDFs of their 1:20K mapping available at:


http://geobc.gov.bc.ca/base-mapping/imagery/topographic.html

  Ironically, while they acknowledge using OSM data in their base maps, 
their own license appears to prevent their data being uploaded and used 
in OSM!  Maybe they will come around to the idea of Open Data.


 What area (or map sheet) are you interested in?

Best Regards,
Brent Fraser

On 3/4/2017 6:13 PM, Stephen Wandling wrote:

Phil,

Someone suggested the same OSM approach in an off list email. Here was 
my response:
I have just taken a look at OSM, and the maps there, for my area of 
interest, are taken from the ancient (pre 1992) British 
Columbia/Canada maps that are very incomplete and riddled with 
errors.  It is because there are no accurate maps of this area that I 
resumed my struggles with GIS and have been making maps and having 
them plotted. 
The areas I am creating maps for are entirely forest areas, with 
streams, trails, roads, parks and that is about it.  No buildings, 
streets, etc.


In the last 20 years or so the mountain bikers and hikers, have put in 
and documented hundreds of kilometers of trails along this coast.  The 
OSM maps have a single digit percentage of what is here now.  And many 
they do have have been obliterated by clear cut logging operations.


I have been making simple maps, that meet my needs, and having them 
plotted at a local facility for $15 each, which is cheaper than the 
incomplete/error ridden maps that one can purchase.  I use these maps 
to travel through this area on foot.


Now I wanted a better map for my GPS.  So far, no luck.

Stephen

On 04/03/2017 4:28 PM, Phil (The Geek) Wyatt wrote:
Depending on the size of the area involved and how 'custom' your maps 
are likely to be you may be better off looking at solutions from OSM. 
There are many sites that create files suitable for Garmin GPS


http://garmin.openstreetmap.nl/

If the areas are small you could also create KMZ (Google Earth Files) 
and transfer them to your garmin device. These can be created in 
QGIS. Look at the plugin GarminCustomMap.


Cheers - Phil

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf 
Of Stephen Wandling

Sent: Sunday, March 5, 2017 11:03 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] QGOS maps fort Garmin GPS

I am running QGIS 2.18.3 and am at a very early learning stage. I 
wish to create simple maps, with 2 or 3 shape files for my Garmin 
GPSMaps 76CSx.  This map would consist of Trails and Streams shp 
files and maybe Contours.  It would also be accepted by Mapsource and 
Base Camp.


There were some tutorials that seemed like they were what I wanted, 
but they all failed in one regard or another: 1.) They were using an 
'ancient' version of qgis.  2.) The maps they produced worked in just 
about every Garmin GPS except the one I own.  3.) They use a plug-in 
with a disclaimer that it will demolish my data.  There were other 
issues, but my memory fails me.


If someone out there is familiar with my situation (and possibly has 
the same GPS) and can either point me to a site I missed, or outline 
the steps for me, I would be grateful.


[If it is easier to do in ArcMap, I have access to the ESRI software 
also.]


Please keep in mind that while I have a general idea about GIS work 
and have been making some maps, for plotting, that satisfy my needs, 
I get very lost when I am subjected to acronyms and technical 
jargon.  If is not clear and straightforward, it will probably be 
wasted on me.


TIA,
Stephen

___
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

Re: [Qgis-user] [Qgis-developer] QGIS loaded millions of entries

2017-03-04 Thread Nyall Dawson
On 4 March 2017 at 18:41, Alessandro Pasotti  wrote:
> On Sat, Mar 4, 2017 at 9:25 AM, Nathan Woodrow  wrote:
>>
>> Hmm are you sure we don't do this already?
>>
>> I suspect we do. Each provider can handle the sorting, giving to it by
>> QgsFeatureRequest, and hand the results back to the caller.  I thought the
>> attribute table was already implemented this way.
>>
>> Regards,
>> Nathan
>
>
> Hi,
>
> IIRC the last time I looked into it (way more than 1 year ago) the
> sorting/filtering on PostGIS was not yet implemented on the back-end, that's
> why the provider (invoked from the attribute table) was fetching all the
> records.
>
> Please correct me if I'm wrong, but I think that the sorting/filtering is
> now implemented in the backend (at least for PostGIS, not sure about the
> status of every provider)

Filtering yes, sorting no.

Every provider has *some* functionality for filtering on the provider
side, but with different levels of compatibility. Most providers
(exception of oracle and mssql) we've pushed this about as far as we
can, and the remaining expression functions just can't be mapped
across.

> but the attribute table will still fetch all
> records unless you limit the view to the map/project extent.

A change I just pushed to master also prevents this full table load if
you use the "show selected features" mode. So that helps a bit.

Nyall
___
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] QGIS loaded millions of entries

2017-03-04 Thread Nyall Dawson
On 4 March 2017 at 18:03, Tobias Wendorff
 wrote:
> Am Sa, 4.03.2017, 08:34 schrieb Alessandro Pasotti:
>>
>> Yes, that would be a strategy, but you might run into problem with
>> sorting and filtering if the data provider does not support for it.
>
> All database-like formats, even Shapefile's DBF, support sorting
> on database level. I've never understood, why some applications
> download the whole content first and

Because it depends on whether the front-ends filtering and sorting
functions match up with the backend's. In the case of QGIS our
expression engine supports a lot of functions which just can't be
translated to Postgres/PostGIS functions. In this case you have no
choice but to fetch everything and do the filtering/sorting on the
client side.

QGIS does have robust support for "compiling expressions", which is
basically translating them from QGIS' expression engine to functions
supported by the backend. This works great for simple expressions, and
depending on the provider even some complex ones (eg postgres provider
has large coverage of mapping qgis functions->provider functions. OGR
does not and can only handle simple field=value compilation). Some
providers also have support for compiling the sort order to perform on
the database side - unfortunately postgres does not (see
https://github.com/qgis/QGIS/blob/master/src/providers/postgres/qgspostgresfeatureiterator.cpp#L130).

I'm sure Matthias would love to re-enable that code and give postgres
a performance boost if someone wants to step up and sponsor it!

Nyall
___
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] QGOS maps fort Garmin GPS

2017-03-04 Thread Stephen Wandling

Phil,

Someone suggested the same OSM approach in an off list email.  Here was 
my response:
I have just taken a look at OSM, and the maps there, for my area of 
interest, are taken from the ancient (pre 1992) British 
Columbia/Canada maps that are very incomplete and riddled with 
errors.  It is because there are no accurate maps of this area that I 
resumed my struggles with GIS and have been making maps and having 
them plotted. 
The areas I am creating maps for are entirely forest areas, with 
streams, trails, roads, parks and that is about it.  No buildings, 
streets, etc.


In the last 20 years or so the mountain bikers and hikers, have put in 
and documented hundreds of kilometers of trails along this coast.  The 
OSM maps have a single digit percentage of what is here now.  And many 
they do have have been obliterated by clear cut logging operations.


I have been making simple maps, that meet my needs, and having them 
plotted at a local facility for $15 each, which is cheaper than the 
incomplete/error ridden maps that one can purchase.  I use these maps to 
travel through this area on foot.


Now I wanted a better map for my GPS.  So far, no luck.

Stephen

On 04/03/2017 4:28 PM, Phil (The Geek) Wyatt wrote:

Depending on the size of the area involved and how 'custom' your maps are 
likely to be you may be better off looking at solutions from OSM. There are 
many sites that create files suitable for Garmin GPS

http://garmin.openstreetmap.nl/

If the areas are small you could also create KMZ (Google Earth Files) and 
transfer them to your garmin device. These can be created in QGIS. Look at the 
plugin GarminCustomMap.

Cheers - Phil

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Stephen 
Wandling
Sent: Sunday, March 5, 2017 11:03 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] QGOS maps fort Garmin GPS

I am running QGIS 2.18.3 and am at a very early learning stage.  I wish to 
create simple maps, with 2 or 3 shape files for my Garmin GPSMaps 76CSx.  This 
map would consist of Trails and Streams shp files and maybe Contours.  It would 
also be accepted by Mapsource and Base Camp.

There were some tutorials that seemed like they were what I wanted, but they 
all failed in one regard or another: 1.) They were using an 'ancient' version 
of qgis.  2.) The maps they produced worked in just about every Garmin GPS 
except the one I own.  3.) They use a plug-in with a disclaimer that it will 
demolish my data.  There were other issues, but my memory fails me.

If someone out there is familiar with my situation (and possibly has the same 
GPS) and can either point me to a site I missed, or outline the steps for me, I 
would be grateful.

[If it is easier to do in ArcMap, I have access to the ESRI software also.]

Please keep in mind that while I have a general idea about GIS work and have 
been making some maps, for plotting, that satisfy my needs, I get very lost 
when I am subjected to acronyms and technical jargon.  If is not clear and 
straightforward, it will probably be wasted on me.

TIA,
Stephen

___
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 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] QGOS maps fort Garmin GPS

2017-03-04 Thread Phil (The Geek) Wyatt
Depending on the size of the area involved and how 'custom' your maps are 
likely to be you may be better off looking at solutions from OSM. There are 
many sites that create files suitable for Garmin GPS

http://garmin.openstreetmap.nl/

If the areas are small you could also create KMZ (Google Earth Files) and 
transfer them to your garmin device. These can be created in QGIS. Look at the 
plugin GarminCustomMap.

Cheers - Phil

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Stephen 
Wandling
Sent: Sunday, March 5, 2017 11:03 AM
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] QGOS maps fort Garmin GPS

I am running QGIS 2.18.3 and am at a very early learning stage.  I wish to 
create simple maps, with 2 or 3 shape files for my Garmin GPSMaps 76CSx.  This 
map would consist of Trails and Streams shp files and maybe Contours.  It would 
also be accepted by Mapsource and Base Camp.

There were some tutorials that seemed like they were what I wanted, but they 
all failed in one regard or another: 1.) They were using an 'ancient' version 
of qgis.  2.) The maps they produced worked in just about every Garmin GPS 
except the one I own.  3.) They use a plug-in with a disclaimer that it will 
demolish my data.  There were other issues, but my memory fails me.

If someone out there is familiar with my situation (and possibly has the same 
GPS) and can either point me to a site I missed, or outline the steps for me, I 
would be grateful.

[If it is easier to do in ArcMap, I have access to the ESRI software also.]

Please keep in mind that while I have a general idea about GIS work and have 
been making some maps, for plotting, that satisfy my needs, I get very lost 
when I am subjected to acronyms and technical jargon.  If is not clear and 
straightforward, it will probably be wasted on me.

TIA,
Stephen

___
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 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] QGOS maps fort Garmin GPS

2017-03-04 Thread Stephen Wandling
I am running QGIS 2.18.3 and am at a very early learning stage.  I wish 
to create simple maps, with 2 or 3 shape files for my Garmin GPSMaps 
76CSx.  This map would consist of Trails and Streams shp files and maybe 
Contours.  It would also be accepted by Mapsource and Base Camp.


There were some tutorials that seemed like they were what I wanted, but 
they all failed in one regard or another: 1.) They were using an 
'ancient' version of qgis.  2.) The maps they produced worked in just 
about every Garmin GPS except the one I own.  3.) They use a plug-in 
with a disclaimer that it will demolish my data.  There were other 
issues, but my memory fails me.


If someone out there is familiar with my situation (and possibly has the 
same GPS) and can either point me to a site I missed, or outline the 
steps for me, I would be grateful.


[If it is easier to do in ArcMap, I have access to the ESRI software also.]

Please keep in mind that while I have a general idea about GIS work and 
have been making some maps, for plotting, that satisfy my needs, I get 
very lost when I am subjected to acronyms and technical jargon.  If is 
not clear and straightforward, it will probably be wasted on me.


TIA,
Stephen

___
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] [gdal-dev] converting ECW to GTiff for Linux

2017-03-04 Thread Micha Silver



On 03/04/2017 09:42 PM, Even Rouault wrote:


On samedi 4 mars 2017 18:55:03 CET Micha Silver wrote:

> Hello:

> (I'm double posting as this problem is somewhere between GDAL and QGIS.)

>

> I have converted an ECW compressed aerial photo to geotiff with JPEG

> compression on a Windows computer with gdal_translate. The resulting tif

> image displays fine with QGIS on the Windows machine.  GDAL version 
2.1.3


> on the Windows computer, and QGIS 2.18.4 My command was similar to:

> gdal_translate -of GTiff -projwin . -co TILED=YES -co TFW=YES -co

> COMPRESS=JPEG -co PHOTOMETRIC=YCBCR in.ecw out.tif

>

> I then copy the tif (and tfw) to my Linux machine, and try to open with

> QGIS, but QGIS crashes immediately. I should note that gdalinfo 
shows full


> information on both the Windows and Linux systems. On the Linux computer

> GDAL is 2.1.2 and QGIS is 2.18.4 .

On the Linux system where this crashes with QGIS, could you do :

gdalinfo -checksum -stats the.tif

If this crashes, the issue is clearly in GDAL. Otherwise it is likely 
in QGIS.



No crash, but I do see a Warning:

gdalinfo -checksum -stats kidron_e2.tif Driver: GTiff/GeoTIFF Files: 
kidron_e2.tif Size is 45200, 36000 


Warning 1: JPEGLib:Premature end of JPEG file Minimum=0.000, 
Maximum=255.000, Mean=163.947, StdDev=38.307 Checksum=49932 Metadata: 
STATISTICS_MAXIMUM=255 STATISTICS_MEAN=163.94735676131 
STATISTICS_MINIMUM=0 STATISTICS_STDDEV=38.30668730016 Band 2 
Block=256x256 Type=Byte, ColorInterp=Green Description = Green 
Minimum=0.000, Maximum=255.000, Mean=167.305, StdDev=32.125 Checksum=52 
Metadata: STATISTICS_MAXIMUM=255 STATISTICS_MEAN=167.3047566274 
STATISTICS_MINIMUM=0 STATISTICS_STDDEV=32.124800654502 Band 3 
Block=256x256 Type=Byte, ColorInterp=Blue Description = Blue 
Minimum=0.000, Maximum=255.000, Mean=146.241, StdDev=31.604 
Checksum=11457 Metadata: STATISTICS_MAXIMUM=255 
STATISTICS_MEAN=146.24062233882 STATISTICS_MINIMUM=0 
STATISTICS_STDDEV=31.603809219917


Also I have found that creating overlays seems to solve the problem 
(?!). After running:


gdaladdo --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW 
YCBCR --config INTERLEAVE_OVERVIEW PIXEL -r average kidron_e2.tif 2 4 8 16


the tiff opens fine in QGIS.

Regards,

Micha


>

> Any ideas what could be the cause of QGIS crashing with the 
gdal_translate


> converted tif image? Is there something that needs to be done on 
windows to


> create a Linux usable geotiff??

>

> Thanks

--

Spatialys - Geospatial professional services

http://www.spatialys.com



--
Micha Silver
cell: +972-523-665918

___
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] [gdal-dev] converting ECW to GTiff for Linux

2017-03-04 Thread Even Rouault
On samedi 4 mars 2017 18:55:03 CET Micha Silver wrote:
> Hello:
> (I'm double posting as this problem is somewhere between GDAL and QGIS.)
> 
> I have converted an ECW compressed aerial photo to geotiff with JPEG
> compression on a Windows computer with gdal_translate. The resulting tif
> image displays fine with QGIS on the Windows machine.  GDAL version 2.1.3
> on the Windows computer, and QGIS 2.18.4 My command was similar to:
> gdal_translate -of GTiff -projwin . -co TILED=YES -co TFW=YES -co
> COMPRESS=JPEG -co PHOTOMETRIC=YCBCR in.ecw out.tif
> 
> I then copy the tif (and tfw) to my Linux machine, and try to open with
> QGIS, but QGIS crashes immediately. I should note that gdalinfo shows full
> information on both the Windows and Linux systems. On the Linux computer
> GDAL is 2.1.2 and QGIS is 2.18.4 .

On the Linux system where this crashes with QGIS, could you do :

gdalinfo -checksum -stats the.tif

If this crashes, the issue is clearly in GDAL. Otherwise it is likely in QGIS.

> 
> Any ideas what could be the cause of QGIS crashing with the gdal_translate
> converted tif image? Is there something that needs to be done on windows to
> create a Linux usable geotiff??
> 
> Thanks


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
___
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] status of bug report

2017-03-04 Thread Tobias Wendorff
Am Sa, 4.03.2017, 18:29 schrieb Richard Duivenvoorde:
> I still think it is a misconfigured WMS server.
>
> Which server are you using?

The one I've posted in the bug report. I'm using QGIS as a client.

> Which data are you using?

Check the BBOX I've posted in the bug report.

[snip]

> The crux is looking at scale-dependent layers needs some context
> knowledge :-)

Pardon, but I think you didn't watch the animation at all, did you?
You can clearly see that I'm accessing the same bbox / bookmark.
Using the second variant, the WMS shows content.

The tree menu from the left seems to load the wrong layer.
I'll check this with a proxy soon and add the results to the bug report.

Please let us keep the discussion at one medium, not at two.
Cross-posting will make many people very unhappy :)

___
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] status of bug report

2017-03-04 Thread Richard Duivenvoorde
On 04-03-17 08:32, Tobias Wendorff wrote:
> Am Sa, 4.03.2017, 08:29 schrieb Richard Duivenvoorde:
>>
>> Ah, see bugreport...
>>
>> I think it is a misconfigured wms:
>>
>> [snipped out the very long URL]
>>
>> gives an image but only at that zoomlevel...
>>
>> zooming out you do not see anything
> 
> I just woke up ;) Let me read your posts and reply ASAP.
> 
> But it's not the zoom level. As you can see in the animated GIF,
> attached to the bug report, I'm using the same bookmark to request
> the image.
> 
> And there's a difference between the tree styles WMS menu on the left
> and the drop down one from the menu (are there any better words to
> differ both ways to load a WMS?).

I still think it is a misconfigured WMS server.

Which server are you using?
Which data are you using?

And there is definitly a scale dependence, as you can see in the
getcapabilities document:

75500

for all layer.

Which in epsg:4326 means that >1:3 you will not see a map.

When you have layer 5 and ask QGIS to it's data extent you get:
5,50 : 10,53 which is a huge bbox !

So if you load a layer in QGiS, and nog give it a bbox, it get's the
layers default extent, which is above one, giving rise to a scale of
1:560,292 (aka a scaledenominator of >500.000 as opposed to the 75500
one when the server starts to show something.

So in short:
- WHEN you are at 1:3 on an excisting map and load a layer it will be ok
- WHEN you are at a higher zoom level you will see nothing (a
transparent image)
- WHEN you start with an empty map, you will start at a zoomlevel which
is much to big. BUT changing the zoomlevel in the statusbar to 1:3
will just show something.

The crux is looking at scale-dependent layers needs some context
knowledge :-)

Regards,

Richard Duivenvoorde


___
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] converting ECW to GTiff for Linux

2017-03-04 Thread Micha Silver

  
  
Hello:
(I'm double posting as this problem is somewhere between GDAL and
QGIS.)

I have converted an ECW compressed aerial photo to geotiff with JPEG
compression on a Windows computer with gdal_translate. The resulting
tif image displays fine with QGIS on the Windows machine.  GDAL
version 2.1.3 on the Windows computer, and QGIS 2.18.4 
My command was similar to:
gdal_translate -of GTiff -projwin . -co TILED=YES -co
  TFW=YES -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR in.ecw out.tif

I then copy the tif (and tfw) to my Linux machine, and try to open
with QGIS, but QGIS crashes immediately.
I should note that gdalinfo shows full information on both the
Windows and Linux systems. On the Linux computer GDAL is 2.1.2 and
QGIS is 2.18.4 .

Any ideas what could be the cause of QGIS crashing with the
gdal_translate converted tif image? Is there something that needs to
be done on windows to create a Linux usable geotiff??

Thanks
-- 
Micha Silver
cell: +972-523-665918
  

___
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] Processing documentaton and help

2017-03-04 Thread Tobias Wendorff
Am Sa, 4.03.2017, 12:19 schrieb johnrobot:
>
> - Most tools seem to lack description in the help tab. Are there any
> guidelines on what must be included in this tab? Is it up the the
> supplier of the tool or can others help to create and improve the
> documentation as well?

I agree. That's totally annoying for any tools used in QGIS. I would
like to spend some time to describe features.

That's what I love about ArcGIS. You're clicking in a field and the
help immediately gives an explanation, what to enter in there.

In the "buffer" function, f.e. nobody knows if you need to enter
meters oder kilometers or degrees (FYI meters for metric projections).

___
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] Processing documentaton and help

2017-03-04 Thread johnrobot
Hi
I have been testing building models in processing and I have found a few
areas where we could improve the help and documentation:

- In the list of tools, most of the tools only show their name, while some
(GRASS) also show a description of the tool in the list. I would prefer if
only the names are listed and that the description is shown in a separate
window. That would make the interfae cleaner.

- Most tools seem to lack description in the help tab. Are there any
guidelines on what must be included in this tab? Is it up the the supplier
of the tool or can others help to create and improve the documentation as
well?

- Is there a collection of well structured and documented models somewhere?
That would help users get up to speed and learn best practice. I think that
this should be incuded when downloading QGIS or available on qgis.org.

Regards,

Magnus



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Processing-documentaton-and-help-tp5310648.html
Sent from the QGIS - User mailing list archive at Nabble.com.
___
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] QGIS loaded millions of entries

2017-03-04 Thread Matthias Kuhn
On 04/03/2017 10:58, Tobias Wendorff wrote:

> Am Sa, 4.03.2017, 10:38 schrieb Nathan Woodrow:
>>> If you go to settings -> options -> data sources you can change
>> "attribute table behaviour" to "show features visible on map"
>>
>> That means it will only request what you see in the map.
> Yeah, that's totally fine right now. Thanks for help :)
> But for future, a staged approach would really be better.
I have been thinking of threaded loading with a configurable maximum
number of features to be shown as a first step.

That is

 * open the attribute table empty (no loading progress bar)
 * features start appearing automatically (an icon indicates that it's
busy loading)
 * change the filter (expression, selection, canvas...) while loading or
not: cancel, empty, restart
 * change the sort order: cancel empty restart

Part 2 (not putting that on high priority)

 * Paging (possibly using infinite scroll)

Bests
Matthias

___
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] QGIS loaded millions of entries

2017-03-04 Thread Tobias Wendorff
Am Sa, 4.03.2017, 10:38 schrieb Nathan Woodrow:
>
>> If you go to settings -> options -> data sources you can change
> "attribute table behaviour" to "show features visible on map"
>
> That means it will only request what you see in the map.

Yeah, that's totally fine right now. Thanks for help :)
But for future, a staged approach would really be better.




___
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] QGIS loaded millions of entries

2017-03-04 Thread Nathan Woodrow
Hey Tobias,

What Nyall posted is the only work around here.

> If you go to settings -> options -> data sources you can change
"attribute table behaviour" to "show features visible on map"

That means it will only request what you see in the map.

- Nathan

On Sat, Mar 4, 2017 at 6:56 PM, Tobias Wendorff <
tobias.wendo...@tu-dortmund.de> wrote:

> Am Sa, 4.03.2017, 09:43 schrieb Raymond Nijssen:
> > You seem to know about databases. For me, when my data passes around 1
> > million records, I turn to work directly in the database
> > (using pgadmin) and only use qgis for visualising the results.
>
> That's okay for database-guys like us. But viewing attributes in the
> table is a common task, f.e. for the co-works in my office. It would
> be very hard for them to understand, why to get out of QGIS just
> to watch the attribute table :)
>
> I think, limiting the amount of data to the current view will be a big
> benefit.
>
>
> > On 04-03-17 09:28, Tobias Wendorff wrote:
> >> Am Sa, 4.03.2017, 09:25 schrieb Nathan Woodrow:
> >>> Hmm are you sure we don't do this already?
> >>
> >> Because the counter of attribute table increased to some hundret
> >> thousand entries and my QGIS v2.18.3 got grayed out in the back,
> >> leading to a crash some seconds after :(
> >>
> >> With an unsaved project of course :)
>
> ___
> 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 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] QGIS loaded millions of entries

2017-03-04 Thread Tobias Wendorff
Am Sa, 4.03.2017, 09:43 schrieb Raymond Nijssen:
> You seem to know about databases. For me, when my data passes around 1
> million records, I turn to work directly in the database
> (using pgadmin) and only use qgis for visualising the results.

That's okay for database-guys like us. But viewing attributes in the
table is a common task, f.e. for the co-works in my office. It would
be very hard for them to understand, why to get out of QGIS just
to watch the attribute table :)

I think, limiting the amount of data to the current view will be a big
benefit.


> On 04-03-17 09:28, Tobias Wendorff wrote:
>> Am Sa, 4.03.2017, 09:25 schrieb Nathan Woodrow:
>>> Hmm are you sure we don't do this already?
>>
>> Because the counter of attribute table increased to some hundret
>> thousand entries and my QGIS v2.18.3 got grayed out in the back,
>> leading to a crash some seconds after :(
>>
>> With an unsaved project of course :)

___
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] QGIS loaded millions of entries

2017-03-04 Thread Raymond Nijssen

Hi Tobias,

You seem to know about databases. For me, when my data passes around 1 
million records, I turn to work directly in the database (using pgadmin) 
and only use qgis for visualising the results.


Regards,
Raymond





On 04-03-17 09:28, Tobias Wendorff wrote:

Am Sa, 4.03.2017, 09:25 schrieb Nathan Woodrow:

Hmm are you sure we don't do this already?


Because the counter of attribute table increased to some hundret
thousand entries and my QGIS v2.18.3 got grayed out in the back,
leading to a crash some seconds after :(

With an unsaved project of course :)

___
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



--
Terglobo
Fahrenheitstraat 1
5223 BJ 's-Hertogenbosch
06 25 31 49 83
___
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] QGIS loaded millions of entries

2017-03-04 Thread Alessandro Pasotti
On Sat, Mar 4, 2017 at 9:25 AM, Nathan Woodrow  wrote:

> Hmm are you sure we don't do this already?
>
> I suspect we do. Each provider can handle the sorting, giving to it by
> QgsFeatureRequest, and hand the results back to the caller.  I thought the
> attribute table was already implemented this way.
>
> Regards,
> Nathan
>

Hi,

IIRC the last time I looked into it (way more than 1 year ago) the
sorting/filtering on PostGIS was not yet implemented on the back-end,
that's why the provider (invoked from the attribute table) was fetching all
the records.

Please correct me if I'm wrong, but I think that the sorting/filtering is
now implemented in the backend (at least for PostGIS, not sure about the
status of every provider) but the attribute table will still fetch all
records unless you limit the view to the map/project extent.




>
> On Sat, Mar 4, 2017 at 6:03 PM, Tobias Wendorff <
> tobias.wendo...@tu-dortmund.de> wrote:
>
>> Am Sa, 4.03.2017, 08:34 schrieb Alessandro Pasotti:
>> >
>> > Yes, that would be a strategy, but you might run into problem with
>> > sorting and filtering if the data provider does not support for it.
>>
>> All database-like formats, even Shapefile's DBF, support sorting
>> on database level. I've never understood, why some applications
>> download the whole content first and
>>
>> Microsoft Access is such a "problem". Some days ago, it has downloaded
>> 700 MB of data from the database to figure out "first" and "min/max".
>> Access has a "pass-through" function for this to make it directly
>> work on database level, but it's somehow hard to handle.
>>
>> But you're right. For things like sorting in calculation, there
>> has to be a different solution, like threaded or staged or using
>> "processing" toolbar only.
>>
>> My system can't even handle to download 3 * 10^6 attributes :(
>>
>> ___
>> 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
>>
>
>


-- 
Alessandro Pasotti
w3:   www.itopen.it
___
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] How-to: add spatial reference to SQLite DBs

2017-03-04 Thread Tobias Wendorff
Hi there.

I'm new to this mailing list, so let me give some knowledge from my
work in QGIS (I don't want to take only, hehe). Maybe it helps someone
or leads to a nice discussion, how to make it even better.

Often, it's more useful to store geodata in small SQLite. Sure, it
doesn't have all the geo-functions or even a spatial index, like
SpatiaLite or Geopackage does. But SQLite is a very lightweight way
to store and transmit information via E-Mail. You can store multiple
layers and ... argh, you know what I'm talking about.

A very annoying problem I had with QGIS is that it doesn't add the
correct information about CRS/SRS (the coordinate system being used)
to the SQLite file. The problem results into QGIS complaining about
a missing CRS/SRS on re-opening at file and forces it to be EPSG:4326.
That's good for OpenStreetMap data, but not really usefull for
anything else.

To add the missing CRS/SRS, keep in mind to store metadata in QGIS and
select "SQLite" as export format (not "SpatiaLite"!). In the following
example, I'll set SRID to 3035 used in Europe for maps about statistics:

1. Open the SQLite file, f.e. with sqlite3:
# sqlite3 database.sqlite
2. Add the information about spatial reference to the geometry column
(table is "demo_data"):
# UPDATE geometry_columns SET srid = 3035 WHERE table = 'demo_data';
3. Add the definition of the spatial reference: [left out here]

You can look up the string for spatial reference, f.e. on this website:
http://spatialreference.org/ref/epsg/3035/postgis/

But this is important:
1. Remove "proj4text," from the bracketed part and remove "+proj=..."
from the second one.
2. make the first number of the second bracketed part be equal to your
EPSG-code, f.e. "3035".

So the beginning should look like:
# INSERT INTO spatial_ref_sys (srid, auth_name, auth_srid, srtext)
VALUES (3035, 'epsg', 3035,

I hope this helps other people with the same problem.

Best regards,
Tobias

___
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] QGIS loaded millions of entries

2017-03-04 Thread Tobias Wendorff
Am Sa, 4.03.2017, 09:25 schrieb Nathan Woodrow:
> Hmm are you sure we don't do this already?

Because the counter of attribute table increased to some hundret
thousand entries and my QGIS v2.18.3 got grayed out in the back,
leading to a crash some seconds after :(

With an unsaved project of course :)

___
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] QGIS loaded millions of entries

2017-03-04 Thread Nathan Woodrow
Hmm are you sure we don't do this already?

I suspect we do. Each provider can handle the sorting, giving to it by
QgsFeatureRequest, and hand the results back to the caller.  I thought the
attribute table was already implemented this way.

Regards,
Nathan

On Sat, Mar 4, 2017 at 6:03 PM, Tobias Wendorff <
tobias.wendo...@tu-dortmund.de> wrote:

> Am Sa, 4.03.2017, 08:34 schrieb Alessandro Pasotti:
> >
> > Yes, that would be a strategy, but you might run into problem with
> > sorting and filtering if the data provider does not support for it.
>
> All database-like formats, even Shapefile's DBF, support sorting
> on database level. I've never understood, why some applications
> download the whole content first and
>
> Microsoft Access is such a "problem". Some days ago, it has downloaded
> 700 MB of data from the database to figure out "first" and "min/max".
> Access has a "pass-through" function for this to make it directly
> work on database level, but it's somehow hard to handle.
>
> But you're right. For things like sorting in calculation, there
> has to be a different solution, like threaded or staged or using
> "processing" toolbar only.
>
> My system can't even handle to download 3 * 10^6 attributes :(
>
> ___
> 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 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] QGIS loaded millions of entries

2017-03-04 Thread Tobias Wendorff
Am Sa, 4.03.2017, 08:34 schrieb Alessandro Pasotti:
>
> Yes, that would be a strategy, but you might run into problem with
> sorting and filtering if the data provider does not support for it.

All database-like formats, even Shapefile's DBF, support sorting
on database level. I've never understood, why some applications
download the whole content first and

Microsoft Access is such a "problem". Some days ago, it has downloaded
700 MB of data from the database to figure out "first" and "min/max".
Access has a "pass-through" function for this to make it directly
work on database level, but it's somehow hard to handle.

But you're right. For things like sorting in calculation, there
has to be a different solution, like threaded or staged or using
"processing" toolbar only.

My system can't even handle to download 3 * 10^6 attributes :(

___
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