[Qgis-user] proj: NTv2 for Baden-Württemberg

2018-05-04 Thread Tobias Wendorff
Hi there,

in Germany, two further states are currently switching to UTM32 (Bavaria
and Baden-Württemberg). Both have published the NTv2 files as OpenData.

Since I had a set of GK3 coordinates (EPSG:31467) from Baden-Würtemberg,
I checked if the new version 5.0.1 of "proj" can process the data free
of error. Short answer: yes, it can. And it does it accurately.

For those who may be looking for the working parameters or want to
do some test, here is a short guide:

1. goto website to read license
https://www.lgl-bw.de/lgl-internet/opencms/de/05_Geoinformation/Liegenschaftskataster/ETRS89-UTM/

2. download and unzip the binary
https://www.lgl-bw.de/lgl-internet/web/sites/default/de/05_Geoinformation/Galerien/Dokumente/BWTA2017.zip

3. run it
./cs2cs - -f "%.3f" +proj=tmerc +lat_0=0 +lon_0=9 +k=1.00
+x_0=350 +y_0=0 +ellps=bessel +units=m +nadgrids=./BWTA2017.gsb +to
+proj=utm +ellps=GRS80 +zone=32 +nadgrids=@null

4. reference data (with comparism to BETA2017):
BWTA2017: 3413441.910 5374863.910 => 413400.952 5373153.284
BETA2017: 3413441.910 5374863.910 => 413401.020 5373153.319
BETA2017: 2552401.862 5616707.524 => 340408.064 5617072.481

All fine, good work.

Oh, by the way: it does *not* work with the ascii file (BWTA2017.gsa).

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

[Qgis-user] proj on Windows: mini howto for Cygwin

2018-05-04 Thread Tobias Wendorff
Hi there,

since "proj" uses OSGeo4W to release Windows builds, some users are
disappointed since OSGeo4W hasn't updated this library for quote a
while. Since I wanted to do some tests with latest proj, I had to
compile it for myself. Perhaps you're interested in the steps needed.

I've used a standard default "Cygwin" installation on Windows 7.
In addition to the base ones, you also need these packages:
autogen, automake, gcc-core, libtool, make

You also need to pull the release from GIT or get the tar.gz archive.
In the tar.gz, "autogen.sh" is missing. You can grep it from GIT.

After starting cygwin, you can just build it like this:
./autogen.sh
./configure (add a prefix if needed)
make (add -j for multicore building)
make install

You don't need to "make install", you can run tools like "cs2cs" from
"src/" for testing propose: "cd src" and "./cs2cs --version"

HTH
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

[Qgis-user] Convert CSV to legend

2018-05-04 Thread Aaron Boxer
Hello,
I am displaying a GeoTiff in QGIS, and I also have a CSV file that contains
five columns: column 1 == code, column 2 == label, and columns 3-5 store
RGB values
associated with the code.

I would like to generate a legend with labels and colours (don't care about
codes)
What is the best way of doing this?

Thanks!
Aaron
___
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] Road network download

2018-05-04 Thread Xristos Xristoou
Different arrow for yes and different for no ? And 1,-1?

Στις Παρ, 4 Μαΐ 2018 - 22:27 ο χρήστης Etienne Trimaille <
etienne.trimai...@gmail.com> έγραψε:

> For instance, you can use the field calculator to clean some values in the
> 'oneway' column.
> You can also display an arrow on the line if the field oneway=yes
>
> 2018-05-04 15:22 GMT-04:00 Xristos Xristoou :
>
>> Thank you!  How to do that ? Pre processing?
>>
>>
>> Στις Παρ, 4 Μαΐ 2018 - 22:19 ο χρήστης Etienne Trimaille <
>> etienne.trimai...@gmail.com> έγραψε:
>>
>>> Values are written in the link I put about -1, 1, yes. Often, with OSM
>>> data, you need some pre-processing to clean all these values. It's based on
>>> the direction of the line.
>>>
>>> Maybe shapefiles from geofabrik are cleaner?
>>>
>>> 2018-05-04 13:24 GMT-04:00 Xristos Xristoou :
>>>
 I have oneway field with value -1,1,yes and no .but that values is in
 lines and i cant understand connections for oneways


 Στις Παρ, 4 Μαΐ 2018 - 20:19 ο χρήστης Etienne Trimaille <
 etienne.trimai...@gmail.com> έγραψε:

> Sorry, I fail to understand. With OSM data in QGIS, you have the
> 'oneway' column in the attribute table. If the field is empty, it means
> either OSM doesn't have data for that road or by default it's not oneway.
>
> https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the
> default so OSM contributors let this field empty. (only to avoid a
> confusion in some areas).
>
> 2018-05-04 13:10 GMT-04:00 Xristos Xristoou :
>
>> Hello
>>
>>
>> I need to download road network to used for travel problems.
>>
>> In that road i need to have details for oneways connections.
>>
>>
>> I try to use OSM download QGIS plugin to take the roads but that data
>> dont have direction details for oneway road connections.
>>
>>
>>
>> Any idea ?
>>
>> Thank you
>>
>> ___
>> 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] Road network download

2018-05-04 Thread Etienne Trimaille
For instance, you can use the field calculator to clean some values in the
'oneway' column.
You can also display an arrow on the line if the field oneway=yes

2018-05-04 15:22 GMT-04:00 Xristos Xristoou :

> Thank you!  How to do that ? Pre processing?
>
>
> Στις Παρ, 4 Μαΐ 2018 - 22:19 ο χρήστης Etienne Trimaille <
> etienne.trimai...@gmail.com> έγραψε:
>
>> Values are written in the link I put about -1, 1, yes. Often, with OSM
>> data, you need some pre-processing to clean all these values. It's based on
>> the direction of the line.
>>
>> Maybe shapefiles from geofabrik are cleaner?
>>
>> 2018-05-04 13:24 GMT-04:00 Xristos Xristoou :
>>
>>> I have oneway field with value -1,1,yes and no .but that values is in
>>> lines and i cant understand connections for oneways
>>>
>>>
>>> Στις Παρ, 4 Μαΐ 2018 - 20:19 ο χρήστης Etienne Trimaille <
>>> etienne.trimai...@gmail.com> έγραψε:
>>>
 Sorry, I fail to understand. With OSM data in QGIS, you have the
 'oneway' column in the attribute table. If the field is empty, it means
 either OSM doesn't have data for that road or by default it's not oneway.

 https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the
 default so OSM contributors let this field empty. (only to avoid a
 confusion in some areas).

 2018-05-04 13:10 GMT-04:00 Xristos Xristoou :

> Hello
>
>
> I need to download road network to used for travel problems.
>
> In that road i need to have details for oneways connections.
>
>
> I try to use OSM download QGIS plugin to take the roads but that data
> dont have direction details for oneway road connections.
>
>
>
> Any idea ?
>
> Thank you
>
> ___
> 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] Road network download

2018-05-04 Thread Xristos Xristoou
Thank you!  How to do that ? Pre processing?

Στις Παρ, 4 Μαΐ 2018 - 22:19 ο χρήστης Etienne Trimaille <
etienne.trimai...@gmail.com> έγραψε:

> Values are written in the link I put about -1, 1, yes. Often, with OSM
> data, you need some pre-processing to clean all these values. It's based on
> the direction of the line.
>
> Maybe shapefiles from geofabrik are cleaner?
>
> 2018-05-04 13:24 GMT-04:00 Xristos Xristoou :
>
>> I have oneway field with value -1,1,yes and no .but that values is in
>> lines and i cant understand connections for oneways
>>
>>
>> Στις Παρ, 4 Μαΐ 2018 - 20:19 ο χρήστης Etienne Trimaille <
>> etienne.trimai...@gmail.com> έγραψε:
>>
>>> Sorry, I fail to understand. With OSM data in QGIS, you have the
>>> 'oneway' column in the attribute table. If the field is empty, it means
>>> either OSM doesn't have data for that road or by default it's not oneway.
>>>
>>> https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the default
>>> so OSM contributors let this field empty. (only to avoid a confusion in
>>> some areas).
>>>
>>> 2018-05-04 13:10 GMT-04:00 Xristos Xristoou :
>>>
 Hello


 I need to download road network to used for travel problems.

 In that road i need to have details for oneways connections.


 I try to use OSM download QGIS plugin to take the roads but that data
 dont have direction details for oneway road connections.



 Any idea ?

 Thank you

 ___
 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] Road network download

2018-05-04 Thread Etienne Trimaille
Values are written in the link I put about -1, 1, yes. Often, with OSM
data, you need some pre-processing to clean all these values. It's based on
the direction of the line.

Maybe shapefiles from geofabrik are cleaner?

2018-05-04 13:24 GMT-04:00 Xristos Xristoou :

> I have oneway field with value -1,1,yes and no .but that values is in
> lines and i cant understand connections for oneways
>
>
> Στις Παρ, 4 Μαΐ 2018 - 20:19 ο χρήστης Etienne Trimaille <
> etienne.trimai...@gmail.com> έγραψε:
>
>> Sorry, I fail to understand. With OSM data in QGIS, you have the 'oneway'
>> column in the attribute table. If the field is empty, it means either OSM
>> doesn't have data for that road or by default it's not oneway.
>>
>> https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the default
>> so OSM contributors let this field empty. (only to avoid a confusion in
>> some areas).
>>
>> 2018-05-04 13:10 GMT-04:00 Xristos Xristoou :
>>
>>> Hello
>>>
>>>
>>> I need to download road network to used for travel problems.
>>>
>>> In that road i need to have details for oneways connections.
>>>
>>>
>>> I try to use OSM download QGIS plugin to take the roads but that data
>>> dont have direction details for oneway road connections.
>>>
>>>
>>>
>>> Any idea ?
>>>
>>> Thank you
>>>
>>> ___
>>> 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] Road network download

2018-05-04 Thread Xristos Xristoou
I have oneway field with value -1,1,yes and no .but that values is in lines
and i cant understand connections for oneways

Στις Παρ, 4 Μαΐ 2018 - 20:19 ο χρήστης Etienne Trimaille <
etienne.trimai...@gmail.com> έγραψε:

> Sorry, I fail to understand. With OSM data in QGIS, you have the 'oneway'
> column in the attribute table. If the field is empty, it means either OSM
> doesn't have data for that road or by default it's not oneway.
>
> https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the default
> so OSM contributors let this field empty. (only to avoid a confusion in
> some areas).
>
> 2018-05-04 13:10 GMT-04:00 Xristos Xristoou :
>
>> Hello
>>
>>
>> I need to download road network to used for travel problems.
>>
>> In that road i need to have details for oneways connections.
>>
>>
>> I try to use OSM download QGIS plugin to take the roads but that data
>> dont have direction details for oneway road connections.
>>
>>
>>
>> Any idea ?
>>
>> Thank you
>>
>> ___
>> 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] Road network download

2018-05-04 Thread Etienne Trimaille
Sorry, I fail to understand. With OSM data in QGIS, you have the 'oneway'
column in the attribute table. If the field is empty, it means either OSM
doesn't have data for that road or by default it's not oneway.

https://wiki.openstreetmap.org/wiki/Key:oneway oneway=no is the default so
OSM contributors let this field empty. (only to avoid a confusion in some
areas).

2018-05-04 13:10 GMT-04:00 Xristos Xristoou :

> Hello
>
>
> I need to download road network to used for travel problems.
>
> In that road i need to have details for oneways connections.
>
>
> I try to use OSM download QGIS plugin to take the roads but that data dont
> have direction details for oneway road connections.
>
>
>
> Any idea ?
>
> Thank you
>
> ___
> 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] Road network download

2018-05-04 Thread Tomas Straupis
2018-05-04 20:10 GMT+03:00 Xristos Xristoou wrote:
> I need to download road network to used for travel problems.
> In that road i need to have details for oneways connections.
> I try to use OSM download QGIS plugin to take the roads but that data dont
> have direction details for oneway road connections.
>
> Any idea ?

  Try shapefiles from http://download.geofabrik.de/

-- 
Tomas
___
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] Road network download

2018-05-04 Thread Xristos Xristoou
Hello


I need to download road network to used for travel problems.

In that road i need to have details for oneways connections.


I try to use OSM download QGIS plugin to take the roads but that data dont
have direction details for oneway road connections.



Any idea ?

Thank you
___
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] Error while processing "servicearea"

2018-05-04 Thread Jean-Baptiste Desbas
Solved by myself :

serviceParameter={'INPUT':network,'START_POINTS':depart,'STRATEGY':0,'TRAVEL_COST':travel_cost,'DEFAULT_DIRECTION':2,'DEFAULT_SPEED':5.0,'TOLERANCE':0.0,'INCLUDE_BOUNDS':False,'OUTPUT_LINES':'memory:','DIRECTION_FIELD'
> : '','VALUE_BACKWARD' : '', 'VALUE_BOTH' : '', 'VALUE_FORWARD' : '' }
>
>
> r=processing.run('qgis:serviceareafromlayer',serviceParameter,feedback=feedback)
> l=r['OUTPUT_LINES']
>
for f in l.getFeatures():
> sink.addFeature(f)
>

2018-05-03 9:33 GMT+02:00 Jean-Baptiste Desbas :

> Hello,
>
> I want to use the serviceareafromlayer alg in a python script, but it give
> me an error :
>
> Traceback (most recent call last):
> File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\
> processing\algs\qgis\ServiceAreaFromLayer.py", line 264, in
> processAlgorithm
> fields, QgsWkbTypes.MultiLineString, network.sourceCrs())
> Exception: unknown
>
> I can successfuly lunch that alg with the same input layer from the GUI,
> so what's wrong with my code ?
>
> Here is the code : http://paste.debian.net/1023040/
>
> Thanks,
>
___
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] Raster calculator questions

2018-05-04 Thread Nicolas Cadieux
Hi,

I am not sure of what you mean in the first part of the question but yes, you 
must create the output file to receive the output from the calculator.

As for the second part, QGIS currently has a big limitation with the raster 
calculator. I have been trying to get them to work on this for the past few 
years because I cannot use it for lidar data.  The problem is (as I understand 
it) that the rasters must all be loaded into memory in order to do the math.  
Before, QGIS just crashed.  Not, they have that message.  I can complain all I 
want but I am not able to be part of the solution (beginner coding skills) so I 
gave them rasters to test so they can figure out the problem.

I can only imagine that your rasters, once loaded into memory, are probably 
close to the max memory of your computer.  If you change the CRS, you probably 
add a new layer into the memory.  My guess is that you are therefore running 
out of memory.  Therefore you get the error.

I am only speculating.  The obvious step is to ask the coders to rework the 
QGIS raster calculator but that is complicated.  Ultimately, the new calculator 
would need to   be able to chop the problems in little bits, multiprocess the 
math, possibly offload the math to the GPU and be able to work without loading 
the files into memory.  For now, I use the gdal calculator but that has more 
limitations (same CRS, same pixel posting and extent... ) than the QGIS 
calculator but it can work with huge raster.

Nicolas

> Le 3 mai 2018 à 21:43, Chris House  a écrit :
> 
> When using raster calculator in QGIS 3 I  have to create a new raster first 
> to serve as the output. Is the intent of this to overwrite a input raster (I 
> haven't tried this) or something else? I'm confused by this. 
>  
> Secondly when I specify a CRS in raster calculator I get "insufficient memory 
> for this operation" error.  Using the default output CRS works. This usually 
> requires me to add a reprojection step on the output raster.
>  
> Windows 10
> Samsung SSD
> AMD 8 core processor
> 16 GB RAM
> NVIDIA Graphics Card 2GB RAM
>  
> Thanks
> --Chris
> ___
> 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] Planning QGIS Metadata updates for QGIS 3.4

2018-05-04 Thread Tim Sutton
Dear Friends

QGIS 3.4 is coming in October this year. Our little metadata group we did 
excellent work getting the foundations for a great metadata system implemented 
in QGIS 3.0. Now we are starting thinking about the next phase. I would like to 
initiate a call (or text chat meeting in Gitter) next week if possible to 
discus the next steps. The idea would be to revisit our roadmap document, and 
repeat the process we followed last time:

1) Identify the critical features and architecture for the next iteration (and 
publish a QEP)
2) Identify champions for the different components we want to build
3) Come up with costings for those components
4) Seek funding for building the components we define
5) Implement such features as we can obtain funding for or find volunteers for

I have started a doodle poll here to find a meeting time - I know it is going 
to be hard because we are spread across the globe. If it doesn't work trying to 
meet in real time I will take it off to a shared google doc that we can work on.

https://doodle.com/poll/7iwgz4wr398q5p6y


If you are interested to participate in the process, please let me know via the 
poll above.

If you or your organisation would like to see  
compliant metadata ingested and produced by QGIS and are able to support us 
with funding for this, please contact me off-list.

Thanks!

Regards

Tim
—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux
IRC: timlinux on #qgis at freenode.net



signature.asc
Description: Message signed with OpenPGP
___
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