Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-07-01 Thread Randal Hale
Sorry for not responding sooner but this has a lot of good information 
-> 
http://www.fgdc.gov/standards/projects/FGDC-standards-projects/address-data/index_html


There are postgis example scripts for generating points off a 
centerline. I was involved in a project that used it. My only caveat 
it's a lot of reading - but really good examples.


Randy

On 06/30/2016 11:54 PM, Tyler Veinot wrote:
Those are all good suggestions, I feel kind of silly asking now 
because the solutions all seem painfully obvious. Thanks for putting 
up with me ;)

Cheers

Sent from my Bell Sony device over Canada’s largest network.

 Dan Jacobson wrote 

Thanks. I did
$ qgis numbers/chain_number.qgs
and indeed saw your line with the four digit numbers on it.

Actually I think I should avoid doing my project by hand via
mouseclicks (Qgis), and instead learn PostGIS and write "batch job" 
SQL script

SELECT points WHERE each point is at 25 meter increments from the start
of road. Then print label on alternating side of road etc.
Maybe I can accomplish the whole thing without a GUI.

I'll send this to both lists.

> "FMRdM" == Fernando M Roxo da Motta  writes:

FMRdM> On Wed, 29 Jun 2016 14:38:52 +0800, Dan Jacobson 


FMRdM> wrote:

FMRdM>   Hello,

FMRdM>   I am sending attached a ZIP with a simple project with a line 
and a

FMRdM> point layer result of a chainage each 25 meters.

FMRdM>   I don't know if I got your problem exactly, but in this project I
FMRdM> used the chainage result to label the layer.

FMRdM>   I was not able to make the layer going on alternate sides of 
the line

FMRdM> as desired, but perhaps this can be a start.

FMRdM>   In order to put the label on the point I choose in placement the
FMRdM> option "offset from point" and made the offset zero.

FMRdM>   It is possible to play with the marker (ex. make it have 
transparent

FMRdM> fill and border in order to make it invisible).

FMRdM>   I think it will make it look like the map you pointed in the link
FMRdM> bellow.

> Thanks. The idea is every 25 meters there should be a (proposed) house
> number (location) on the left, then one on the right, left, etc.
> Making for a total of 20 + 20 = 40 per kilometer.
> Sort of like what I did with GRASS years ago
> http://jidanni.org/geo/house_numbering/mountain.html
> but clearer via using two sides of the roads... but just putting them
> all down the middle would be OK too. Yes, it would be good to avoid
> depending on plugins.
> In fact just a bunch of dots along the center of the road would be
> fine, which then I suppose I could hack the .qgs file to add labels
> to with a perl script which I thankfully know how to write. I'll just
> remind the government workers to remember odd goes on the left, etc.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user


--
-
Randal Hale
North River Geographic Systems, Inc
http://www.northrivergeographic.com
423.653.3611 rjh...@northrivergeographic.com
twitter:rjhale http://about.me/rjhale

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-30 Thread Tyler Veinot
Those are all good suggestions, I feel kind of silly asking now because the 
solutions all seem painfully obvious. Thanks for putting up with me ;)
Cheers

Sent from my Bell Sony device over Canada’s largest network.

 Dan Jacobson wrote 

>Thanks. I did
>$ qgis numbers/chain_number.qgs
>and indeed saw your line with the four digit numbers on it.
>
>Actually I think I should avoid doing my project by hand via
>mouseclicks (Qgis), and instead learn PostGIS and write "batch job" SQL script
>SELECT points WHERE each point is at 25 meter increments from the start
>of road. Then print label on alternating side of road etc.
>Maybe I can accomplish the whole thing without a GUI.
>
>I'll send this to both lists.
>
>> "FMRdM" == Fernando M Roxo da Motta  writes:
>
>FMRdM> On Wed, 29 Jun 2016 14:38:52 +0800, Dan Jacobson 
>FMRdM> wrote:
>
>FMRdM>   Hello,
>
>FMRdM>   I am sending attached a ZIP with a simple project with a line and a
>FMRdM> point layer result of a chainage each 25 meters.
>
>FMRdM>   I don't know if I got your problem exactly, but in this project I
>FMRdM> used the chainage result to label the layer.
>
>FMRdM>   I was not able to make the layer going on alternate sides of the line
>FMRdM> as desired, but perhaps this can be a start.
>
>FMRdM>   In order to put the label on the point I choose in placement the
>FMRdM> option "offset from point" and made the offset zero.
>
>FMRdM>   It is possible to play with the marker (ex. make it have transparent
>FMRdM> fill and border in order to make it invisible).
>
>FMRdM>   I think it will make it look like the map you pointed in the link
>FMRdM> bellow.
>
>> Thanks. The idea is every 25 meters there should be a (proposed) house
>> number (location) on the left, then one on the right, left, etc.
>> Making for a total of 20 + 20 = 40 per kilometer.
>> Sort of like what I did with GRASS years ago
>> http://jidanni.org/geo/house_numbering/mountain.html
>> but clearer via using two sides of the roads... but just putting them
>> all down the middle would be OK too. Yes, it would be good to avoid
>> depending on plugins.
>> In fact just a bunch of dots along the center of the road would be
>> fine, which then I suppose I could hack the .qgs file to add labels
>> to with a perl script which I thankfully know how to write. I'll just
>> remind the government workers to remember odd goes on the left, etc.
>___
>Qgis-user mailing list
>Qgis-user@lists.osgeo.org
>List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-30 Thread Dan Jacobson
Thanks. I did
$ qgis numbers/chain_number.qgs
and indeed saw your line with the four digit numbers on it.

Actually I think I should avoid doing my project by hand via
mouseclicks (Qgis), and instead learn PostGIS and write "batch job" SQL script
SELECT points WHERE each point is at 25 meter increments from the start
of road. Then print label on alternating side of road etc.
Maybe I can accomplish the whole thing without a GUI.

I'll send this to both lists.

> "FMRdM" == Fernando M Roxo da Motta  writes:

FMRdM> On Wed, 29 Jun 2016 14:38:52 +0800, Dan Jacobson 
FMRdM> wrote:

FMRdM>   Hello,

FMRdM>   I am sending attached a ZIP with a simple project with a line and a
FMRdM> point layer result of a chainage each 25 meters.

FMRdM>   I don't know if I got your problem exactly, but in this project I
FMRdM> used the chainage result to label the layer.

FMRdM>   I was not able to make the layer going on alternate sides of the line
FMRdM> as desired, but perhaps this can be a start.

FMRdM>   In order to put the label on the point I choose in placement the
FMRdM> option "offset from point" and made the offset zero.

FMRdM>   It is possible to play with the marker (ex. make it have transparent
FMRdM> fill and border in order to make it invisible).

FMRdM>   I think it will make it look like the map you pointed in the link
FMRdM> bellow.

> Thanks. The idea is every 25 meters there should be a (proposed) house
> number (location) on the left, then one on the right, left, etc.
> Making for a total of 20 + 20 = 40 per kilometer.
> Sort of like what I did with GRASS years ago
> http://jidanni.org/geo/house_numbering/mountain.html
> but clearer via using two sides of the roads... but just putting them
> all down the middle would be OK too. Yes, it would be good to avoid
> depending on plugins.
> In fact just a bunch of dots along the center of the road would be
> fine, which then I suppose I could hack the .qgs file to add labels
> to with a perl script which I thankfully know how to write. I'll just
> remind the government workers to remember odd goes on the left, etc.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-30 Thread Dan Jacobson
OK I found
http://postgis.refractions.net/documentation/manual-svn/reference.html#Linear_Referencing

So I should:
1. Learn how to import my vector roads from .kmz into postgis. (I'll Google 
that.)

2. Use http://postgis.net/docs/ST_Length.html to get the length (L in meters) 
of each
of my roads.

3. Write the equivalent of perl:
for($i=0; $i <= 1; $address++, $i += 25/$L){print ST_Line_Interpolate_Point $i;}

4. Make / print a label ($address) at that point.

5. For extra bonus, figure out to offset the label:
perpendicular to the road at 3 * ($address % 2 ? -1 : 1) meters.

Thanks.

> "RH" == Régis Haubourg  writes:

RH> Hi Dan, 

RH> Usually, I solve this with postgis or sqlite view, using Linear
RH> Referencing functions. I just create a view or a query of
RH> spatialised vertices. Some SQL magic could also calculate rotation
RH> and offset in additional fields to align labels with the lines. 
RH> Cheers Régis 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-29 Thread 積丹尼 Dan Jacobson
NA> This is not true - you can switch to map units everywhere there is a
NA> distance property.

OK I found that. But then the whole layer becomes the selected color to
the entire edges of the planet. And there is no way to undo short of
closing qgis and not saving. As CTRL+Z does not work.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-29 Thread Neumann, Andreas
Hi Dan, 

This is not true - you can switch to map units everywhere there is a
distance property. 

Andreas 

On 2016-06-29 09:12, Dan Jacobson wrote:

> OK I have determined that everything in the Layer Properties menus
> (style etc.) I should NOT use, because they are all millimeter based
> (and will not change with what scale I print the map at.) And I should
> instead look at the degree and meter based plugins like Qchainage.

  ___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-29 Thread Dan Jacobson
OK I have determined that everything in the Layer Properties menus
(style etc.) I should NOT use, because they are all millimeter based
(and will not change with what scale I print the map at.) And I should
instead look at the degree and meter based plugins like Qchainage.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-29 Thread Dan Jacobson
Thanks. The idea is every 25 meters there should be a (proposed) house
number (location) on the left, then one on the right, left, etc.
Making for a total of 20 + 20 = 40 per kilometer.
Sort of like what I did with GRASS years ago
http://jidanni.org/geo/house_numbering/mountain.html
but clearer via using two sides of the roads... but just putting them
all down the middle would be OK too. Yes, it would be good to avoid
depending on plugins.
In fact just a bunch of dots along the center of the road would be fine,
which then I suppose I could hack the .qgs file to add labels to with a
perl script which I thankfully know how to write. I'll just remind the
government workers to remember odd goes on the left, etc.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] regularly spaced address markers on alternating side of road

2016-06-29 Thread Neumann, Andreas
Hi Dan, 

Interesting problem. 

Are these regularly spaced or should they appear at given vertices of
the input vector line? 

I was thinking that maybe one could use a marker line, with dynamic font
markers - but unfortunately there are no "per feature iterators" or
"counters" available in the QGIS expressions. If these would be
available, it would be an easy task. 

Also, the labeling options, combined with the geometry expressions are
pretty powerful and dynamic, but again - without iterators ... 

Geometry generators also come to my mind, but again - without iterators
in QGIS expressions we are blocked. 

- 

I am forwarding this to the dev list to see if someone has an idea - of
course with Python there would be options ... 

Andreas 

On 2016-06-29 07:11, Dan Jacobson wrote:

> I want to label vectors (roads) with proposed addresses:
> 
> 21  23  25  27  29
> ==
> 22  24  26  28
> 
> I suppose I will use the Qchainage plugin and then post-process the
> output with a simple perl script to get the exact labels I want (20, 30,
> 40...).
> 
> I don't suppose I can make them on either side of the road so I suppose
> I will have to put them along the centerline.
> 
> There are no houses here. Just guide points for government workers if
> houses were ever to be built.
> 
> I can't use StackExchange to ask this because I don't have enough Karma
> and never will.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

  ___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user