grits
9 years agoAdd version info for Debian
Andy Spencer [Sun, 14 Nov 2010 00:09:16 +0000 (00:09 +0000)]
Add version info for Debian

- Add -version-info for libtool
- Add version number to /usr/{lib,share}/gis

9 years agoUpdate TODO
Andy Spencer [Thu, 18 Nov 2010 07:32:58 +0000 (07:32 +0000)]
Update TODO

9 years agoMove g_signal_connects to realize callback
Andy Spencer [Thu, 18 Nov 2010 06:35:21 +0000 (06:35 +0000)]
Move g_signal_connects to realize callback

Under Mesa the "configure" callback is is triggered before the "realize"
callback. This causes a crash because some OpenGL initialization must be
performed after the widget is realized.

Moving the callback connects forces proper ordering.

9 years agoRevert "Test pure distance based errors"
Andy Spencer [Mon, 1 Nov 2010 03:55:14 +0000 (03:55 +0000)]
Revert "Test pure distance based errors"

This reverts commit 2303ef60aac043b63daec4a70a9ee7d70e0ce62f.

9 years agoTest pure distance based errors
Andy Spencer [Mon, 1 Nov 2010 03:54:15 +0000 (03:54 +0000)]
Test pure distance based errors

This commit is for historic purposes and will be reverend shortly.

9 years agoKeep the sphere locked while drawing the wireframe
Andy Spencer [Mon, 1 Nov 2010 03:47:24 +0000 (03:47 +0000)]
Keep the sphere locked while drawing the wireframe

9 years agoGive extra weight to "edge" triangles when splitting
Andy Spencer [Mon, 1 Nov 2010 03:37:53 +0000 (03:37 +0000)]
Give extra weight to "edge" triangles when splitting

"Edge" triangles are triangles where one of the edges of the triangle
makes up an edge off the mesh. For example, the triangle E below is an
edge triangle due to the top edge.

This helps prevent jagged "edges" on the tops of mountains, etc. It also
helps round out the edges of the globe  when viewed from far away.

  ________________
  \    ______    /
   \  /\ E  /\  /
    \/__\  /__\/
         \/

9 years agoSwap order of args to sync_neighbors function
Andy Spencer [Mon, 1 Nov 2010 03:32:38 +0000 (03:32 +0000)]
Swap order of args to sync_neighbors function

9 years agoStore "kids" in RoamTriangle only
Andy Spencer [Mon, 1 Nov 2010 03:24:46 +0000 (03:24 +0000)]
Store "kids" in RoamTriangle only

roam_diamond_merge uses:
self = parent_triangle[0];
base = parent_triangle[1];
kids = {self,base}.kids[0,1];

9 years agoClean up formatting in roam.c
Andy Spencer [Mon, 1 Nov 2010 03:18:14 +0000 (03:18 +0000)]
Clean up formatting in roam.c

- Fix whitespace
- Use abbreviated names in split/merge
- Should be no functional changes

9 years agoUpdate ROAM_DEBUG
Andy Spencer [Mon, 1 Nov 2010 02:55:25 +0000 (02:55 +0000)]
Update ROAM_DEBUG

- Use (void) to prevent unused function warnings
- Only do depth-test in non-debug mode

9 years agoAdd sky effects
Andy Spencer [Mon, 25 Oct 2010 05:03:26 +0000 (05:03 +0000)]
Add sky effects

9 years agoMove OpenGL code from GisOpenGL to objects
Andy Spencer [Sun, 24 Oct 2010 11:57:09 +0000 (11:57 +0000)]
Move OpenGL code from GisOpenGL to objects

Add draw functions to GisObjectClass which should be set by subclasses.
This allows outside object types to be written in the normal way
(instead of always using GisCallback).

This also moves a lot of drawing code out of GisOpenGL which should
prevent it from becoming too big.

Unfortunately, there are some pesky dependency problems between
GisObject/GisViewer/GisOpenGL/GTK now. For example, Wms pulls in
GisTile, which pulls in GisViewer/GisViewer, which pulls in all of GTK.

9 years agoUse GisBounds for height_func instead of GisTile
Andy Spencer [Sun, 24 Oct 2010 11:50:15 +0000 (11:50 +0000)]
Use GisBounds for height_func instead of GisTile

9 years agoRename GisBBox to GisBounds
Andy Spencer [Sun, 24 Oct 2010 11:40:30 +0000 (11:40 +0000)]
Rename GisBBox to GisBounds

It sounds better..

9 years agoAdd "Description of a Project" file
Andy Spencer [Fri, 10 Sep 2010 03:12:59 +0000 (03:12 +0000)]
Add "Description of a Project" file

9 years agoSwitch g_strcmp0 to plain strcmp for glib < 2.16 v0.4.1
Andy Spencer [Tue, 18 May 2010 03:25:44 +0000 (03:25 +0000)]
Switch g_strcmp0 to plain strcmp for glib < 2.16

9 years agoVersion bump for 0.4.1
Andy Spencer [Sun, 16 May 2010 23:42:12 +0000 (23:42 +0000)]
Version bump for 0.4.1

9 years agoVersion 0.4 v0.4
Andy Spencer [Wed, 12 May 2010 03:37:58 +0000 (03:37 +0000)]
Version 0.4

9 years agoVersion bump to -p1
Andy Spencer [Mon, 10 May 2010 05:55:19 +0000 (05:55 +0000)]
Version bump to -p1

9 years agoAdd more files to dist
Andy Spencer [Mon, 10 May 2010 05:35:40 +0000 (05:35 +0000)]
Add more files to dist

9 years agoFix compiler warnings
Andy Spencer [Mon, 10 May 2010 05:34:23 +0000 (05:34 +0000)]
Fix compiler warnings

9 years agoVersion bump to 0.4-p0
Andy Spencer [Thu, 6 May 2010 06:37:49 +0000 (06:37 +0000)]
Version bump to 0.4-p0

9 years agoFix some possible memory issues in GisHttp
Andy Spencer [Wed, 5 May 2010 07:40:39 +0000 (07:40 +0000)]
Fix some possible memory issues in GisHttp

9 years agoAdd support for hidden objects
Andy Spencer [Wed, 5 May 2010 05:51:23 +0000 (05:51 +0000)]
Add support for hidden objects

9 years agoMove GisChunkCallback calls to the main threads
Andy Spencer [Mon, 3 May 2010 08:17:37 +0000 (08:17 +0000)]
Move GisChunkCallback calls to the main threads

Hopefully fix some more Win32 bugs

9 years agoMove gdk_pixbuf calls to main thread
Andy Spencer [Mon, 3 May 2010 07:43:11 +0000 (07:43 +0000)]
Move gdk_pixbuf calls to main thread

Hopefully this will fix some Win32 issues

9 years agoLoad marker from callback in GisPluginTest
Andy Spencer [Mon, 3 May 2010 05:16:43 +0000 (05:16 +0000)]
Load marker from callback in GisPluginTest

9 years agoAdd texture coords to tiles
Andy Spencer [Mon, 3 May 2010 04:38:28 +0000 (04:38 +0000)]
Add texture coords to tiles

9 years agoUse 2^x textures for GisMarker
Andy Spencer [Mon, 3 May 2010 01:10:45 +0000 (01:10 +0000)]
Use 2^x textures for GisMarker

9 years agoAdding OpenGL info query example
Andy Spencer [Sun, 2 May 2010 06:24:09 +0000 (06:24 +0000)]
Adding OpenGL info query example

9 years agoWin32 build fixes
Andy Spencer [Sun, 2 May 2010 01:31:59 +0000 (01:31 +0000)]
Win32 build fixes

9 years agoMiscellaneous bug fixes
Andy Spencer [Sat, 1 May 2010 07:17:04 +0000 (07:17 +0000)]
Miscellaneous bug fixes

- Lots of plugged memory leaks
- Lots of small improvements

9 years agoWin32 port
Andy Spencer [Sat, 1 May 2010 00:00:32 +0000 (00:00 +0000)]
Win32 port

- Use conditional -fPIC
  - All Win32 is PIC

- Use conditional -static
  - -static on Win32 causes double DLL includes

- Add "b" flag to fopen

- Manually fseek when appending
  - Otherwise ftell is incorrect

9 years agoImprove Z-range in OpenGL
Andy Spencer [Mon, 26 Apr 2010 04:52:47 +0000 (04:52 +0000)]
Improve Z-range in OpenGL

This keeps radars of interfering with each other quite so badly

9 years agoImprove threading
Andy Spencer [Mon, 26 Apr 2010 04:51:27 +0000 (04:51 +0000)]
Improve threading

- Clean up some gdk_thread_{enter,leave} calls
- Fix bug in gis_viewer_add (linked list handling)
- Call gtk_gl_init from gis-test (not sure if this is important)

9 years agoFix gis_http_available bugs
Andy Spencer [Mon, 26 Apr 2010 04:49:44 +0000 (04:49 +0000)]
Fix gis_http_available bugs

- Used wrong RE
- Used wrong subexpression reference

9 years agoAdd locking when modifying for viewer object lists
Andy Spencer [Mon, 19 Apr 2010 06:28:18 +0000 (06:28 +0000)]
Add locking when modifying for viewer object lists

9 years agoAdd z-index to tiles
Andy Spencer [Mon, 19 Apr 2010 06:27:17 +0000 (06:27 +0000)]
Add z-index to tiles

Tiles are still drawn on the ground, Z-indexes are used as polygon
offsets so that you can draw things like composite radar images above
the satellite imagery.

9 years agoAdd gis_http_available function
Andy Spencer [Mon, 19 Apr 2010 06:25:23 +0000 (06:25 +0000)]
Add gis_http_available function

This searches online and in the cache for flies matching a pattern and
adds them to a list. Typically it would be used to look for different
version of the same file. (i.e. at different points in time)

9 years agoMove cache name building to separate function
Andy Spencer [Mon, 19 Apr 2010 06:24:23 +0000 (06:24 +0000)]
Move cache name building to separate function

9 years agoSet time to current by default
Andy Spencer [Sat, 17 Apr 2010 06:27:39 +0000 (06:27 +0000)]
Set time to current by default

9 years agoUse time_t for times instead of strings
Andy Spencer [Mon, 15 Feb 2010 18:46:30 +0000 (18:46 +0000)]
Use time_t for times instead of strings

9 years agoAdd better locking in GisOpenGL
Andy Spencer [Mon, 15 Feb 2010 18:46:13 +0000 (18:46 +0000)]
Add better locking in GisOpenGL

9 years agoMove teapot to overlay level
Andy Spencer [Mon, 15 Feb 2010 18:45:49 +0000 (18:45 +0000)]
Move teapot to overlay level

9 years agoFix header in teapot example
Andy Spencer [Sat, 13 Feb 2010 00:30:35 +0000 (00:30 +0000)]
Fix header in teapot example

9 years agoConvert from point to bounding box visibility test
Andy Spencer [Fri, 12 Feb 2010 22:55:25 +0000 (22:55 +0000)]
Convert from point to bounding box visibility test

9 years agoAdd horizon test
Andy Spencer [Fri, 12 Feb 2010 21:55:49 +0000 (21:55 +0000)]
Add horizon test

9 years agoMove test plugin back to install
Andy Spencer [Fri, 12 Feb 2010 21:54:56 +0000 (21:54 +0000)]
Move test plugin back to install

If it's not in plugins, libtool won't make a .so for some reason..
.. silly libtool

9 years agoUpdate to ll2m
Andy Spencer [Fri, 12 Feb 2010 18:10:58 +0000 (18:10 +0000)]
Update to ll2m

9 years agoAvoid excess updates
Andy Spencer [Wed, 10 Feb 2010 14:09:42 +0000 (14:09 +0000)]
Avoid excess updates

9 years agoDon't install test plugin
Andy Spencer [Wed, 10 Feb 2010 13:57:30 +0000 (13:57 +0000)]
Don't install test plugin

9 years agoFix marker locations
Andy Spencer [Wed, 10 Feb 2010 13:35:32 +0000 (13:35 +0000)]
Fix marker locations

9 years agoCall on_configure from on_realize
Andy Spencer [Wed, 10 Feb 2010 13:19:14 +0000 (13:19 +0000)]
Call on_configure from on_realize

9 years agoSet size request for viewer in gis-demo
Andy Spencer [Wed, 10 Feb 2010 13:18:03 +0000 (13:18 +0000)]
Set size request for viewer in gis-demo

9 years agoAdd outline to markers
Andy Spencer [Wed, 10 Feb 2010 13:13:50 +0000 (13:13 +0000)]
Add outline to markers

9 years agoFix up primitive datatypes
Andy Spencer [Wed, 10 Feb 2010 12:27:19 +0000 (12:27 +0000)]
Fix up primitive datatypes

- Move GisPoint to gis-util.[ch]
- Add a GisBBox for n,s,e,w coords

9 years agoUse a different cursor
Andy Spencer [Tue, 9 Feb 2010 19:29:12 +0000 (19:29 +0000)]
Use a different cursor

9 years agoAdd mouse wheel zooming
Andy Spencer [Tue, 9 Feb 2010 19:15:06 +0000 (19:15 +0000)]
Add mouse wheel zooming

9 years agoReturn NULL when GisHttp fetch fails
Andy Spencer [Tue, 9 Feb 2010 18:59:53 +0000 (18:59 +0000)]
Return NULL when GisHttp fetch fails

9 years agoAvoid excess threads with g_mutex_trylock
Andy Spencer [Tue, 9 Feb 2010 17:31:18 +0000 (17:31 +0000)]
Avoid excess threads with g_mutex_trylock

9 years agoUse .part files for downloads
Andy Spencer [Tue, 9 Feb 2010 17:17:57 +0000 (17:17 +0000)]
Use .part files for downloads

9 years agoUse threaded fetch for first tile
Andy Spencer [Tue, 9 Feb 2010 17:03:52 +0000 (17:03 +0000)]
Use threaded fetch for first tile

9 years agoAdd code to draw tile borders
Andy Spencer [Tue, 9 Feb 2010 15:17:43 +0000 (15:17 +0000)]
Add code to draw tile borders

9 years agoLazy tile splitting
Andy Spencer [Tue, 9 Feb 2010 15:08:07 +0000 (15:08 +0000)]
Lazy tile splitting

When a tile is split, only the needed children are loaded. When
rendered, the parent tile must render in places of the non-loaded
children.

9 years agoAdd DOLT to make compiling go faster
Andy Spencer [Mon, 8 Feb 2010 23:36:50 +0000 (23:36 +0000)]
Add DOLT to make compiling go faster

9 years agoRemove pan message
Andy Spencer [Mon, 8 Feb 2010 22:34:06 +0000 (22:34 +0000)]
Remove pan message

9 years agoDocument GisPluginTest
Andy Spencer [Mon, 8 Feb 2010 22:31:02 +0000 (22:31 +0000)]
Document GisPluginTest

9 years agoDocument GisPluginSat
Andy Spencer [Mon, 8 Feb 2010 22:30:44 +0000 (22:30 +0000)]
Document GisPluginSat

9 years agoDocument GisPluginMap
Andy Spencer [Mon, 8 Feb 2010 22:30:40 +0000 (22:30 +0000)]
Document GisPluginMap

9 years agoDocument GisPluginEnv
Andy Spencer [Mon, 8 Feb 2010 22:30:38 +0000 (22:30 +0000)]
Document GisPluginEnv

9 years agoDocument GisPluginElev
Andy Spencer [Mon, 8 Feb 2010 22:30:34 +0000 (22:30 +0000)]
Document GisPluginElev

9 years agoDocument GisTile
Andy Spencer [Mon, 8 Feb 2010 22:30:11 +0000 (22:30 +0000)]
Document GisTile

9 years agoDocument GisCallback
Andy Spencer [Mon, 8 Feb 2010 22:30:02 +0000 (22:30 +0000)]
Document GisCallback

9 years agoDocument GisMarker
Andy Spencer [Mon, 8 Feb 2010 22:29:55 +0000 (22:29 +0000)]
Document GisMarker

9 years agoDocument GisObject
Andy Spencer [Mon, 8 Feb 2010 22:29:48 +0000 (22:29 +0000)]
Document GisObject

9 years agoDocument GisWms
Andy Spencer [Mon, 8 Feb 2010 22:29:37 +0000 (22:29 +0000)]
Document GisWms

9 years agoDocument GisHttp
Andy Spencer [Mon, 8 Feb 2010 22:29:31 +0000 (22:29 +0000)]
Document GisHttp

9 years agoDocument GisData
Andy Spencer [Mon, 8 Feb 2010 22:29:22 +0000 (22:29 +0000)]
Document GisData

9 years agoDocument ROAM
Andy Spencer [Mon, 8 Feb 2010 22:27:47 +0000 (22:27 +0000)]
Document ROAM

9 years agoDocument GPQueue
Andy Spencer [Mon, 8 Feb 2010 22:27:42 +0000 (22:27 +0000)]
Document GPQueue

9 years agoDocument GisPlugin
Andy Spencer [Mon, 8 Feb 2010 22:27:15 +0000 (22:27 +0000)]
Document GisPlugin

9 years agoDocument gis-util
Andy Spencer [Mon, 8 Feb 2010 22:26:51 +0000 (22:26 +0000)]
Document gis-util

9 years agoDocument GisPrefs
Andy Spencer [Mon, 8 Feb 2010 22:26:21 +0000 (22:26 +0000)]
Document GisPrefs

9 years agoDocument GisOpenGL
Andy Spencer [Mon, 8 Feb 2010 22:26:13 +0000 (22:26 +0000)]
Document GisOpenGL

9 years agoDocument GisViewer
Andy Spencer [Mon, 8 Feb 2010 22:24:41 +0000 (22:24 +0000)]
Document GisViewer

9 years agoMiscellaneous updates, mostly aesthetic
Andy Spencer [Mon, 8 Feb 2010 22:20:49 +0000 (22:20 +0000)]
Miscellaneous updates, mostly aesthetic

9 years agoReplace ugly macros with ugly boilerplate
Andy Spencer [Mon, 8 Feb 2010 22:07:08 +0000 (22:07 +0000)]
Replace ugly macros with ugly boilerplate

9 years agoAdd man page for gis-demo
Andy Spencer [Mon, 8 Feb 2010 11:28:53 +0000 (11:28 +0000)]
Add man page for gis-demo

9 years agoConvert self to real names
Andy Spencer [Mon, 8 Feb 2010 10:47:06 +0000 (10:47 +0000)]
Convert self to real names

This follows the conventions used by the rest of the G world..

We were also using real names in the headers anyway, this makes them
consistent.

9 years agoSort of fix panning when rotated
Andy Spencer [Mon, 8 Feb 2010 05:38:00 +0000 (05:38 +0000)]
Sort of fix panning when rotated

Use the current rotation to move the expected direction. This isn't
accurate because it uses lat-lon which aren't Cartesian coordinates.

9 years agoForce WMS to only update once
Andy Spencer [Mon, 8 Feb 2010 05:14:59 +0000 (05:14 +0000)]
Force WMS to only update once

This can cause problems with halfway downloaded files. In the future it
would be better to save partially downloaded data into a .part file and
the continue that even with GIS_ONCE.

9 years agoUpdate todo with some implementation ideas
Andy Spencer [Mon, 8 Feb 2010 05:14:29 +0000 (05:14 +0000)]
Update todo with some implementation ideas

9 years agoFix SRTM url
Andy Spencer [Mon, 8 Feb 2010 05:13:18 +0000 (05:13 +0000)]
Fix SRTM url

9 years agoAdd mouse support
Andy Spencer [Mon, 8 Feb 2010 05:03:56 +0000 (05:03 +0000)]
Add mouse support

Left mouse button:   Panning
Middle mouse button: Zooming
Right mouse button:  Rotation

9 years agoMisc pointer fixes
Andy Spencer [Sat, 6 Feb 2010 15:08:06 +0000 (15:08 +0000)]
Misc pointer fixes

9 years agoGisTile: use g_object_unref instead of g_free
Andy Spencer [Sat, 6 Feb 2010 14:55:54 +0000 (14:55 +0000)]
GisTile: use g_object_unref instead of g_free

9 years agoUpdate TODO
Andy Spencer [Sat, 6 Feb 2010 12:58:35 +0000 (12:58 +0000)]
Update TODO

9 years agoDebugging and memory checking
Andy Spencer [Sat, 6 Feb 2010 12:55:27 +0000 (12:55 +0000)]
Debugging and memory checking

9 years agoFix various memory leaks, mostly in plugins
Andy Spencer [Sat, 6 Feb 2010 11:46:34 +0000 (11:46 +0000)]
Fix various memory leaks, mostly in plugins

- Keep references to objects in plugins and remove/free them when the
  plugins are destroyed.
- g_close_dir in gis-plugin.c