Re: [Xastir-dev] [Xastir] Open Street Map support (read this)

2010-06-10 Thread Jason KG4WSV
On Thu, Jun 10, 2010 at 12:06 PM, Jerry Dunmire je...@dunmire.org wrote:
 I started to look at scaling the bit maps, but that will require still
 another learning curve and would still need to learn the flow of the
 program.

I think you're thinking/working too hard.

When you request a map, find the current xastir zoom level, get the
next OSM level up (or maybe nearest match?) at a size equal to or
larger than the xastir window (this is the key!), and then stay out of
xastir's way while it does it's thing drawing the display.

-- 
-Jason
kg4wsv
___
Xastir-dev mailing list
Xastir-dev@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir-dev


Re: [Xastir] Open Street Map support (read this)

2010-06-10 Thread Andrew Errington
On Thu, 10 Jun 2010 03:55:45 Curt, WE7U wrote:
 Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
 in Xastir.  Woohoo!

 For an interesting place to look, zoom in on a border and see what
 differences you can find for roads crossing said border.  For the
 main Canadian border crossing north of me I can't see any difference
 in the roads at all.

 Thanks Jerry!

Joy!

I just followed the instructions to install from CVS for my distro:

http://www.xastir.org/wiki/HowTo:MEPIS_8.0

All is as it should be, and OpenStreetMap shows up in the list of maps!  
Thanks Jerry!

This is a great development, and one I had been hoping for for a while.  It 
gives us lots of interesting opportunities too.  I have been contributing to 
OSM for some time, and I would encourage you all to do the same.  It's an 
interesting and fun pastime, and it produces concrete and usable results.  
The only rule is don't copy from other maps or data sources*.

I would be happy to answer questions about OSM, based on my own experience, 
but you can also find out a lot on the OSM wiki, and there are clearly other 
contributors here too.  There is also a talk list and a newbies list for OSM, 
and I suggest that someone 'in charge' of Xastir should announce this new 
development.  I also suggest that we plan our use of OSM carefully so as not 
to 'bog down' their servers, and to make sure we get the best use out of the 
OSM project for Xastir's particular requirements.

73,

A

* Actually, there is another rule, and that is Have fun!.
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


[Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U


Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
in Xastir.  Woohoo!

For an interesting place to look, zoom in on a border and see what
differences you can find for roads crossing said border.  For the
main Canadian border crossing north of me I can't see any difference
in the roads at all.

Thanks Jerry!

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Tom Hayward
On Wed, Jun 9, 2010 at 11:55, Curt, WE7U curt.w...@gmail.com wrote:

 Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
 in Xastir.  Woohoo!

Thanks Jerry! I tried implementing OSM for Xastir a while ago and my
capabilities only got me as far as writing a script to pull tiles for
an area and generate .geo files for each tile.


I updated from cvs and tried to build on OSX and got an error (not
sure when it popped up or what it's related to--it's been months since
I've updated):

ld: warning: directory '/opt/local/lib' following -L not found
Undefined symbols:
  _libintl_gettext, referenced from:
  _create_appshell in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [xastir] Error 1

I grepped for libintl_gettext but it was only found in main.o. I'm not
sure what to look for here. Help?


Tom KD7LXL
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U

On Wed, 9 Jun 2010, Curt, WE7U wrote:


On Wed, 9 Jun 2010, Tom Hayward wrote:


I updated from cvs and tried to build on OSX and got an error (not
sure when it popped up or what it's related to--it's been months since
I've updated):

ld: warning: directory '/opt/local/lib' following -L not found
Undefined symbols:
 _libintl_gettext, referenced from:
 _create_appshell in main.o
ld: symbol(s) not found


I see a page talking about geting git working on OSX that talks
about a similar error that they fixed by tweaking the Makefile to
add this to LDFLAGS:

LDFLAGS=-lintl

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Bob Nielsen

Nice!  Thanks Jerry.

Bob N7XY

On Jun 9, 2010, at 11:55 AM, Curt, WE7U wrote:



Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
in Xastir.  Woohoo!

For an interesting place to look, zoom in on a border and see what
differences you can find for roads crossing said border.  For the
main Canadian border crossing north of me I can't see any difference
in the roads at all.

Thanks Jerry!

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Tom Hayward
 Wasn't there some flags that had to be passed to OSX in order to
 tell it where *.dynlib libraries were to be found?  Probably at the
 configure step.

Solved. It looks like it was the Snow Leopard 64 bit defaults that
were breaking things. I must have not updated Xastir since I installed
Snow Leopard! I was able to combine the configure flags that I
originally used to write the HowTo:Mac_OSX with the Snow
Leopard-specific ones added to the wiki by Dick KC8OBZ.

http://www.xastir.org/wiki/HowTo:Mac_OSX#Build_Xastir

OpenStreetMaps are working great in Xastir!

Tom KD7LXL
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Bob Nielsen
I started with a fairly up-to-date version and had no issues on OS X  
with the OSM update via CVS.


Bob, N7XY

On Jun 9, 2010, at 12:24 PM, Tom Hayward wrote:


On Wed, Jun 9, 2010 at 11:55, Curt, WE7U curt.w...@gmail.com wrote:


Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
in Xastir.  Woohoo!


Thanks Jerry! I tried implementing OSM for Xastir a while ago and my
capabilities only got me as far as writing a script to pull tiles for
an area and generate .geo files for each tile.


I updated from cvs and tried to build on OSX and got an error (not
sure when it popped up or what it's related to--it's been months since
I've updated):

ld: warning: directory '/opt/local/lib' following -L not found
Undefined symbols:
  _libintl_gettext, referenced from:
  _create_appshell in main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [xastir] Error 1

I grepped for libintl_gettext but it was only found in main.o. I'm not
sure what to look for here. Help?


Tom KD7LXL
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U


Note that you may experience some odd zooming as you use the new OSM
mapping, due to the way it's matching the Xastir zoom levels to the
available map levels.  This will hopefully be fixed in the near future.

I just experienced it while trying to zoom in using the mouse
zoom-box feature to my property out in the hills.  It ended up quite
a distance away from my target.

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Craig Anderson
I've compiled and installed the latest cvs code and it works great!  But how do 
I turn on OSM maps?

Thanks very much,
Craig
n6yxk

On Jun 9, 2010, at 11:55 AM, Curt, WE7U wrote:

 
 Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
 in Xastir.  Woohoo!
 
 For an interesting place to look, zoom in on a border and see what
 differences you can find for roads crossing said border.  For the
 main Canadian border crossing north of me I can't see any difference
 in the roads at all.
 
 Thanks Jerry!
 
 -- 
 Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
 Windows:  Microsoft's tax on computer illiterates. - WE7U.
 The world DOES revolve around me:  I picked the coordinate system!
 ___
 Xastir mailing list
 Xastir@lists.xastir.org
 http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Jerry Dunmire
Hi Craig (and others),
Thanks for the feedback on OSM support in xastir. I'm don't know much
about OSX (I'm only a linux/unix guy from way back), so I'm happy that
others could help out with the problems.

As for turning on the OSM maps, look for Online/OpenStreetMaps.geo in
the map chooser. Select it and click Apply. That should do the job.

73,
...jerry
KA6HLD


On Wed, Jun 9, 2010 at 1:13 PM, Craig Anderson acra...@pacbell.net wrote:
 I've compiled and installed the latest cvs code and it works great!  But how 
 do I turn on OSM maps?

 Thanks very much,
 Craig
 n6yxk

 On Jun 9, 2010, at 11:55 AM, Curt, WE7U wrote:


 Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
 in Xastir.  Woohoo!

 For an interesting place to look, zoom in on a border and see what
 differences you can find for roads crossing said border.  For the
 main Canadian border crossing north of me I can't see any difference
 in the roads at all.

 Thanks Jerry!

 --
 Curt, WE7U.                         http://www.eskimo.com/~archer
   APRS:  Where it's at!                    http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
 Windows:  Microsoft's tax on computer illiterates. - WE7U.
 The world DOES revolve around me:  I picked the coordinate system!
 ___
 Xastir mailing list
 Xastir@lists.xastir.org
 http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

 ___
 Xastir mailing list
 Xastir@lists.xastir.org
 http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Tom Hayward
On Wed, Jun 9, 2010 at 13:10, Curt, WE7U curt.w...@gmail.com wrote:

 Note that you may experience some odd zooming as you use the new OSM
 mapping, due to the way it's matching the Xastir zoom levels to the
 available map levels.  This will hopefully be fixed in the near future.

 I just experienced it while trying to zoom in using the mouse
 zoom-box feature to my property out in the hills.  It ended up quite
 a distance away from my target.

I noticed this. I also notice, viewing the Puget Sound region, that
there is some sort of projection issue. After zooming out it shows me
in the water! Hmm... it appears intermittent. Zooming out and back in
fixed it. Is this a known issue?

It also seems really slow (about as slow as Tigermaps!). Is any
caching being done? (I don't have normal Xastir map caching support
installed at this time) Where does the big map come from--is it
assembled from cached tiles by xastir, or is it rendered by a server
somewhere?

Tom KD7LXL
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U

On Wed, 9 Jun 2010, Craig Anderson wrote:


I've compiled and installed the latest cvs code and it works
great!  But how do I turn on OSM maps?


Map-Configure-Index: Add New Maps

Then look for OpenStreetMaps.geo in the Map Chooser.

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U

On Wed, 9 Jun 2010, Tom Hayward wrote:


I just experienced it while trying to zoom in using the mouse
zoom-box feature to my property out in the hills.  It ended up quite
a distance away from my target.


I noticed this. I also notice, viewing the Puget Sound region, that
there is some sort of projection issue. After zooming out it shows me
in the water! Hmm... it appears intermittent. Zooming out and back in
fixed it. Is this a known issue?


I saw that once and then ran out of time trying to duplicate it
(couldn't at that time).  The new code tweaks Xastir's zoom levels
to match the map instead of the other way around, so that's likely
most of the issues we're seeing.  Hopefully that will be tweaked and
we'll have precise georeferencing then, better than Tigermaps could
deliver (due to their weird projection).



It also seems really slow (about as slow as Tigermaps!). Is any
caching being done? (I don't have normal Xastir map caching support
installed at this time)


Yes, but it's the normal Xastir map caching support that you're not
running.  I think the new code sometimes skips the caching in some
instances.



Where does the big map come from--is it
assembled from cached tiles by xastir, or is it rendered by a server
somewhere?


Rendered by a server, similar to how Tigermaps were done.

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Tom Russo
On Wed, Jun 09, 2010 at 11:55:45AM -0700, we recorded a bogon-computron 
collision of the curt.w...@gmail.com flavor, containing:
 
 Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
 in Xastir.  Woohoo!
 
 For an interesting place to look, zoom in on a border and see what
 differences you can find for roads crossing said border.  For the
 main Canadian border crossing north of me I can't see any difference
 in the roads at all.
 
 Thanks Jerry!

This is very good stuff, as the OSM maps do look really nice, and probably
won't suffer from the very stupid projection issues that the Census TIGER
data had.

That said, the second I tried it I got a map that wasn't lining up with other 
data I had.  At first I thought this was an issue with the
server returning a different geographic region than the one requested,
because I've seen the same thing happen with terraserver aerial photos, if 
trying to view too big a map at particular zoom levels.

But rather, it seems to be an issue with how the OSM code tries to restrict
our zoom level to those that match OSM levels.

Here's an example, using my 1261x1019 map window:

  http://www.swcp.com/~russo/xastir_osm/bad_view.png

This particular view is actually one of my map bookmarks, showing the area
where most of the APRS activity is near me.  The bookmark sets zoom level to
131 and the center to 35d04.715'N by 106d29.866'W.

The image is a screenshot showing the OSM layer with a county-provided road 
shapefile drawn on top. The orange road running diagonally from center-right 
to lower-right is the OSM representation of NM state road 337, which is
represented in black to its left from the county GIS files.  The county
one is right --- it shows my Igate (KM5VY-10) in the correct relation to
roads.

Other roads look wrong, too --- compare the sorta reddish major streets in
Albuquerque from OSM to similarly-shaped, but differently-scaled, roads in black
from the county shapefile.

Zooming in even just a tiny bit, as by selecting just the area inside the
map boarder, makes the server return precisely what is asked for and the
downloaded map line up very nicely with the county data:

http://www.swcp.com/~russo/xastir_osm/good_view.png


FWIW, when run with debug level 512, the OSM code prints out:

left side is -106.777989
right side is -106.217544
top  is 35.263983
bottom is 34.893183
lat center is 35.078583
long center is -106.497767
screen width is 1261
screen height is 1019
map width is 0.560444
map height is 0.370800
scale_y = 131
scale_x = 160
zf = 11.627562
z = 12

in the first (bad) case and

left side is -106.715161
right side is -106.280817
top  is 35.223122
bottom is 34.934406
lat center is 35.078764
long center is -106.497989
screen width is 1261
screen height is 1019
map width is 0.434344
map height is 0.288717
scale_y = 102
scale_x = 124
zf = 11.995294
z = 12

in the second (good) case.

I also note that the code appears to be changing requested zoom levels to match
OSM zoom levels.  This may or may not be desirable (I was puzzled when I tried
to set a custom zoom level to a particular value, and the code repeatedly 
set it to something else).

And now that I say that, I see where the problem must be.

I note that when I *tried* to set zoom level to 131 by hand (using the 
Custom zoom level) it wouldn't do what I asked, but when I chose my map 
bookmark it did actually go to that zoom level --- perhaps the actual issue is 
that Xastir is really using my selected bookmarked zoom level despite the OSM 
code's attempt to restrict to OSM zoom levels.  

As soon as I try to zoom in by selecting the area inside the border, the 
code that restricts to OSM levels actually does work, and therefore the map
I see after the zoom is done looks good.  It just seems to be bookmarks that
are busted (because the restriction to specific zoom levels isn't respected).

Not sure where to look for that mistake, but it would explain why I'm getting
bad OSM maps at my bookmarked view.

Rather than try to restrict the allowed zoom levels, it might be better to
pull in an image of a nearby OSM level and then rescale it to the requested
Xastir zoom level.  That's what the terraserver and other .geo code does.  

Regardless, it's cool that OSM is usable now.  If it were more easily adapted
for use with user-selected zoom levels (especially those in bookmarks), it'
be even better.

--
Tom RussoKM5VY   SAR502   DM64ux  http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236http://kevan.org/brain.cgi?DDTNM
 It is better to live on your feet than to die with your knees.
  -- Mil Millington on running, in Instructions for Living Someone Else's Life
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U

On Wed, 9 Jun 2010, Tom Russo wrote:


Rather than try to restrict the allowed zoom levels, it might be better to
pull in an image of a nearby OSM level and then rescale it to the requested
Xastir zoom level.  That's what the terraserver and other .geo code does.


Yep, my take on it too, which would bypass a lot of minor problems.



Regardless, it's cool that OSM is usable now.  If it were more easily adapted
for use with user-selected zoom levels (especially those in bookmarks), it'
be even better.


They sure are pretty aren't they?  I already like them better than
Tigermaps.  Once the issues are resolved we'll definitely be several
steps forward.

'cept for the people not served well by OSM...

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Jerry Dunmire
Thanks for the feedback. Help is always appreciated Tom and Curt. I'll
try to keep up :-)

It will take me a bit to try out the great example you provided, but
I'll get started.

The OSM code is really just a (simple) modification of the tigermaps
code. The slow speed seems to be all related to pulling images from
the server. It doesn't appear to me like the images in the cache get
re-used if the center point changes. So even minor location changes
can cause a new map to be pulled. A far better solution would be to
cache OSM tiles (256x256), ala web based maps, but it I opted for the
quick fix first...

The zoom levels are 'binned' because I could not get the scaling to
work otherwise. OSM has 19 fixed levels (less for some rendering such
as the one I choose to use here). I had to reverse engineer the scale
factor because I could not find it documented at the OSM site. The
levels work out to 360/2^(L+8) degrees/ pixel, and tiles (the large
image I'm using, http://wiki.openstreetmap.org/wiki/StaticMap are
built from the tiles) are 256x256. So I pre-calculated a table of OSM
levels to xastir scale factors.

The next complication is that the OSM scale factor seems to be related
to latitude, so I had to map the scale_x value. To a user this is very
confusing at this point because the scale set in xastir is for the Y
axis.

Hope that helps with the understanding.

...jerry

On Wed, Jun 9, 2010 at 1:48 PM, Curt, WE7U curt.w...@gmail.com wrote:
 On Wed, 9 Jun 2010, Tom Russo wrote:

 I also note that the code appears to be changing requested zoom levels to
 match
 OSM zoom levels.  This may or may not be desirable (I was puzzled when I
 tried
 to set a custom zoom level to a particular value, and the code repeatedly
 set it to something else).

 Tom:  I can send you the original patch if you'd like to see what
 was done.

 Perhaps you can help Jerry with the tweaks (if he needs/wants help).
 Perhaps I can too.

 --
 Curt, WE7U.                         http://www.eskimo.com/~archer
   APRS:  Where it's at!                    http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
 Windows:  Microsoft's tax on computer illiterates. - WE7U.
 The world DOES revolve around me:  I picked the coordinate system!
 ___
 Xastir mailing list
 Xastir@lists.xastir.org
 http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Tom Hayward
On Wed, Jun 9, 2010 at 13:34, Curt, WE7U curt.w...@gmail.com wrote:
 I saw that once and then ran out of time trying to duplicate it
 (couldn't at that time).  The new code tweaks Xastir's zoom levels
 to match the map instead of the other way around, so that's likely
 most of the issues we're seeing.  Hopefully that will be tweaked and
 we'll have precise georeferencing then, better than Tigermaps could
 deliver (due to their weird projection).

I can reproduce it by loading a Map Bookmark set to level 512. The
APRS layer is zoomed to 512, but the OSM layer is not.

 Rendered by a server, similar to how Tigermaps were done.

Ok, this makes sense as to why the standard xastir map caching is
used. I assumed [incorrectly] that it was loading tiles, for which the
normal xastir caching wouldn't be well suited. The server-render
explains the latency. I've installed map caching now and it's much
faster where it can take advantage of the cache.

Tom KD7LXL
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Tom Russo
On Wed, Jun 09, 2010 at 01:48:00PM -0700, we recorded a bogon-computron 
collision of the curt.w...@gmail.com flavor, containing:
 On Wed, 9 Jun 2010, Tom Russo wrote:
 
  I also note that the code appears to be changing requested zoom levels to 
  match
  OSM zoom levels.  This may or may not be desirable (I was puzzled when I 
  tried
  to set a custom zoom level to a particular value, and the code repeatedly
  set it to something else).
 
 Tom:  I can send you the original patch if you'd like to see what
 was done.

I can see what's been done using cvs diff.

 Perhaps you can help Jerry with the tweaks (if he needs/wants help).
 Perhaps I can too.

I don't really have time to mess with it.  But I see that the function
adj_to_OSM_levels is called in just one place in main.c, and depends on
a global variable (OSMserver_flag) being set elsewhere.  Clearly, that 
variable is not set correctly when a map bookmark is read, nor at start-up,
only when zooming around or while choosing a custom zoom level.  If the 
current scheme of only allowing zoom levels that match OSM zoom levels
(which is certainly workable, if not ideal) is maintained, that 
adj_to_OSM_levels needs to get called every time a zoom level setting is
attempted while OSM maps are selected, and it isn't currently being done
in all such cases.

-- 
Tom RussoKM5VY   SAR502   DM64ux  http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236http://kevan.org/brain.cgi?DDTNM
 It is better to live on your feet than to die with your knees.
  -- Mil Millington on running, in Instructions for Living Someone Else's Life

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread David
Hi All.have just done an upgrade on my Xastir system and when i 
restarted the program up came the OSM maps.looks real great for 
Australia.the only thing i have found is that  the map of Townsville 
does not ha ve the street i live ing...we are in a rural residential 
area in the Northern Beaches of Townsvillehowever i can live with that


the projection was badly out when it started but by turning off the 
other maps i was using and restarting the prog it came back into line


73 David VK4BDJ
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Jerry Dunmire
Thanks Tom for the analysis. I'll look into where else calling the
adj_to_OSM_levels()
needs to be called as a short term fix until I can figure out (really
just learn what's already there) a better scaling method.

...jerry


On Wed, Jun 9, 2010 at 2:09 PM, Tom Russo ru...@bogodyn.org wrote:
 On Wed, Jun 09, 2010 at 01:48:00PM -0700, we recorded a bogon-computron 
 collision of the curt.w...@gmail.com flavor, containing:
 On Wed, 9 Jun 2010, Tom Russo wrote:

  I also note that the code appears to be changing requested zoom levels to 
  match
  OSM zoom levels.  This may or may not be desirable (I was puzzled when I 
  tried
  to set a custom zoom level to a particular value, and the code repeatedly
  set it to something else).

 Tom:  I can send you the original patch if you'd like to see what
 was done.

 I can see what's been done using cvs diff.

 Perhaps you can help Jerry with the tweaks (if he needs/wants help).
 Perhaps I can too.

 I don't really have time to mess with it.  But I see that the function
 adj_to_OSM_levels is called in just one place in main.c, and depends on
 a global variable (OSMserver_flag) being set elsewhere.  Clearly, that
 variable is not set correctly when a map bookmark is read, nor at start-up,
 only when zooming around or while choosing a custom zoom level.  If the
 current scheme of only allowing zoom levels that match OSM zoom levels
 (which is certainly workable, if not ideal) is maintained, that
 adj_to_OSM_levels needs to get called every time a zoom level setting is
 attempted while OSM maps are selected, and it isn't currently being done
 in all such cases.

 --
 Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
 Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
  It is better to live on your feet than to die with your knees.
  -- Mil Millington on running, in Instructions for Living Someone Else's Life

 ___
 Xastir mailing list
 Xastir@lists.xastir.org
 http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U

On Wed, 9 Jun 2010, Jerry Dunmire wrote:


Thanks Tom for the analysis. I'll look into where else calling the
adj_to_OSM_levels()
needs to be called as a short term fix until I can figure out (really
just learn what's already there) a better scaling method.


Jerry:  Don't take all the negative comments to heart...  The net
gain in having these maps is enormous, far better than just a
replacement for Tigermaps.  We just have to tweak a little here and
there to make it operate like all the other maps (and interoperate
with them).

Thanks again for taking that project on.  You'll have a few hundred
appreciative users out there as payback when each gets their system
updated to use OSM.

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Murry

Glad to see that success is happening for a lot of people.
I am running PCLinuxOS2010 and my for some reason I can't seem to get my 
cvs to update.

Xastir was installed according to the  how to   for my OS, on the Wiki.

Murry   VE9MB
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Murry

Disregard.
Finally got in the right directory/folder and it worked. duh



On 06/09/2010 08:09 PM, Murry wrote:

Glad to see that success is happening for a lot of people.
I am running PCLinuxOS2010 and my for some reason I can't seem to get 
my cvs to update.

Xastir was installed according to the  how to   for my OS, on the Wiki.

Murry   VE9MB
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir



___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread KA7O

You guys are AMAZING!!

I know of no other type of project of this scale that can respond to a 
problem, an idea and implement a fix not only this rapidly, but this 
effectively.


I thought OSM support would be just a dream to be discussed for awhile 
and then might happen some day. And here it is.


Those of us that can barely tell a compiler from a init string Thank you!

This freak'n ROCKS! And it looks great too.


On 06/09/2010 12:55 PM, Curt, WE7U wrote:


Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
in Xastir. Woohoo!

For an interesting place to look, zoom in on a border and see what
differences you can find for roads crossing said border. For the
main Canadian border crossing north of me I can't see any difference
in the roads at all.

Thanks Jerry!



___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Curt, WE7U

On Wed, 9 Jun 2010, n4lbl wrote:


In the popular press today:
Digital map of the world is the product of a large-scale volunteer effort
http://www.latimes.com/business/la-fi-digital-maps-20100609,0,4102249.story


I love the comment from the commercial company about it...

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread James Ewen
On Wed, Jun 9, 2010 at 3:05 PM, Jerry Dunmire je...@dunmire.org wrote:

 The OSM code is really just a (simple) modification of the tigermaps
 code. The slow speed seems to be all related to pulling images from
 the server. It doesn't appear to me like the images in the cache get
 re-used if the center point changes. So even minor location changes
 can cause a new map to be pulled. A far better solution would be to
 cache OSM tiles (256x256), ala web based maps, but it I opted for the
 quick fix first...

It would be good to cache the map tiles on the local hard drive.

Lynn pulls the tiles, and caches them for use on the WinCE mobile
devices. I think he stores them for 7 days, or to a maximum amount of
space used. The user can over ride these values as desired. I have
caching set to never discard, as I want to use the large hard drive on
my laptop for offline use. I don't have a mobile data connection, so
it makes more sense for me to grab the tiles and keep them on my
drive. For limited resources like the Win Mobile devices, it's better
to dump old tiles, and download new ones as needed.

Speaking of this, when storing the tiles locally, one should keep in
mind the folder naming convention. I currently have my OSM tiles being
shared by RadioMobile, and APRSISCE/32. There's no need to have
multiple copies of the same tiles. If Xastir saves the tiles in the
same manner, then there's another shared resource available. Obviously
the programs being mentioned run on different platforms, but keeping
the same tree structure means that cross platform compatibility is
already in place if/when the programs merge or cross to the other
platform. I'm pretty sure that RadioMobile works under Wine, so the
need is probably already there.

Another thing that Lynn does that is interesting, is that he varies
the opacity of the OSM map in the background. I prefer my background
map to be as bold as possible, but Lynn likes his vary washed out.

Here are a couple screenshots that Lynn made of tracking a balloon
flight earlier today.

http://ldeffenb.dnsalias.net.nyud.net/Tracking/Balloons/WB9SKY-11-2010-06-09%20Burst2.png
http://ldeffenb.dnsalias.net.nyud.net/Tracking/Balloons/WB9SKY-11-2010-06-09%20Falling.png

You can see that the map in the background is very light. This makes
the user data POP right out at you. Looking at Tom's map of
Albequerque that he posted earlier brought this to mind. I had a hard
time seeing the APRS stations on the map, as everything was jumbled
together.

Perhaps varying the opacity of the map images is an idea that Xastir
can do as well. It is a handy feature.

James
VE6SRV
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Murry
If you guys are so impressed you should have seen what we here north of 
the border had to put up with for maps. This is nothing short of 
stupendous. Buy that man a beer, or 2.


VE9MB






On 06/09/2010 08:28 PM, James Ewen wrote:

On Wed, Jun 9, 2010 at 2:44 PM, Curt, WE7Ucurt.w...@gmail.com  wrote:

   

They sure are pretty aren't they?  I already like them better than
Tigermaps.  Once the issues are resolved we'll definitely be several
steps forward.
   

'cept for the people not served well by OSM...
 

But the good thing here is that you can grab your box of digital
crayons, and colour away... need more roads and more details in your
area? Just add them in.

The more people and applications that use OSM, the more people there
are that might help add to the map.

OSM has been working towards a critical mass for quite a while now.
Many people in the past have looked at the database, and said There's
no data in my area, it's no good to me!. We've been working hard at
adding more data, and are currently in the middle of importing huge
amounts of government data into Canada to fill in the holes. Because
the database is getting filled out, when people look at the OSM
project now, it is a little more palatable. Now perhaps instead of
just saying It's not good enough!, they might now use it, and
possibly be inclined to add data or corrections.

Including OSM in Xastir is just going to add that much more visibility
to the OSM project, and perhaps find a few more helping hands to add
more data.

The Haiti earthquake is a marvelous example of crowd sourcing. Before
the earthquake, Port Au Prince was just a couple roads. After the
earthquake, the whole of the area was mapped within days by people
working together. Positions of trapped people were even placed on the
map by outsiders who received phone calls from the trapped victims.
Rescuers were able to look at the map, and know where to send SAR
teams. It was actually an amazing example of worldwide teamwork. Take
a look at the videos if you have a chance.

Port Au Prince, Haiti
http://www.openstreetmap.org/?lat=18.5720443725586lon=-72.271671295166zoom=12

Video of the crowd source mapping response to the earthquake
http://opengeodata.org/video-of-haiti-osm-data


James
VE6SRV
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

   


___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Keith Kaiser
Absolutely amazing that an idea can become reality so quick. Thanks Jerry.



On Jun 9, 2010, at 8:47 PM, kim wrote:

 On Wed, 2010-06-09 at 11:55 -0700, Curt, WE7U wrote:
 Thanks to Jerry Dunmire, KA6HLD, we now have Open Street Map support
 in Xastir.  Woohoo!
 
 
 Thanks Jerry ... 
 
 73
 kim - ac7yy
 
 
 ___
 Xastir mailing list
 Xastir@lists.xastir.org
 http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread David
Hi James..tnx for the thoughts.as im on my way to Auckland N.Z 
tomorrow morning for my Fathers funeral it will be a project for when i 
return early next week


wont be hard to do have a hand held Garmin etrex H which i think will be 
a help


the roads are on the local maps which are of course commercial but i do 
have those set up for xastir and was what i have been using


the new OSM maps look great on Ubuntu 10.4 and nVidia gforce 4 mx440 8x 
video cardthe monitor is a Samtron 76e CRT...would love to afford a 
good LCD screen


73 David VK4BDJ




James Ewen wrote:

On Wed, Jun 9, 2010 at 3:20 PM, David djm...@bigpond.com wrote:

  

Hi All.have just done an upgrade on my Xastir system and when i
restarted the program up came the OSM maps.looks real great for
Australia.the only thing i have found is that  the map of Townsville
does not ha ve the street i live ing...we are in a rural residential area in
the Northern Beaches of Townsvillehowever i can live with that



You don't have to live with that... go to www.openstreetmap.org, and
add your street to the map.

When I got into OSM, my locality of 80,000 people was only a few
roads... I added in all of the local roads over the course of about a
month.

http://wiki.openstreetmap.org/wiki/Canada:Alberta:Strathcona_County

Your area (if I'm in the right area) has some pretty good satellite
imagery (except for a bit of cloud cover), but needs a bit of work on
some roads, and needs a few more added. It doesn't take much to add
the roads in yourself.

http://www.openstreetmap.org/?lat=-19.2461009323597lon=146.80734962225zoom=17

Create a user account, and you can start editing right away in the
browser with the Potlatch online editor!

James
VE6SRV
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

  


___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] Open Street Map support (read this)

2010-06-09 Thread Lee Bengston
On Wed, Jun 9, 2010 at 8:43 PM, Murry murra...@nbnet.nb.ca wrote:
 Disregard.
 Finally got in the right directory/folder and it worked. duh



 On 06/09/2010 08:09 PM, Murry wrote:

 Glad to see that success is happening for a lot of people.
 I am running PCLinuxOS2010 and my for some reason I can't seem to get my
 cvs to update.
 Xastir was installed according to the  how to   for my OS, on the Wiki.

Glad you found it.  The installation notes that I contribute still use
the Tom Russo directory structure that originated in the older
instructions for Ubuntu, so things may have been organized a little
differently than you expected.

Lee - K5DAT
Murphy, TX
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir