Re: [Qgis-user] Pyspatialite installation issues on Fedora 25

2016-12-19 Thread Eric Goddard
Hi William, I had the same problem on Fedora 25 and solved it with
comment 5 at https://bugzilla.redhat.com/show_bug.cgi?id=1340535.
Create a pyspatialite.py file in ~/.qgis2/python with the following
contents:

from sqlite3 import *

def connect(*args, **kwargs):
import sqlite3
db = sqlite3.connect(*args, **kwargs)
db.enable_load_extension(True)
db.load_extension("mod_spatialite")
return db


and processing should work.

Hope that helps!

Eric

On Mon, Dec 19, 2016 at 10:46 AM, William G. Guthe  wrote:
> Hi,
>
>
>
> I’ve installed QGIS 2.14.3-Essen on an i386 Toughbook running Fedora 25.
> The Processing plugin is missing the pyspatialite module, so I followed
> directions at
> http://blog.oddbit.com/2015/11/17/installing-pyspatialite-on-fedora/ to
> install the dependencies and pyspatialite itself.
>
>
>
> All’s good until I get to the CFLAGS=-I/usr/include pip install pyspatialite
> line of the instructions.  I get this back:
>
>
>
> # CFLAGS=-I/usr/include pip install pyspatialite
> Collecting pyspatialite
>   Using cached pyspatialite-3.0.1-alpha-0.tar.gz
> Installing collected packages: pyspatialite
>   Running setup.py install for pyspatialite ... error
> Complete output from command /usr/bin/python -u -c "import setuptools,
> tokenize;__file__='/tmp/pip-build-ZUHKMv/pyspatialite/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
> /tmp/pip-3kvpOW-record/install-record.txt
> --single-version-externally-managed --compile:
> /usr/lib/python2.7/site-packages/setuptools/dist.py:364: UserWarning:
> Normalizing '3.0.1-alpha-0' to '3.0.1a0'
>   normalized_version,
> running install
> running build
> running build_py
> creating build
> creating build/lib.linux-i686-2.7
> creating build/lib.linux-i686-2.7/pyspatialite
> copying lib/pyspatialite/dump.py ->
> build/lib.linux-i686-2.7/pyspatialite
> copying lib/pyspatialite/dbapi2.py ->
> build/lib.linux-i686-2.7/pyspatialite
> copying lib/pyspatialite/__init__.py ->
> build/lib.linux-i686-2.7/pyspatialite
> running build_ext
> creating tmp
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC
> -I/usr/include/python2.7 -I/usr/include -c /tmp/pj_init_plus1zSZm0.c -o
> tmp/pj_init_plus1zSZm0.o
> /tmp/pj_init_plus1zSZm0.c:1:1: warning: return type defaults to ‘int’
> [-Wimplicit-int]
>  main (int argc, char **argv) {
>  ^~~~
> /tmp/pj_init_plus1zSZm0.c: In function ‘main’:
> /tmp/pj_init_plus1zSZm0.c:2:5: warning: implicit declaration of function
> ‘pj_init_plus’ [-Wimplicit-function-declaration]
>  pj_init_plus();
>  ^~~~
> gcc -pthread tmp/pj_init_plus1zSZm0.o -L/usr/lib -L/usr/lib -lm -lproj
> -o a.out
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
> -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC
> -I/usr/include/python2.7 -I/usr/include -c
> /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c -o
> tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.o
> /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c:1:1: warning: return type
> defaults to ‘int’ [-Wimplicit-int]
>  main (int argc, char **argv) {
>  ^~~~
> /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c: In function ‘main’:
> /tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.c:2:5: warning: implicit
> declaration of function ‘GEOSTopologyPreserveSimplify’
> [-Wimplicit-function-declaration]
>  GEOSTopologyPreserveSimplify();
>  ^~~~
> gcc -pthread tmp/GEOSTopologyPreserveSimplifyJ2Z9Vr.o -L/usr/lib
> -L/usr/lib -lm -lgeos -lgeos_c -o a.out
> gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
> -specs=/usr/lib

Re: [Qgis-user] QGIS Viewer

2016-06-30 Thread Eric Goddard
If you're using the OSGeo4W installer, you could uninstall the filegdb
api so that QGIS has to use the OpenFileGDB driver (which is read
only) to view file geodatabases. The QGIS stand-alone installer just
has the OpenFileGDB driver, so nothing extra is required there.

Eric

On Thu, Jun 30, 2016 at 1:56 PM, Heikki Vesanto
 wrote:
> If you remove customise from the menu they will have to edit their registry
> to get it back. So will stop all but the most determined user.
>
> On 30 Jun 2016 19:27, "Brent Wood"  wrote:
>>
>> And how do you stop a user from turning them on again?
>>
>> Brent Wood
>>
>>
>> 
>> From: Heikki Vesanto 
>> To: t...@wildintellect.com
>> Cc: qgis-user 
>> Sent: Friday, July 1, 2016 6:18 AM
>> Subject: Re: [Qgis-user] QGIS Viewer
>>
>> You can hide most of the interface using the settings>customise menu, no
>> plugin required.
>> On 30 Jun 2016 18:30, "Alex M"  wrote:
>>
>> On 06/30/2016 09:40 AM, James Keener wrote:
>> > How are users accessing the data?  If they're connecting to a
>> > database, can you simply not give them update permission?  If it's
>> > files, can you can keep read-only master copies on a public
>> > store/shared drive?
>> >
>> > Jim
>> >
>> > On Thu, Jun 30, 2016 at 12:20 PM, Tyler Veinot 
>> > wrote:
>> >> Hi again;
>> >> Just wondering if there is a QGIS Viewer available, or any suggestions
>> >> as to
>> >> what I can use that is open source with some basic spatial search
>> >> capabilities and can view filegeodatabases?
>> >>
>> >> I have been deploying QGIS to our staff to view our GIS Data and I am
>> >> starting to get a little nervous where someone could easily do some
>> >> awesome
>> >> geoprocessing damage to our data if they got to messing about. So does
>> >> QGIS
>> >> have something like Esri's Arc Explorer?
>> >>
>> >> Thanks
>> >> Tyler
>> >>
>>
>> The other approach I've seen is to use a plugin to disable and hide most
>> of the interface.
>>
>> Thanks,
>> Alex
>>
>> ___
>> 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
>>
>>
>
> ___
> 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] Lookup Tables in File GDB?

2016-06-06 Thread Eric Goddard
You're correct, the feature class is using a lookup table (domains in
ArcGIS) that the ogr drivers can't access as far as I know. If you can load
the gdb in ArcMap, you can use the Domain to Table tool (
http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/domain-to-table.htm)
to export the lookup codes/values for loading into a Postgres table.

Hope that helps!
Eric

On Mon, Jun 6, 2016 at 10:59 AM Michael Treglia  wrote:

> Hi All,
>
> I'm trying to work with a planimetric dataset available here:
> https://data.cityofnewyork.us/Transportation/NYC-Planimetrics/wt4d-p43d,
> which is available in a FileGDB format.
>
> When I load the layers from the gdb in QGIS, some fields are field with
> numeric values (e.g., entries in the PARK layer, for the FEATURE_CODE
> column are integers). However, when I load the gdb in Arc, FEATURE_CODE is
> filled with string entries (e.g,  'Park Boundary'). Thus, it seems like
> ESRI uses a lookup table or something on this. Does anybody have experience
> in dealing with this type of issue? Is there a good way to deal with this
> via QGIS or OGR? (I'm ultimately wanting to import the data to PostGIS,
> where the same issue is occurring, using org2ogr)
>
> Thanks!
> Mike
> ___
> 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] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-29 Thread Eric Goddard
Problem solved, triggering from the raster menu didn't work, but going
through the raster toolbar did work.

for action in iface.rasterToolBar().actions():
if action.objectName() == 'mActionRunGeoref':
georef = action

georef.trigger()

On Mon, Mar 28, 2016 at 12:36 PM, Eric Goddard  wrote:
> Thanks Nathan, looking forward to 2.16 :)
>
> In the meantime I'm working on a plugin similar to the ArkPlan
> georeferencer (using the GeorefGraphicsView from ArkPlan) , but I'm
> going to temporarily use the hacky solution until I can get that
> finished, which brings me to my next question:
>
> If I I iterate over iface.rasterMenu().actions() and print each item's
> objectName, the only ones that show up are
> mActionShowRasterCalculator, mActionShowAlignRasterTool, and settings;
> the rest are empty strings. If I print each item's text, I get the
> menu text for each submenu on the rasterMenu, so the Georeferencer
> shows up as "&Georeferencer". How do I access the actions on the
> submenus within the rasterMenu()?
>
> Just out of curiosity I did the same iteration over
> iface.rasterMenu().children(), which lists only one QMenu object
> (Terrain Analysis).
>
> Thanks for all of the feedback!
> Eric
>
> On Sat, Mar 26, 2016 at 8:50 AM, Nathan Woodrow  wrote:
>> Don't stress. I'm going to move it to core in 2.16. Will let you know once
>> it's done.
>>
>> - Nathan
>>
>>
>> On Sat, 26 Mar 2016 11:21 pm John Layt  wrote:
>>>
>>> On 26 March 2016 at 00:03, Eric Goddard  wrote:
>>> > Awesome, thanks John. We have about the same number of images to georef
>>> > so
>>> > that will be a big help. I looked at the georeferencer code which is how
>>> > I
>>> > discovered that some of the properties were stored in QSettings. I'm not
>>> > too
>>> > familiar with c++ though, but since the qgis api can be used to do
>>> > custom
>>> > applications I was hoping for a constructor for the georeferencer that I
>>> > could use.
>>>
>>> I did look at forking the C++ georeferencer and adapting it, or
>>> perhaps creating my own python bindings using SIP, but the thought of
>>> having to maintain and install compiled versions for all three
>>> platforms just seemed more hassle, even though I am a C++ developer.
>>>
>>> Trying to think of hacky ways to do this you could trigger the
>>> mActionRunGeoref QAction via QgisInterface.rasterMenu().actions(), but
>>> that would only open the georeferencer, it wouldn't get you having the
>>> right file preselected, there simply isn't an api or setting to do
>>> that. I guess it would allow you to have a plugin that when clicked on
>>> presets the settings you need (including directory) before launching
>>> the georeferencer.
>>>
>>> The ideal would be to move a lot of the code into the public api with
>>> python bindings and have a processing plugin so it can be python
>>> scriptable, but I just don't have the time to do that. One day the
>>> poor usability will get too much though and I will fix it...
>>>
>>> John.
>>> ___
>>> 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
___
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] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-28 Thread Eric Goddard
Thanks Nathan, looking forward to 2.16 :)

In the meantime I'm working on a plugin similar to the ArkPlan
georeferencer (using the GeorefGraphicsView from ArkPlan) , but I'm
going to temporarily use the hacky solution until I can get that
finished, which brings me to my next question:

If I I iterate over iface.rasterMenu().actions() and print each item's
objectName, the only ones that show up are
mActionShowRasterCalculator, mActionShowAlignRasterTool, and settings;
the rest are empty strings. If I print each item's text, I get the
menu text for each submenu on the rasterMenu, so the Georeferencer
shows up as "&Georeferencer". How do I access the actions on the
submenus within the rasterMenu()?

Just out of curiosity I did the same iteration over
iface.rasterMenu().children(), which lists only one QMenu object
(Terrain Analysis).

Thanks for all of the feedback!
Eric

On Sat, Mar 26, 2016 at 8:50 AM, Nathan Woodrow  wrote:
> Don't stress. I'm going to move it to core in 2.16. Will let you know once
> it's done.
>
> - Nathan
>
>
> On Sat, 26 Mar 2016 11:21 pm John Layt  wrote:
>>
>> On 26 March 2016 at 00:03, Eric Goddard  wrote:
>> > Awesome, thanks John. We have about the same number of images to georef
>> > so
>> > that will be a big help. I looked at the georeferencer code which is how
>> > I
>> > discovered that some of the properties were stored in QSettings. I'm not
>> > too
>> > familiar with c++ though, but since the qgis api can be used to do
>> > custom
>> > applications I was hoping for a constructor for the georeferencer that I
>> > could use.
>>
>> I did look at forking the C++ georeferencer and adapting it, or
>> perhaps creating my own python bindings using SIP, but the thought of
>> having to maintain and install compiled versions for all three
>> platforms just seemed more hassle, even though I am a C++ developer.
>>
>> Trying to think of hacky ways to do this you could trigger the
>> mActionRunGeoref QAction via QgisInterface.rasterMenu().actions(), but
>> that would only open the georeferencer, it wouldn't get you having the
>> right file preselected, there simply isn't an api or setting to do
>> that. I guess it would allow you to have a plugin that when clicked on
>> presets the settings you need (including directory) before launching
>> the georeferencer.
>>
>> The ideal would be to move a lot of the code into the public api with
>> python bindings and have a processing plugin so it can be python
>> scriptable, but I just don't have the time to do that. One day the
>> poor usability will get too much though and I will fix it...
>>
>> John.
>> ___
>> 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
___
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] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-25 Thread Eric Goddard
Awesome, thanks John. We have about the same number of images to georef so
that will be a big help. I looked at the georeferencer code which is how I
discovered that some of the properties were stored in QSettings. I'm not
too familiar with c++ though, but since the qgis api can be used to do
custom applications I was hoping for a constructor for the georeferencer
that I could use.

Eric
On Mar 25, 2016 4:35 PM, "John Layt"  wrote:

> On 25 March 2016 at 20:05, Eric Goddard  wrote:
> > It looks like I can make sure most of the settings are configured
> > properly using QSettings(), but still not sure how to go about opening
> > the georeferencer with an image and the output and report fields
> > pre-populated.
>
> As far as I'm aware you can't, it's written as a separate C++ plugin
> and none of the code is accessible via python, in particular launching
> it with a given image. See
> https://github.com/qgis/QGIS/tree/master/src/plugins/georeferencer for
> the code. I wish the code was available via api calls and more
> scriptable, I could sure use it myself.
>
> For our own far simpler special use case when I had to georeference
> 3000 plans to preset grid points I wrote our own plugin gui to load
> the images, set the gcp's and made the calls out to gdal directly
> (reduced the effort from 42 clicks per image to just 6, so well worth
> it). It could be adaptable to your use case, you can see the code at
> https://github.com/lparchaeology/ArkPlan/tree/master/georef, feel free
> to use any of it. You'd need to change it to have a single image view
> that takes multiple gcp's, and then get the map points from the main
> canvas (see
> https://github.com/lparchaeology/ArkPlan/blob/master/grid/grid_wizard.py
> for how to do that), but it shouldn't take too much work.
>
> If it is useful, let me know, I've been meaning to spin it off as it's
> own plugin for some time and having another use case would justify the
> effort in generalising it :-)
>
> John.
> ___
> 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] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-25 Thread Eric Goddard
It looks like I can make sure most of the settings are configured
properly using QSettings(), but still not sure how to go about opening
the georeferencer with an image and the output and report fields
pre-populated.

On Fri, Mar 25, 2016 at 7:36 AM, Eric Goddard  wrote:
> Hi Nicolas,
>
> Thanks for the feedback. The script solution won't really work for us since
> we don't have pre-existing GCPs to use in the scripts. We need to use the
> georeferencer so we can place and make adjustments to the GCPs.
>
> Eric
>
>
> On Mar 24, 2016 1:07 PM, "Nicolas Cadieux" 
> wrote:
>>
>> Hi,
>>
>> The easiest way probably is to use Python to write a batch files
>> containing the gdal scripts.  Then you open this .bat in the Osgeo4w shell
>> and everything gets done.
>>
>> This way, all you need to do is query the file name or directories and add
>> the parameters in the batch file.
>>
>> This is not very user friendly for the users but it's easy to make.
>>
>> I could send you an example for making up gdal-grid commands.
>>
>> Nicolas
>>
>> On Mar 24, 2016 13:36, "Eric Goddard [via OSGeo.org]" <[hidden email]>
>> wrote:
>>
>> Hi All,
>>
>> I'm working on a project that involves georeferencing many historic
>> images. We'll have several people working in tandem, so to speed
>> things up and reduce errors I'd like to create a qgis python plugin
>> that, based on the source folder they select, auto populates the gdal
>> transformation settings such as the transformation type, resampling
>> method, target srs, output image and report paths.
>>
>> I'm having some trouble working through the QGIS API documentation
>> though; does anyone know if it is possible to launch the georeferencer
>> window and set some of the transformation settings from python? So far
>> I've only been able to find examples of opening a processing tool's
>> GUI from python.
>>
>> Thanks!
>> Eric
>> ___
>> Qgis-user mailing list
>> > href="/user/SendEmail.jtp?type=node&node=5258224&i=0">[hidden
>> email]
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> 
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://osgeo-org.1560.x6.nabble.com/creating-a-python-plugin-to-autopopulate-some-of-the-Georeferencer-properties-tp5258224.html
>> To start a new topic under Quantum GIS - User, email
>> ml-node+s1560n4125267...@n6.nabble.com
>> To unsubscribe from Quantum GIS - User, > href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4125267&code=bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg==";>click
>> here.
>> > href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml";
>> style="font:9px serif">NAML
>>
>>
>> 
>> View this message in context: Re: creating a python plugin to autopopulate
>> some of the Georeferencer properties
>> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
>>
>> ___
>> 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] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-25 Thread Eric Goddard
Hi Nicolas,

Thanks for the feedback. The script solution won't really work for us since
we don't have pre-existing GCPs to use in the scripts. We need to use the
georeferencer so we can place and make adjustments to the GCPs.

Eric


On Mar 24, 2016 1:07 PM, "Nicolas Cadieux" 
wrote:

> Hi,
>
> The easiest way probably is to use Python to write a batch files
> containing the gdal scripts.  Then you open this .bat in the Osgeo4w shell
> and everything gets done.
>
> This way, all you need to do is query the file name or directories and add
> the parameters in the batch file.
>
> This is not very user friendly for the users but it's easy to make.
>
> I could send you an example for making up gdal-grid commands.
>
> Nicolas
> On Mar 24, 2016 13:36, "Eric Goddard [via OSGeo.org]" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5258232&i=0>> wrote:
>
> Hi All,
>
> I'm working on a project that involves georeferencing many historic
> images. We'll have several people working in tandem, so to speed
> things up and reduce errors I'd like to create a qgis python plugin
> that, based on the source folder they select, auto populates the gdal
> transformation settings such as the transformation type, resampling
> method, target srs, output image and report paths.
>
> I'm having some trouble working through the QGIS API documentation
> though; does anyone know if it is possible to launch the georeferencer
> window and set some of the transformation settings from python? So far
> I've only been able to find examples of opening a processing tool's
> GUI from python.
>
> Thanks!
> Eric
> ___
> Qgis-user mailing list
>  href="/user/SendEmail.jtp?type=node&node=5258224&i=0">[hidden
> email]
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.x6.nabble.com/creating-a-python-plugin-to-autopopulate-some-of-the-Georeferencer-properties-tp5258224.html
> To start a new topic under Quantum GIS - User, email
> ml-node+s1560n4125267...@n6.nabble.com
> To unsubscribe from Quantum GIS - User, http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4125267&code=bmljb2xhcy5jYWRpZXV4QGFyY2hlb3RlYy5jYXw0MTI1MjY3fDYzNDQ4MjQxNg==";>click
> here.
> http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id&%2361;instant_html%21nabble%3Aemail.naml&base&%2361;nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs&%2361;notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>"
> style="font:9px serif">NAML
>
>
> --
> View this message in context: Re: creating a python plugin to
> autopopulate some of the Georeferencer properties
> <http://osgeo-org.1560.x6.nabble.com/creating-a-python-plugin-to-autopopulate-some-of-the-Georeferencer-properties-tp5258224p5258232.html>
> Sent from the Quantum GIS - User mailing list archive
> <http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html> at
> Nabble.com.
>
> ___
> 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

[Qgis-user] creating a python plugin to autopopulate some of the Georeferencer properties

2016-03-24 Thread Eric Goddard
Hi All,

I'm working on a project that involves georeferencing many historic
images. We'll have several people working in tandem, so to speed
things up and reduce errors I'd like to create a qgis python plugin
that, based on the source folder they select, auto populates the gdal
transformation settings such as the transformation type, resampling
method, target srs, output image and report paths.

I'm having some trouble working through the QGIS API documentation
though; does anyone know if it is possible to launch the georeferencer
window and set some of the transformation settings from python? So far
I've only been able to find examples of opening a processing tool's
GUI from python.

Thanks!
Eric
___
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] Stacking Landsat Bands

2014-11-13 Thread Eric Goddard
Hi Jonathan, Did you try the GDAL merge tool (Raster -> Miscellaneous
-> Merge)? If you check the layer stack box it will create a multiband
image with any number of input files.

Eric

On Thu, Nov 13, 2014 at 8:31 AM, Carl  wrote:
> Jonathan
> I'm not familiar with the Orfeo tool but I use the SAGA Rgb Composite tool
> under SAGA\Grid-Visualization\ to stack Landsat scenes. It limits you to
> three bands which is a bummer, but works well. The tool output is rescaled
> to 8-bit, so you shouldn't use the stacked imagery for change analysis
> later, but it’s great for visualization.
> The GRASS Raster tool r.composite will also stack, but the SAGA tool seems
> to handle Landsat 7 SLC-off data gaps better.
> I’m new to QGIS, so some of the above might be wrong...
> Carl
>
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/Stacking-Landsat-Bands-tp5172804p5172838.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Partitioning an Ortho?

2014-04-05 Thread Eric Goddard
Keep in mind that you need to have a license to write to sid files. If you
only have the license to read sids, when you partition your existing 4GB
sid, the output will most likely be geotiff which isn't as compressed as
sid so the overall file size may be larger.
On Apr 5, 2014 1:48 PM, "AntonioLocandro" 
wrote:

> Try something like this
>
> http://gis.stackexchange.com/questions/10117/how-to-clip-a-raster-with-vector-boundaries
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Partitioning-an-Ortho-tp5131985p5133313.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Problem opening .GDB (v 10.1) using QGIS

2014-03-27 Thread Eric Goddard
In another thread about QGIS and FileGeodatabases, there is a link to
the OpenFileGDB driver [1]. It mentions a different type of
compression that the fileGDB API doesn't support. It doesn't appear
that the FWA_LINEAR_BOUNDARIES_SP.gdb has that type of compression so
it should be able to load in theory.

I tried opening the GDB in QGIS and got the red bar at the top with
the invalid data message like you. Once that failed, we both used the
ogrinfo (QGIS uses the OGR library to read FileGDBs) command line tool
to see if OGR could open the geodatabase. It said it could, but it is
failing because it did not report detailed information about the
feature classes in the the database like it should have since the
'-al' flag was used. Since OGR can't open the file geodatabase, QGIS
can't read it.

 [1] http://erouault.blogspot.com/2014/01/ogr-openfilegdb-driver.html

On Thu, Mar 27, 2014 at 12:06 PM, Eric Goddard  wrote:
> I have gdal built with FileGDB support and I was unable to open the
> geodatabase; QGIS gave an invalid datasource error. Arcpy reports that
> it is indeed a version 10/10.1 database though. Using
>
> ogrinfo -al FWA_LINEAR_BOUNDARIES_SP.gdb
>
> reports that it was successfully opened:
> INFO: Open of `FWA_LINEAR_BOUNDARIES_SP.gdb'
>   using driver `FileGDB' successful.
>
> However, it should have also printed detailed information about the
> feature classes in the geodatabase, which it didn't. Not sure what is
> going on in the gdb. I was able to open it with ArcMap (checked the
> version with arcpy).
>
> On Thu, Mar 27, 2014 at 12:05 PM, Clifford Snow  
> wrote:
>>
>> On Thu, Mar 27, 2014 at 8:32 AM, cdp  wrote:
>>>
>>> The data is supposed to be an Esri file geodatabase created with ArcGIS
>>> 10.1.
>>>
>>> The data  is stream network data from the BC provincial government and can
>>> be found at the following FTP location if anyone wants to try it out on
>>> their end (no login info required)
>>>
>>> ftp.geobc.gov.bc.ca/pub/outgoing/FWA_Public
>>>
>>> There you will find 4 zipped files. Download the smallest of them and let
>>> me
>>> know what you find. that should be
>>>
>>> FWA_LINEAR_BOUNDARIES_SP.gdb.zip
>>
>>
>> ogrinfo -al just reports:
>> INFO: Open of `FWA_LINEAR_BOUNDARIES_SP.gdb'
>>   using driver `FileGDB' successful.
>>
>> I'm able to open other FileGDBs. I wonder if someone with ArcGIS can open
>> this file?
>>
>> Clifford
>> --
>> @osm_seattle
>> osm_seattle.snowandsnow.us
>> OpenStreetMap: Maps with a human touch
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problem opening .GDB (v 10.1) using QGIS

2014-03-27 Thread Eric Goddard
I have gdal built with FileGDB support and I was unable to open the
geodatabase; QGIS gave an invalid datasource error. Arcpy reports that
it is indeed a version 10/10.1 database though. Using

ogrinfo -al FWA_LINEAR_BOUNDARIES_SP.gdb

reports that it was successfully opened:
INFO: Open of `FWA_LINEAR_BOUNDARIES_SP.gdb'
  using driver `FileGDB' successful.

However, it should have also printed detailed information about the
feature classes in the geodatabase, which it didn't. Not sure what is
going on in the gdb. I was able to open it with ArcMap (checked the
version with arcpy).

On Thu, Mar 27, 2014 at 12:05 PM, Clifford Snow  wrote:
>
> On Thu, Mar 27, 2014 at 8:32 AM, cdp  wrote:
>>
>> The data is supposed to be an Esri file geodatabase created with ArcGIS
>> 10.1.
>>
>> The data  is stream network data from the BC provincial government and can
>> be found at the following FTP location if anyone wants to try it out on
>> their end (no login info required)
>>
>> ftp.geobc.gov.bc.ca/pub/outgoing/FWA_Public
>>
>> There you will find 4 zipped files. Download the smallest of them and let
>> me
>> know what you find. that should be
>>
>> FWA_LINEAR_BOUNDARIES_SP.gdb.zip
>
>
> ogrinfo -al just reports:
> INFO: Open of `FWA_LINEAR_BOUNDARIES_SP.gdb'
>   using driver `FileGDB' successful.
>
> I'm able to open other FileGDBs. I wonder if someone with ArcGIS can open
> this file?
>
> Clifford
> --
> @osm_seattle
> osm_seattle.snowandsnow.us
> OpenStreetMap: Maps with a human touch
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Selecting rasters with vector layer

2014-03-04 Thread Eric Goddard
Hi Asher,

Sorry, I didn't read the full GDAL page regarding ECW support
(http://www.gdal.org/frmt_ecw.html). ECW is a proprietary format owned
by intergraph. GDAL allows reading and writing of ECW files, but in
order to write ECW files you have to have a licensing key from
Intergraph. On Linux, when configuring the the ECW plugin it asks for
the key, and if the user doesn't have one it is configuring in
read-only mode. I'm assuming you used the OSGeo4Win installer, which I
think configures the ECW support as read only by default. If you do
have a key, I'm not sure how you would go about setting up GDAL ECW
support to recognize it.

>From the gdal ECW page:
The ECW 4.x SDK from ERDAS is only free for image decompression. To
compress images it is necessary to build with the read/write SDK and
to provide an OEM licensing key at runtime which may be purchased from
ERDAS.


Does the third party software you have to use not support any other formats?

On Tue, Mar 4, 2014 at 3:41 AM, Asher Kamiraze  wrote:
> Eric,
>
> I just tried to create a VRT from all ecw images in a folder. Unfortunately,
> it does not work, the command line seems to be rejected when there are too
> many input files. The problem also appear if directly using the gdalbuildvrt
> from the command line. The only solution I found was to build an
> input_file_list with the following command:
>
> cd 
> dir /b *.ecw > listin_ecw.txt
> gdalbuildvrt -input_file_list listin_ecw.txt all_ecw.vrt
>
> Then, if I try to save the cropping result as an ECW file, I got the
> following error:
>
> Output driver `ECW' not recognised or does not support
> direct output file creation. The following format drivers are configured
> and support direct output:
> GeoRaster: Oracle Spatial GeoRaster
> VRT: Virtual Raster
> GTiff: GeoTIFF
> NITF: National Imagery Transmission Format
> HFA: Erdas Imagine Images (.img)
> ELAS: ELAS
> MEM: In Memory Raster
> BMP: MS Windows Device Independent Bitmap
> PCIDSK: PCIDSK Database File
> ILWIS: ILWIS Raster Map
> SGI: SGI Image File Format 1.0
> Leveller: Leveller heightfield
> Terragen: Terragen heightfield
> netCDF: Network Common Data Format
> HDF4Image: HDF4 Dataset
> ISIS2: USGS Astrogeology ISIS cube (Version 2)
> ERS: ERMapper .ers Labelled
> RMF: Raster Matrix Format
> RST: Idrisi Raster A.1
> INGR: Intergraph Raster
> GSBG: Golden Software Binary Grid (.grd)
> GS7BG: Golden Software 7 Binary Grid (.grd)
> PNM: Portable Pixmap Format (netpbm)
> ENVI: ENVI .hdr Labelled
> EHdr: ESRI .hdr Labelled
> PAux: PCI .aux Labelled
> MFF: Vexcel MFF Raster
> MFF2: Vexcel MFF2 (HKV) Raster
> BT: VTP .bt (Binary Terrain) 1.3 Format
> LAN: Erdas .LAN/.GIS
> IDA: Image Data and Analysis
> GTX: NOAA Vertical Datum .GTX
> NTv2: NTv2 Datum Grid Shift
> CTable2: CTable2 Datum Grid Shift
> ADRG: ARC Digitized Raster Graphics
> SAGA: SAGA GIS Binary Grid (.sdat)
>
> The generated command line by QGIs is:
>
> gdalwarp -q -cutline "F:\\MY_SHP_PATH\\Commune_Aix-en-Provence.shp"
> -crop_to_cutline -of ECW F:\MY_VRT_PATH\Toutes_dalles_13.vrt
> "F:/MY_OUTPUT_PATH/crop.ecw"
>
> It does not seem to be a "\" "/" issue, since if I choose a .vrt output it
> works fine.
>
> Any idea on how to solve the problem?
>
> I am running QGIS 2.2.0 on 64 bits windows.
>
> Regards
>
>
>
> 2014-03-04 1:51 GMT+01:00 Eric Goddard :
>
>> Yes, you should be able to choose ECW from the files of type drop down in
>> the output file selection dialog and select ECW.
>>
>> Eric
>>
>>
>> On Mon, Mar 3, 2014 at 4:48 PM, Asher Kamiraze 
>> wrote:
>>>
>>> Thanks Eric, sounds really good. Is there a way to save the resulting
>>> file (clipped) as an ECW file? I need to process it later with a 3rd party
>>> software.
>>>
>>> Regards
>>>
>>>
>>> 2014-03-03 23:26 GMT+01:00 Eric Goddard :
>>>
>>>> Hi asher, if you go to raster -> miscellaneous, there is a menu entry
>>>> called build virtual raster catalog. You can use that to virtually mosaic
>>>> all of your ECW files. This tool creates a new file you can load in as a
>>>> raster that references all of the individual ECW files to display them
>>>> seamlessly in qgis without having to spend the time to actually mosaic all
>>>> of them together. Load the resulting vrt file into qgis using add raster 
>>>> and
>>>> clip the vrt to your polygon layer using raster -> extraction -> clipper.
>>>>
>>>> Eric
>>>>
>>>> On Mar 3, 2014 3:53 PM, "Asher Kamira

Re: [Qgis-user] Selecting rasters with vector layer

2014-03-03 Thread Eric Goddard
Yes, you should be able to choose ECW from the files of type drop down in
the output file selection dialog and select ECW.

Eric


On Mon, Mar 3, 2014 at 4:48 PM, Asher Kamiraze wrote:

> Thanks Eric, sounds really good. Is there a way to save the resulting file
> (clipped) as an ECW file? I need to process it later with a 3rd party
> software.
>
> Regards
>
>
> 2014-03-03 23:26 GMT+01:00 Eric Goddard :
>
> Hi asher, if you go to raster -> miscellaneous, there is a menu entry
>> called build virtual raster catalog. You can use that to virtually mosaic
>> all of your ECW files. This tool creates a new file you can load in as a
>> raster that references all of the individual ECW files to display them
>> seamlessly in qgis without having to spend the time to actually mosaic all
>> of them together. Load the resulting vrt file into qgis using add raster
>> and clip the vrt to your polygon layer using raster -> extraction ->
>> clipper.
>>
>> Eric
>> On Mar 3, 2014 3:53 PM, "Asher Kamiraze" 
>> wrote:
>>
>>> Hi all,
>>>
>>> I have a set of more than 200 ecw rasters that I can easily load in
>>> QGIS. I also have a vector polygon layer which bounds an area covering a
>>> part of the area covered by the whole set of rasters. What I would like to
>>> do is to extract only, the raster which are intersected by the vector
>>> boundary. As a final goal, I would like to only mosaic thoses images. I did
>>> not found a way to easily do this in QGIS. Any idea on how to achieve this?
>>>
>>> As a workaround, I have opened only the raster intersecting the vector,
>>> and would like to mosaic them. However, it does not seem to be a function
>>> in QGIS ready to mosaic all opened (or selected) rasters. Any idea on how
>>> to automate the process?
>>>
>>> Hope you could help
>>>
>>> Regards
>>>
>>> ___
>>> Qgis-user mailing list
>>> Qgis-user@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Selecting rasters with vector layer

2014-03-03 Thread Eric Goddard
Hi asher, if you go to raster -> miscellaneous, there is a menu entry
called build virtual raster catalog. You can use that to virtually mosaic
all of your ECW files. This tool creates a new file you can load in as a
raster that references all of the individual ECW files to display them
seamlessly in qgis without having to spend the time to actually mosaic all
of them together. Load the resulting vrt file into qgis using add raster
and clip the vrt to your polygon layer using raster -> extraction ->
clipper.

Eric
On Mar 3, 2014 3:53 PM, "Asher Kamiraze"  wrote:

> Hi all,
>
> I have a set of more than 200 ecw rasters that I can easily load in QGIS.
> I also have a vector polygon layer which bounds an area covering a part of
> the area covered by the whole set of rasters. What I would like to do is to
> extract only, the raster which are intersected by the vector boundary. As a
> final goal, I would like to only mosaic thoses images. I did not found a
> way to easily do this in QGIS. Any idea on how to achieve this?
>
> As a workaround, I have opened only the raster intersecting the vector,
> and would like to mosaic them. However, it does not seem to be a function
> in QGIS ready to mosaic all opened (or selected) rasters. Any idea on how
> to automate the process?
>
> Hope you could help
>
> Regards
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] MrSID raster and QGIS in linux

2013-12-04 Thread Eric Goddard
In Ubuntu 13.04 opencl is provided by the opencl-headers package. You
probably won't actually need that option though, so I would just
remove --with-opencl=yes from the configure options.

On Wed, Dec 4, 2013 at 7:01 AM, BigBaka  wrote:
> Hello again Eric,
>
> So on the configure grass 7 for compilation I got another error.
>
>
> Similar to gdal I took the postgis lines out of configure and wrote as such
> ./configure --prefix=/usr/local/grass70 --enable-largefile --with-sqlite
> --with-freetype=yes --with-freetype-includes=/usr/include/freetype2
> --with-proj-share=/usr/share/proj --with-python --with-cxx --with-wxwidgets
> --with-tcltk-includes=/usr/include/tcl8.5 --with-odbc=yes --enable-64bit
> --with-geos=yes --with-openmp=yes --with-liblas=yes --with-cairo=yes
> --with-opencl=yes --with-pthread=yes
>
> seemed to go OK until it crashed trying to locate the OpenCL library...
>
> checking for pthread_create... no
> checking for pthread_create in -lpthread... yes
> checking whether to use OpenMP... yes
> checking for location of OpenMP includes...
> checking for omp.h... yes
> checking for location of OpenMP library...
> checking for GOMP_parallel_start... no
> checking for GOMP_parallel_start in -lgomp... yes
> checking whether to use OpenCL... yes
> checking for location of OpenCL includes...
> checking for CL/cl.h... yes
> checking for location of OpenCL library...
> checking for clGetPlatformInfo in -lOpenCL... no
> configure: error: *** Unable to locate OpenCL library.
>
>
> On 04/12/13 16:16, Eric Goddard [via OSGeo.org] wrote:
>
> It sounds like you didn't get all of the packages in the dependencies
> section installed; many of the development packages should have been
> installed with the build-essential package. bison and ncurses-dev are
> also in the list and will take care of the curses error., and the
> libxmu-dev package will fix the X error. Did you paste the whole chunk
> of dependencies in as a single line?
>
>
>
> On Wed, Dec 4, 2013 at 3:04 AM, BigBaka <[hidden email]> wrote:
>
>> Hi Eric,
>>
>> Am I missing some compiling package? I also had to download a program
>> called
>> bison. Now I getting an error Unable to locate curses. Also couldn't seem
>> to
>> locate W11 and X. When I tried to install a package called curses.h it
>> said
>> something about "package ncurses-hexedit should be rebuilt with new
>> debhelper to get trigger support! - whatever that means.
>>
>>
>> On 04/12/13 15:34, Eric Goddard [via OSGeo.org] wrote:
>>
>> You will need to remove the --with-postgres=yes and
>> --with-postgres-includes=/usr/include/postgresql options. As for the
>> lex error, you should be able to fix that by running
>>
>> sudo apt-get install flex
>>
>> on the command line before configuring.
>>
>> On Wed, Dec 4, 2013 at 1:42 AM, Glenn Hunt <[hidden email]> wrote:
>>
>>> Hi Eric,
>>>
>>> I decided not to compile postgis but do I then need to change the
>>> configure
>>> line for compiling grass 64? I just tried to compile now using the full
>>> text
>>> in your document and got an error right at the beginning.
>>>
>>> checing for lex... no
>>> configure: error: *** Unable to locate lex.
>>>
>>>
>>> On 04/12/13 00:20, Eric Goddard wrote:
>>>
>>> The packages I use for postgres on Ubuntu 13.04 are:
>>> postgresql-server-dev-9.1 postgresql-client postgresql-9.1
>>> postgresql-contrib-9.1. I don't know if Ubuntu 12.04 has postgres 9.1;
>>> it may still be on 9. Try finding the equivalent packages with
>>> synaptic, or simply don't compile postgis if you never use it.
>>>
>>> On Tue, Dec 3, 2013 at 11:07 AM, BigBaka <[hidden email]> wrote:
>>>
>>> Re configured, make, and make installed gdal. Moved onto the postgis
>>> Downloaded package but when in tried to configure i got an error
>>>
>>> checking for pg_config... no
>>> configure: error: could not find pg_config within the current path. You
>>> may
>>> need to try re-running configure with a --with-pgconfig parameter.
>>> make: *** [GNUmakefile] Error 1
>>>
>>> ideas?
>>>
>>> On 03/12/13 23:26, Eric Goddard [via OSGeo.org] wrote:
>>>
>>> I would recompile gdal. Switch to the gdal source directory and run
>>> 'make clean', and then re run the ./configure, make, and make install
>>> lines.
>>>
>>> On Tue, Dec 3, 2013 at 10:21 AM, BigBaka <[hidden email]> wrot

Re: [Qgis-user] MrSID raster and QGIS in linux

2013-12-04 Thread Eric Goddard
It sounds like you didn't get all of the packages in the dependencies
section installed; many of the development packages should have been
installed with the build-essential package. bison and ncurses-dev are
also in the list and will take care of the curses error., and the
libxmu-dev package will fix the X error. Did you paste the whole chunk
of dependencies in as a single line?



On Wed, Dec 4, 2013 at 3:04 AM, BigBaka  wrote:
> Hi Eric,
>
> Am I missing some compiling package? I also had to download a program called
> bison. Now I getting an error Unable to locate curses. Also couldn't seem to
> locate W11 and X. When I tried to install a package called curses.h it said
> something about "package ncurses-hexedit should be rebuilt with new
> debhelper to get trigger support! - whatever that means.
>
>
> On 04/12/13 15:34, Eric Goddard [via OSGeo.org] wrote:
>
> You will need to remove the --with-postgres=yes and
> --with-postgres-includes=/usr/include/postgresql options. As for the
> lex error, you should be able to fix that by running
>
> sudo apt-get install flex
>
> on the command line before configuring.
>
> On Wed, Dec 4, 2013 at 1:42 AM, Glenn Hunt <[hidden email]> wrote:
>
>> Hi Eric,
>>
>> I decided not to compile postgis but do I then need to change the
>> configure
>> line for compiling grass 64? I just tried to compile now using the full
>> text
>> in your document and got an error right at the beginning.
>>
>> checing for lex... no
>> configure: error: *** Unable to locate lex.
>>
>>
>> On 04/12/13 00:20, Eric Goddard wrote:
>>
>> The packages I use for postgres on Ubuntu 13.04 are:
>> postgresql-server-dev-9.1 postgresql-client postgresql-9.1
>> postgresql-contrib-9.1. I don't know if Ubuntu 12.04 has postgres 9.1;
>> it may still be on 9. Try finding the equivalent packages with
>> synaptic, or simply don't compile postgis if you never use it.
>>
>> On Tue, Dec 3, 2013 at 11:07 AM, BigBaka <[hidden email]> wrote:
>>
>> Re configured, make, and make installed gdal. Moved onto the postgis
>> Downloaded package but when in tried to configure i got an error
>>
>> checking for pg_config... no
>> configure: error: could not find pg_config within the current path. You
>> may
>> need to try re-running configure with a --with-pgconfig parameter.
>> make: *** [GNUmakefile] Error 1
>>
>> ideas?
>>
>> On 03/12/13 23:26, Eric Goddard [via OSGeo.org] wrote:
>>
>> I would recompile gdal. Switch to the gdal source directory and run
>> 'make clean', and then re run the ./configure, make, and make install
>> lines.
>>
>> On Tue, Dec 3, 2013 at 10:21 AM, BigBaka <[hidden email]> wrote:
>>
>> After posting that I went into synaptic and installed geotiff 1.4.
>> Following
>> that it seems it worked.
>> Values for GEOTIFF_INCLUDE_DIR and GEOTIFF_LIBRARY
>> are usr/include/geotiff and usr/lib/libgeotiff.so respectively now.
>>
>> I did manage to get the gdal compiled without geotiff, but I'm not sure
>> there may have been some errors that I just overlooked. Would you
>> recommend
>> starting from the beginning again, or just keep going as is?
>>
>> Regards,
>> BB
>>
>>
>>
>> --
>> View this message in context:
>>
>> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092439.html
>> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
>> ___
>> Qgis-user mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> ___
>> Qgis-user mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>> 
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092441.html
>> To unsubscribe from MrSID raster and QGIS in linux, click here.
>> NAML
>>
>>
>>
>> 
>> View this message in context: Re: MrSID raster and QGIS in linux
>>
>> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
>>
>> ___
>> Qgis-user mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> .
>>
>>
> _

Re: [Qgis-user] MrSID raster and QGIS in linux

2013-12-04 Thread Eric Goddard
You will need to remove the --with-postgres=yes and
--with-postgres-includes=/usr/include/postgresql options. As for the
lex error, you should be able to fix that by running

sudo apt-get install flex

on the command line before configuring.

On Wed, Dec 4, 2013 at 1:42 AM, Glenn Hunt  wrote:
> Hi Eric,
>
> I decided not to compile postgis but do I then need to change the configure
> line for compiling grass 64? I just tried to compile now using the full text
> in your document and got an error right at the beginning.
>
> checing for lex... no
> configure: error: *** Unable to locate lex.
>
>
> On 04/12/13 00:20, Eric Goddard wrote:
>
> The packages I use for postgres on Ubuntu 13.04 are:
> postgresql-server-dev-9.1 postgresql-client postgresql-9.1
> postgresql-contrib-9.1. I don't know if Ubuntu 12.04 has postgres 9.1;
> it may still be on 9. Try finding the equivalent packages with
> synaptic, or simply don't compile postgis if you never use it.
>
> On Tue, Dec 3, 2013 at 11:07 AM, BigBaka  wrote:
>
> Re configured, make, and make installed gdal. Moved onto the postgis
> Downloaded package but when in tried to configure i got an error
>
> checking for pg_config... no
> configure: error: could not find pg_config within the current path. You may
> need to try re-running configure with a --with-pgconfig parameter.
> make: *** [GNUmakefile] Error 1
>
> ideas?
>
> On 03/12/13 23:26, Eric Goddard [via OSGeo.org] wrote:
>
> I would recompile gdal. Switch to the gdal source directory and run
> 'make clean', and then re run the ./configure, make, and make install
> lines.
>
> On Tue, Dec 3, 2013 at 10:21 AM, BigBaka <[hidden email]> wrote:
>
> After posting that I went into synaptic and installed geotiff 1.4.
> Following
> that it seems it worked.
> Values for GEOTIFF_INCLUDE_DIR and GEOTIFF_LIBRARY
> are usr/include/geotiff and usr/lib/libgeotiff.so respectively now.
>
> I did manage to get the gdal compiled without geotiff, but I'm not sure
> there may have been some errors that I just overlooked. Would you
> recommend
> starting from the beginning again, or just keep going as is?
>
> Regards,
> BB
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092439.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> 
> If you reply to this email, your message will be added to the discussion
> below:
> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092441.html
> To unsubscribe from MrSID raster and QGIS in linux, click here.
> NAML
>
>
>
> 
> View this message in context: Re: MrSID raster and QGIS in linux
>
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> .
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] MrSID raster and QGIS in linux

2013-12-03 Thread Eric Goddard
The packages I use for postgres on Ubuntu 13.04 are:
postgresql-server-dev-9.1 postgresql-client postgresql-9.1
postgresql-contrib-9.1. I don't know if Ubuntu 12.04 has postgres 9.1;
it may still be on 9. Try finding the equivalent packages with
synaptic, or simply don't compile postgis if you never use it.

On Tue, Dec 3, 2013 at 11:07 AM, BigBaka  wrote:
> Re configured, make, and make installed gdal. Moved onto the postgis
> Downloaded package but when in tried to configure i got an error
>
> checking for pg_config... no
> configure: error: could not find pg_config within the current path. You may
> need to try re-running configure with a --with-pgconfig parameter.
> make: *** [GNUmakefile] Error 1
>
> ideas?
>
> On 03/12/13 23:26, Eric Goddard [via OSGeo.org] wrote:
>
> I would recompile gdal. Switch to the gdal source directory and run
> 'make clean', and then re run the ./configure, make, and make install
> lines.
>
> On Tue, Dec 3, 2013 at 10:21 AM, BigBaka <[hidden email]> wrote:
>
>> After posting that I went into synaptic and installed geotiff 1.4.
>> Following
>> that it seems it worked.
>> Values for GEOTIFF_INCLUDE_DIR and GEOTIFF_LIBRARY
>> are usr/include/geotiff and usr/lib/libgeotiff.so respectively now.
>>
>> I did manage to get the gdal compiled without geotiff, but I'm not sure
>> there may have been some errors that I just overlooked. Would you
>> recommend
>> starting from the beginning again, or just keep going as is?
>>
>> Regards,
>> BB
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092439.html
>> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
>> ___
>> Qgis-user mailing list
>> [hidden email]
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> ___
> Qgis-user mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> 
> If you reply to this email, your message will be added to the discussion
> below:
> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092441.html
> To unsubscribe from MrSID raster and QGIS in linux, click here.
> NAML
>
>
>
> 
> View this message in context: Re: MrSID raster and QGIS in linux
>
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] MrSID raster and QGIS in linux

2013-12-03 Thread Eric Goddard
I would recompile gdal. Switch to the gdal source directory and run
'make clean', and then re run the ./configure, make, and make install
lines.

On Tue, Dec 3, 2013 at 10:21 AM, BigBaka  wrote:
> After posting that I went into synaptic and installed geotiff 1.4. Following
> that it seems it worked.
> Values for GEOTIFF_INCLUDE_DIR and GEOTIFF_LIBRARY
> are usr/include/geotiff and usr/lib/libgeotiff.so respectively now.
>
> I did manage to get the gdal compiled without geotiff, but I'm not sure
> there may have been some errors that I just overlooked. Would you recommend
> starting from the beginning again, or just keep going as is?
>
> Regards,
> BB
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092439.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] MrSID raster and QGIS in linux

2013-12-03 Thread Eric Goddard
Hmm, I don't think you could've made it past the compiling gdal steps
if the geotiff package wasn't installed. In the cmake window for
configuring libLAS, do you have Values for GEOTIFF_INCLUDE_DIR and
GEOTIFF_LIBRARY? I have /usr/include/geotiff and /usr/lib/geotiff.so,
respectively.

Keep in mind that if you only want to compile QGIS you don't have to
compile LASzip, libLAS, or GRASS 7.

Eric

On Tue, Dec 3, 2013 at 9:49 AM, BigBaka  wrote:
> Hi Eric,
>
> Thanks for this link to install MrSID/ECW support on ubuntu. I'm using 12.04
> 64 bit. Have been trying to follow your instructions but ran into trouble
> when trying to configure and compile ilbLAS at this point
>
> #Same as LASZip, click configure, select unix makefiles.
> #This time there will be more options. Check the boxes beside WITH_GDAL,
> WITH_GEOTIFF, #and WITH_LASZIP and click configure again. If no errors are
> reported you can click #“Generate” #and close cmake-gui.
>
> After checking the 3 boxes as directed when I click configure the second
> time I get the following readout with errors reported on GEOTIFF.
>
> "Setting libLAS build type - Release
> Searching for Boost 1.38+ - done
> Searching for LASzip 2.0.1+ library
> Found LASzip version: 2.2.0
> Searching for GDAL 1.7.0+ library
> Searching for GeoTIFF 1.2.5+ library
> Could NOT find GeoTIFF (missing:  GEOTIFF_LIBRARY GEOTIFF_INCLUDE_DIR)
> (Required is at least version "1.2.5")
> CMake Error at CMakeLists.txt:270 (message):
>   GDAL support requires GeoTIFF library which was not selected
>
> Configuring incomplete, errors occurred!"
>
> Do you have any advice as to what I could do to fix this?
>
> Regards,
> BigBaka
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/MrSID-raster-and-QGIS-in-linux-tp5090885p5092429.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] MrSID raster and QGIS in linux

2013-11-24 Thread Eric Goddard
It isn't strictly true that you're crap out of luck--you just have to
download the mrsid API and register it with ldconfig. Depending on
your system, sometimes there are gdal plugins that you can then
install. This is how it is setup on Debian based systems. If there
isn't a plugin available, then you have to compile gdal with MrSid
support. Because MrSid is proprietary, gdal can't be distributed with
support built in. I wrote a guide for some friends for compiling the
GIS stack with MrSid/ECW support, but it is for ubuntu-based systems.
I'm posting the link here, perhaps it will help in getting it set up
in Fedora. Most of the actual compilation instructions should work,
but the dependencies and paths will be different.

https://docs.google.com/document/d/1TjWU_9gnUkayVAky3GGanPaQT-t453HLcWrITZX5Zrc/edit?usp=sharing

Eric

On Sun, Nov 24, 2013 at 10:16 AM, Randal Hale
 wrote:
> There isn't - Mr Sid and ECW are proprietary image formats. If you are on a
> windows machine they get a separate library/file/gdal type plugin and if you
> are on a linux machine your just crap outta luck. I've actually been playing
> around with building sid support into gdal (which is another long story).
>
> The best you can do is to decompress the image using the Sid decoder
> (downloaded from Lizardtech). Just hope you don't have an overly compressed
> sid image that blows up to 160GB on decompression.
>
> The next best thing we could do is figure out some way to get this back into
> linux. If I had the coding chops I would do it...since I'm diving into
> fantasy currently I would also date Jennifer Lawrence.
>
> Randy
>
> -
> Randal Hale, GISP
> North River Geographic Systems, Inc
> http://www.northrivergeographic.com
> 423.653.3611 rjh...@northrivergeographic.com
> 
> twitter:rjhale
> http://about.me/rjhale
>
>
> On 11/24/2013 11:05 AM, john polo wrote:
>>
>> Hello,
>> I am using Fedora 19 on a 32 bit machine. I had installed QGIS 1.8 and the
>> GDAL packages, but was not able to use .sid rasters from the geospatial
>> gateway that the feds run. I was getting an error message saying that it was
>> not a supported raster source when I tried to load the file. Is there
>> perhaps an additional package that's not obvious to a newb that would help
>> with support for MrSID in Fedora?
>>
>> john
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Selection tool outline color

2013-10-18 Thread Eric Goddard
Hi Lene,

I'm not concerned with the colors of the features themselves, but with the
very light gray selection box when using the select by polygon tool. It is
difficult to see what is being selected when the features have light
colors, and its always difficult to see the line on a white background. See
attached image for clarification. I've searched the web and scoured the
settings with no luck. I don't think it can be modified at this point, but
that would be a nice feature.

[image: Inline image 1]

Thanks,
Eric



On Fri, Oct 18, 2013 at 9:13 PM, Lene Fischer  wrote:

>  Hi Eric
> Choose the layer and double-click
> Style>Symbol layers>Simple fill>Border style>Solid pen
> And then choose another colour.
>
>  Regards
> Lene
>
>   --
> *Fra:* Eric Goddard [egoddard1...@gmail.com]
> *Sendt:* 18. oktober 2013 22:27
> *Til:* Lene Fischer
> *Cc:* qgis-user
> *Emne:* Re: [Qgis-user] Selection tool outline color
>
>   Hi Lene,
>
>  Unfortunately that is the option that changes the color of the selected
> features. If, for example, one were using the select features by polygon
> tool, I want to change the outline color of the polygon that is drawn on
> the canvas.
>
>  Thanks,
> Eric
>
>
> On Fri, Oct 18, 2013 at 3:08 PM, Lene Fischer  wrote:
>
>>  Hi
>> Setting>Options>Canvas & Legend
>> Selection colour
>> Regards
>> Lene
>>  --
>> *Fra:* qgis-user-boun...@lists.osgeo.org [
>> qgis-user-boun...@lists.osgeo.org] på vegne af Eric Goddard [
>> egoddard1...@gmail.com]
>> *Sendt:* 18. oktober 2013 21:53
>> *Til:* qgis-user
>> *Emne:* [Qgis-user] Selection tool outline color
>>
>>   Hi all,
>> nd
>>  When using the selection tool in the map canvas, I can't see the light
>> gray color of the bounding box against my data. Is it possible to change
>> this color? I was only able to find an option to change the rubberband
>> color for measurements and the color of the selected features.
>>
>>  Thanks,
>> Eric
>>
>>
>
>
<>___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Selection tool outline color

2013-10-18 Thread Eric Goddard
Hi Lene,

Unfortunately that is the option that changes the color of the selected
features. If, for example, one were using the select features by polygon
tool, I want to change the outline color of the polygon that is drawn on
the canvas.

Thanks,
Eric


On Fri, Oct 18, 2013 at 3:08 PM, Lene Fischer  wrote:

>  Hi
> Setting>Options>Canvas & Legend
> Selection colour
> Regards
> Lene
>  --
> *Fra:* qgis-user-boun...@lists.osgeo.org [
> qgis-user-boun...@lists.osgeo.org] på vegne af Eric Goddard [
> egoddard1...@gmail.com]
> *Sendt:* 18. oktober 2013 21:53
> *Til:* qgis-user
> *Emne:* [Qgis-user] Selection tool outline color
>
>   Hi all,
> nd
> When using the selection tool in the map canvas, I can't see the light
> gray color of the bounding box against my data. Is it possible to change
> this color? I was only able to find an option to change the rubberband
> color for measurements and the color of the selected features.
>
>  Thanks,
> Eric
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Selection tool outline color

2013-10-18 Thread Eric Goddard
Hi all,

When using the selection tool in the map canvas, I can't see the light gray
color of the bounding box against my data. Is it possible to change this
color? I was only able to find an option to change the rubberband color for
measurements and the color of the selected features.

Thanks,
Eric
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] installation problem with OSGeo4W Advanced Installer under windows 7

2013-09-25 Thread Eric Goddard
Hi Anne, I ran into this issue as well. Right clicking the
osgeo4w-setup.exe file and setting it to run as administrator allowed it to
install on my end. If you don't have administrator rights to your machine
you should be able to complete the install by choosing the "Install only
for this user" option in the installer.

Hope that helps.
Eric


On Wed, Sep 25, 2013 at 9:36 AM, Anne Quesnel wrote:

> Dear all,
> objet: installation problem for "advanced GIS" under windows 7
>
> After several tests with the downloaded file called "osgeo4w-setup.exe", I
> met an access problem error : refused access to the mount
> I ve disconnected the antivarus software
>
> Do you have any idea to resolve this problem?
>
>
> Thank you for your attention
> BW
> AQ
>
>
> --
> Quesnel Anne - Dr en Géographie quantitative; Géomatique en Santé.
> http://quesnela.free.fr/
> Mobile: 06 58 06 68 08
> Télécharger ma thèse de doctorat
> http://tel.ccsd.cnrs.fr/documents/archives0/00/00/96/22/index_fr.html
> --
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Compiling with grass7 from svn

2013-04-25 Thread Eric Goddard
Hi Eugenio,

I do not think the GRASS tools plugin for QGIS has been updated to
work with GRASS 7.

Eric

On Wed, Apr 24, 2013 at 7:17 AM, Eugenio Trumpy  wrote:
> Dear all,
> I'm trying to compile qgis with grass,
> using a compiled grass version 7.0 from svn.
> I set the variables:
> GRASS_INCLUDE_DIR/usr/local/grass-7.0.svn/include
>  GRASS_PREFIX /usr/local/grass-7.0.svn
> while configure i got this error:
>
> CMake Error at src/providers/grass/CMakeLists.txt:419 (FILE):
>file Internal CMake error when trying to open file:
>/usr/local/grass-7.0.svn/include/grass/gisdefs.h for reading.
>
> I checked into grass-7.0-svn dir, and I dind't find gisdefs.h,
> seems to be removed from grass_trunk sources.
>
> Is it right?
>
> How can I compile anyway?
>
> Regards
>
> E.
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Executing qgis after building from git results in errors and warnings

2013-03-08 Thread Eric Goddard
For the python console, you need to install qscintilla. On 12.10 I
installed libqscintilla2-dev and python-qscintilla2. The dev package may
not be needed, but it works for me.

The python libraries are located in the $INSTALLPATH/share/qgis/python
directory. Add that directory to your python path to import pyspatialite
outside of QGIS. From within a python script you can :

import sys

sys.path.append(r"/home/tgrossen/Apps/QGIS/share/qgis/python")

from pyspatialite import dbapi2 as db


Hope that helps.

Eric


On Feb 11, 2013 9:22 AM, "Timo Grossenbacher"  wrote:

> I built the latest QGIS version on Ubuntu 12.04, following exactly these
> steps:
>
> http://www.qgis.org/api/INSTALL.html#toc3
>
> The only things I changed in ccmake .. were setting
> CMAKE_INSTALL_PREFIX=/home/tgrossen/Apps/QGIS and WITH_PYSPATIALITE=ON
>
> Before make install, I conducted tests with make test:
> 93% tests passed, 4 tests failed out of 57
>
> Total Test time (real) = 297.32 sec
>
> The following tests FAILED:
>   9 - qgis_rasterlayertest (Failed)
>  28 - qgis_composerhtmltest (Failed)
>  41 - PyQgsRasterLayer (Failed)
>  51 - PyQgsComposerMap (Failed)
> Errors while running CTest
> make: *** [test] Error 8
>
> As you can see, make test itself crashed.
>
> After make install, I also had to do this:
> http://hub.qgis.org/wiki/quantum-gis/Building_QGIS_from_Source, which
> fortunately worked.
>
> Anyway,there are several things that are weird when executing the qgis
> binary:
>
> tgrossen@tgrossen-VirtualBox:~/Apps/QGIS/bin$ ./qgis
> Warning: loading of qgis translation failed
> [/home/tgrossen/Apps/QGIS/share/qgis/i18n//qgis_en_US]
> Warning: loading of qt translation failed
> [/usr/share/qt4/translations/qt_en_US]
>
> And then, after the desktop has loaded, I want to open up a Python shell,
> but that's what I get:
> exceptions.ImportError: No module named Qsci
>
> 1. Question: What do I have to do in order to use the Python console?
>
> 2. Question: I explicitly compiled pyspatialite, now where do I find this
> library and how can I include into my regular Python path, so I can use it
> outside of QGIS too?
>
>
>
>
> -
> wnstnsmth.net
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Executing-qgis-after-building-from-git-results-in-errors-and-warnings-tp5033486.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Advice Please

2013-01-28 Thread Eric Goddard
This issue can be solved by acquiring an accurate reading with a sub-meter
GPS unit on your site grid's datum and using the affine transformation
tools to "move" the site grid data into a projected coordinate system based
on the difference between the GPS and site grid coordinates. The accuracy
of the transformation depends on the size of your study area. The results
were excellent when I used this process for grids a few hectares in size.


The affine transformation tools can be installed from the Plugins menu.

Eric


On Mon, Jan 28, 2013 at 8:26 PM, Gerardo Jimenez  wrote:

> Main thing is that QGis only allows you to use cartographic Coordinate
> Reference Systems. Most of the time archaeologist (I am one) we use totally
> arbitrary CRS. Once I posted a similar question and the answers were that
> if I could assign a coordinate in a mapping  CRS that should do it (like an
> UTM for instance).
> Regarding on drawing systems for archaeology, I use acad, but it does lack
> the attribute table and its capabilities. My advice will be some how assign
> a mapping crs to your data.
>
> Gerardo Jiménez Delgado
> Instituto de Investigaciones Antropológicas
> Universidad Nacional Autónoma de México
> Ciudad Universitaria s/n
> Coyoacan 04510 Mexico City
> Mexico 56 22 95 16
>
> > To: qgis-user@lists.osgeo.org
> > Date: Sun, 27 Jan 2013 22:25:59 +0100
> > From: bernd.vogelges...@gmx.de
> > Subject: Re: [Qgis-user] Advice Please
>
> >
> > Hi Bill,
> >
> > Can it be done? Yes, why not ?
> > How? Well, firstly you should ask archeologists how they use whatever
> > software to draw archeological features. The basic concepts will be the
> > same i guess.
> >
> > I have no idea of measurement in general and of archealogical
> measurement
> > in particular, but i will try a wild guess:
> > I think that you always have to start from a fix point with known
> > coordinates.(Point layer, which coordinate system?)
> > From this, you can generate a grid e.g. mesh width 1 m (Vector->
> Research
> > Tools -> Vector Grid)(Line or polygon layer)
> >
> > Then you create your new layer(s) for your feature(classes) and start
> > drawing.(Points, lines, polygons?)
> > Of course there are dozends of steps to reach that phase, but i can't
> > write a book here.
> >
> > As far as i know Access mdb still isn't supported yet (at least not
> > available for beginners with no computer wizadry background), but you
> can
> > export your tables to dbf format (direct import with drag and drop) or
> xls
> > (through xytools plugin)
> >
> > More detailed questions, maybe more detailed answers.
> > Maybe others with can drop in ...
> >
> > Cheers
> > Bernd
> >
> >
> >
> > Am 27.01.2013, 21:36 Uhr, schrieb Bill Franklin  >:
> >
> > > I'm now getting to grips with Qgis quite well, that is for a newby not
> > > used
> > > to mapping software and I have a couple of questions I'd like some
> > > advice on
> > > please. Firstly, I want to be able to draw archaeological features
> such
> > > as
> > > earthworks on to a map. Can this be done and how?
> > >
> > >
> > > Secondly can I use Microsoft access with qgis? I have some data in
> access
> > > which I would like to load up and map.
> > >
> > >
> > > Any advice much appreciated.
> > >
> > >
> > > Bill Franklin
> > >
> > >
> >
> >
> > --
> > Bernd Vogelgesang * Siedlerstrasse 2 * 91083 Baiersdorf *
> +49-9133-825374
> > ___
> > Qgis-user mailing list
> > Qgis-user@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Newbie with request for advice

2013-01-10 Thread Eric Goddard
Before you can compile the samples or compile GDAL with FGDB support you
have to link the FGDB library so the system can find it. Before running
make in the FileGDB_API/samples directory, create a text file in the
/etc/ld.so.conf.d/ to hold the path to wherever you FileGDB_API/lib folder
is located and run ldconfig to update it. On Ubuntu executing the following
lines in bash should fix it:

sudo sh -c "echo '/path/to/FileGDB_API/lib' >> /etc/ld.so.conf.d/fgdb.conf"
sudo ldconfig

after that, make should work.

Eric


On Fri, Jan 4, 2013 at 1:49 PM, Art  wrote:

>  Yes! Any information on implementing this feature on Linux would be much
> appreciated.
>
> Art
>
>
> On 1/4/2013 8:08 AM, Johan Nilsson wrote:
>
>  I'm also very interested in 'ESRI file geodatabase', not the 'Personal
> geodatabase', ( mdb or ms-access, or JET database) that ESRI not recommend
> to use...
>
>  I tried to compile for month ago, but I think I stuck on the same place
> Art get stuck..
>
>  /Cheers
>
>
> 2013/1/4 Randal Hale 
>
>>  Hi Art,
>>
>> So I've got QGIS running on windows and linux. I haven't tried to compile
>> file geodatabase support into my linux install (that's on my list to do).
>> On my windows install I'm running OSGeo4Win - adding file based geodatabase
>> support was easy - I just added the "module" and had support (I'm currently
>> on my linux machine and not near my windows machine - or I would tell you
>> exactly what I added).
>>
>> My windows machine is running Windows 7 64bit - my linux machine is
>> running xubuntu. I own a consulting business and have ArcGIS running on my
>> windows machine. There's not way I'm ever going to windows 8. So I'm
>> sticking with windows 7 for ESRI and migrating as much of my workflow over
>> to linux as I can...as I tell people - A clip is a clip and a buffer is a
>> buffer. So I'll do what I can on linux and when I have to go with ESRI I'll
>> jump over to windows.
>>
>> Now that I read all of this - I should really try to compile file based
>> support on this laptop over the weekend.
>>
>> Randy
>>
>>
>> Randal Hale, GISP
>> North River Geographic Systems, Inchttp://www.northrivergeographic.com 
>> 423.653.3611 rjh...@northrivergeographic.com
>> twitter:rjhale http://about.me/rjhale
>>
>>  On 01/01/2013 03:05 PM, Art wrote:
>>
>> I have two options right now. I am a Linux lover, and I am investigating
>> compiling the Esri File Geodatabase API on Linux. However, the other option
>> is to handle it all through Windows, probably using OsGeo4Win. That means I
>> would probably have to make a switch to Windows. I do have a copy of ESRI's
>> ArcGIS that will work until August that was given to me for a GIS Course,
>> so I will have that option for some time but it will not be permanent. Does
>> anyone have a recommended course of action? I have attached the results
>> from my last compile attempt involving the File Geodatabase API. I have not
>> found a detailed set of compiling instructions to make and install it, and
>> am uncertain as to how I should proceed further.
>>
>> Art
>>
>>
>>  ___
>> Qgis-user mailing 
>> listQgis-user@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>
>
> ___
> Qgis-user mailing 
> listQgis-user@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Possible to view/read laser (.laz/..las -files in QGIS?

2013-01-08 Thread Eric Goddard
liblas can be compiled with gdal support, then use las2ogr to convert the
las to a QGIS-supported vector format.
http://www.liblas.org/utilities/las2ogr.html

Eric


On Thu, Jan 3, 2013 at 7:42 AM, Johan Nilsson  wrote:

> Hey.
> Are there any way to read laser scanned data  (las and laz-files) in QGIS?
>
> /Cheers
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to compile gdal with ESRI FileGDB

2012-11-18 Thread Eric Goddard
I think you're right about ld. You need to run sudo ldconfig after creating
the symlink so that make can find the correctly named library.

Eric


On Sun, Nov 18, 2012 at 7:49 AM, Johan Nilsson  wrote:

> Hey. I have had a lot of things to do, but now I tried to make a sample
> again. I also made a ln -s *libfgdblinuxrtl.so **libfgdbunixrtl.so* (ESRI
> changed the name of the driver)  I tried again and still stuck on make in
> samples, as in above and a very simulare error. I have build-essential with
> a lot of depends...
>
> joni@Intel:~/Desktop/gdal-mod/FileGDB_API/samples$ make
> make -C Domains
> make[1]: Entering directory
> `/home/joni/Desktop/gdal-mod/FileGDB_API/samples/Domains'
> g++ -fPIC -O3 -m32 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX
> -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I.  -c
> Domains.cpp
> g++ -fPIC -O3 -m32 -W -fexceptions -D_CONSOLE -DUNICODE -D_UNICODE -DUNIX
> -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DUNIX_FILEGDB_API
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I. -m32
> -L"../../lib" -o ../bin/Domains ./Domains.o -lFileGDBAPI
> */usr/bin/ld: warning: libfgdbunixrtl.so, needed by
> ../../lib/libFileGDBAPI.so, not found (try using -rpath or -rpath-link)*
> ../../lib/libFileGDBAPI.so: undefined reference to
> `SysAllocStringByteLen(char*, unsigned int)'
> ../../lib/libFileGDBAPI.so: undefined reference to
> `VarDateFromStr(wchar_t*, unsigned long, unsigned long, double*)'
> ../../lib/libFileGDBAPI.so: undefined reference to `IID_IGeometry'
> .
> .*.A lot of undefined references...* <--my comments
>
> .
> ../../lib/libFileGDBAPI.so: undefined reference to
> `PathFileExistsW(wchar_t const*)'
> ../../lib/libFileGDBAPI.so: undefined reference to
> `PathFindExtensionW(wchar_t const*)'
> *
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/Domains] Error 1
> make[1]: Leaving directory
> `/home/joni/Desktop/gdal-mod/FileGDB_API/samples/Domains'
>
> make: *** [Domains] Error 2
> *
> joni@Intel:~/Desktop/gdal-mod/FileGDB_API/samples$
>
> I wonder if I need to change anything in linux dynamic linker (*ld*)?
>
>
>
> 2012/11/15 Eric Goddard 
>
>> Hmmm, I didn't get any errors like that when I installed so I'm not sure
>> what could be causing it. Do you have the build-essential package installed
>> that provides the necessary compile tools?
>>
>>
>> On Thu, Nov 15, 2012 at 3:14 AM, Johan Nilsson wrote:
>>
>>> Thanks very much Eric :)
>>> I have read the instuctions, and
>>> tar zxvf FileGDB_API_1_2-32.tar.gz went well but I'm stuck on point 4
>>> in the fist part of you instruction to make a sample to test the driver:
>>> ~/Desktop/gdal-mod/FileGDB_API/samples$ make
>>> It spot out a lot of thing complaining about 'undefiened reference
>>> to'... and it ends like:
>>> ../../lib/libFileGDBAPI.so: undefined reference to
>>> `PathFileExistsW(wchar_t const*)'
>>> ../../lib/libFileGDBAPI.so: undefined reference to
>>> `PathFindExtensionW(wchar_t const*)'
>>> collect2: ld returned 1 exit status
>>> make[1]: *** [../bin/Domains] Error 1
>>> make[1]: Leaving directory
>>> `/home/a/Desktop/gdal-mod/FileGDB_API/samples/Domains'
>>> make: *** [Domains] Error 2
>>> Joni@Intel:~/Desktop/gdal-mod/FileGDB_API/samples$
>>>
>>> I tried to ignore the errors above, but when I move to *bin* it was
>>> empty and nothing happend:
>>> ~/Desktop/gdal-mod/FileGDB_API/samples/bin$ ./Querying
>>> bash: ./Querying: No such file or directory
>>> I checked with ls -all and *bin* was empty.
>>>
>>> Cheers and thanks
>>> /Johan
>>>
>>>
>>>
>>>
>>> 2012/11/14 Eric Goddard 
>>>
>>>> Below are the steps I use to add File Geodatabase support to gdal. This
>>>> worked on Ubuntu 12.04 64-bit, but it doesn't use the deb source packages.
>>>> Since you have a 32-bit ubuntu install, you need to download the 32-bit
>>>> version of the FileGDB API. I tried to answer your questions as they come
>>>> up in the steps I list below, so you may want to read through the whole
>>>> thing before starting. Sorry for the length, but I hope it helps!
>>>>
>>>> In terminal:
>>>>
>>>> 1. Change directory to wherever you downloaded the FileGDBAPI: *cd
>>>> path/to/FileGDBAPI_download*
>>>>
>>&g

Re: [Qgis-user] How to compile gdal with ESRI FileGDB

2012-11-15 Thread Eric Goddard
Hmmm, I didn't get any errors like that when I installed so I'm not sure
what could be causing it. Do you have the build-essential package installed
that provides the necessary compile tools?


On Thu, Nov 15, 2012 at 3:14 AM, Johan Nilsson  wrote:

> Thanks very much Eric :)
> I have read the instuctions, and
> tar zxvf FileGDB_API_1_2-32.tar.gz went well but I'm stuck on point 4 in
> the fist part of you instruction to make a sample to test the driver:
> ~/Desktop/gdal-mod/FileGDB_API/samples$ make
> It spot out a lot of thing complaining about 'undefiened reference to'...
> and it ends like:
> ../../lib/libFileGDBAPI.so: undefined reference to
> `PathFileExistsW(wchar_t const*)'
> ../../lib/libFileGDBAPI.so: undefined reference to
> `PathFindExtensionW(wchar_t const*)'
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/Domains] Error 1
> make[1]: Leaving directory
> `/home/a/Desktop/gdal-mod/FileGDB_API/samples/Domains'
> make: *** [Domains] Error 2
> Joni@Intel:~/Desktop/gdal-mod/FileGDB_API/samples$
>
> I tried to ignore the errors above, but when I move to *bin* it was empty
> and nothing happend:
> ~/Desktop/gdal-mod/FileGDB_API/samples/bin$ ./Querying
> bash: ./Querying: No such file or directory
> I checked with ls -all and *bin* was empty.
>
> Cheers and thanks
> /Johan
>
>
>
>
> 2012/11/14 Eric Goddard 
>
>> Below are the steps I use to add File Geodatabase support to gdal. This
>> worked on Ubuntu 12.04 64-bit, but it doesn't use the deb source packages.
>> Since you have a 32-bit ubuntu install, you need to download the 32-bit
>> version of the FileGDB API. I tried to answer your questions as they come
>> up in the steps I list below, so you may want to read through the whole
>> thing before starting. Sorry for the length, but I hope it helps!
>>
>> In terminal:
>>
>> 1. Change directory to wherever you downloaded the FileGDBAPI: *cd
>> path/to/FileGDBAPI_download*
>>
>> 2. extract the archive:* tar zxvf FileGDB_API_1_2-32.tar.gz* NOTE: Since
>> you are using 32-bit Ubuntu, you need to download the 32-bit FileGDB API.
>>
>> 3.You need to build the samples to make sure the API works. Change to the
>> FileGDB_API samples folder: *cd FileGDB_API/samples*
>>
>> 4. type *make*
>>
>> 5. Run a sample to make sure it works. Change directory to the bin folder
>> inside samples: *cd bin *, and then type *./Querying*. You'll get a
>> bunch of text in terminal, just make sure it doesn't spit out any errors.
>>
>> 6. If the sample runs successfully, you have a working FileGDB API and
>> you are ready to compile GDAL. I like to move the FileGDB API to a better
>> location than the downloads directory, but it is up to you. If you choose
>> to move it, you can use the paths listed below. If you use your own
>> location, change the path in the commands below to whatever you used. *sudo
>> mv /FileGDB_API /usr/local/*
>>
>> 7. Create a LD configuration file so that gdal is able to find the FGDB
>> libraries: *sudo echo /usr/local/FileGDB_API/lib >
>> etc/ld.so.conf.d/fgdb.conf *
>>
>> An explanation of ld is below.
>>
>> 8. run ldconfig to update the linked libraries: *sudo ldconfig*
>>
>> You're now ready to download and configure gdal.
>>
>>
>> 1. Download gdal from http://download.osgeo.org/gdal/gdal-1.9.2.tar.gz
>> 2. Extract the contents of the gdal archive: *tar zxvf gdal-1.9.2.tar.gz*
>>
>> 3. Change to the gdal directory: *cd gdal-1.9.2*
>>
>> 4. Now gdal needs to be configured. Your configure line may be different
>> from the one below depending on the options you want included, but the
>> important line to include is --with-fgdb=/usr/local/FileGDB_API. This is my
>> configure line on my system: * ./configure --with-geos=yes
>> --with-sqlite3 --with-python --with-spatialite
>> --with-fgdb=/usr/local/FileGDB_API --with-postgres --with-odbc
>> --with-libkml=yes --with-curl=yes
>> --with-mrsid=/usr/local/MrSID_SDK/Raster_DSDK
>> --with-mrsid_lidar=/usr/local/MrSID_SDK/Lidar_DSDK
>> --with-openjpeg=/usr/include*
>>
>> The --with statements let the configuration script know what additional
>> modules you want to be included in the compile. When you install packages,
>> such as geos, from the repos the libraries are put in paths that ld (which
>> is a utility that links libraries so that other applications are able to
>> find them) knows about. When you compile by hand the general practice is to
>> compile to /usr/local, which sometimes ld doesn't know about 

Re: [Qgis-user] How to compile gdal with ESRI FileGDB

2012-11-14 Thread Eric Goddard
Below are the steps I use to add File Geodatabase support to gdal. This
worked on Ubuntu 12.04 64-bit, but it doesn't use the deb source packages.
Since you have a 32-bit ubuntu install, you need to download the 32-bit
version of the FileGDB API. I tried to answer your questions as they come
up in the steps I list below, so you may want to read through the whole
thing before starting. Sorry for the length, but I hope it helps!

In terminal:

1. Change directory to wherever you downloaded the FileGDBAPI: *cd
path/to/FileGDBAPI_download*

2. extract the archive:* tar zxvf FileGDB_API_1_2-32.tar.gz* NOTE: Since
you are using 32-bit Ubuntu, you need to download the 32-bit FileGDB API.

3.You need to build the samples to make sure the API works. Change to the
FileGDB_API samples folder: *cd FileGDB_API/samples*

4. type *make*

5. Run a sample to make sure it works. Change directory to the bin folder
inside samples: *cd bin *, and then type *./Querying*. You'll get a bunch
of text in terminal, just make sure it doesn't spit out any errors.

6. If the sample runs successfully, you have a working FileGDB API and you
are ready to compile GDAL. I like to move the FileGDB API to a better
location than the downloads directory, but it is up to you. If you choose
to move it, you can use the paths listed below. If you use your own
location, change the path in the commands below to whatever you used. *sudo
mv /FileGDB_API /usr/local/*

7. Create a LD configuration file so that gdal is able to find the FGDB
libraries: *sudo echo /usr/local/FileGDB_API/lib >
etc/ld.so.conf.d/fgdb.conf *

An explanation of ld is below.

8. run ldconfig to update the linked libraries: *sudo ldconfig*

You're now ready to download and configure gdal.


1. Download gdal from http://download.osgeo.org/gdal/gdal-1.9.2.tar.gz
2. Extract the contents of the gdal archive: *tar zxvf gdal-1.9.2.tar.gz*

3. Change to the gdal directory: *cd gdal-1.9.2*

4. Now gdal needs to be configured. Your configure line may be different
from the one below depending on the options you want included, but the
important line to include is --with-fgdb=/usr/local/FileGDB_API. This is my
configure line on my system: * ./configure --with-geos=yes --with-sqlite3
--with-python --with-spatialite --with-fgdb=/usr/local/FileGDB_API
--with-postgres --with-odbc --with-libkml=yes --with-curl=yes
--with-mrsid=/usr/local/MrSID_SDK/Raster_DSDK
--with-mrsid_lidar=/usr/local/MrSID_SDK/Lidar_DSDK
--with-openjpeg=/usr/include*

The --with statements let the configuration script know what additional
modules you want to be included in the compile. When you install packages,
such as geos, from the repos the libraries are put in paths that ld (which
is a utility that links libraries so that other applications are able to
find them) knows about. When you compile by hand the general practice is to
compile to /usr/local, which sometimes ld doesn't know about by default.
You let ld know about additional paths by creating a configuration file in
/etc/ld.so.conf.d/ that contains the path of your custom compiled
libraries.

To compile GDAL with the options you want, your line might look something
like this:

*./configure --with-geos=yes --with-sqlite3 --with-python --with-spatialite
--with-fgdb=/usr/local/FileGDB_API --with-postgres --with-odbc *

After configure runs, it will give you a summary that indicates what it was
able to find. Check to make sure that there is a 'yes' beside the options
you want. If there is a no beside something you want to include, you may
need to scroll through the output and find the error to see what went wrong.


5. Now you can run make and make install. *sudo make*. When that finishes,
run *sudo make install*.

6. One more step: you need to let ld know about the gdal libraries. Since
we didn't specify a different path, the configure line above puts them in
/usr/local/lib by default. I let ld know about the libraries by adding a
local.conf file to /etc/ld.so.conf.d/. *sudo echo /usr/local/lib >
/etc/ld.so.conf.d/local.conf*

7. Run ldconfig again: *sudo ldconfig*

*
*

You should be able to open geodatabases in QGIS or any other GIS
application that uses GDAL now. I expanded on notes that I took while doing
the install, but I didn't have my linux laptop with me while writing this.
Let me know if anything doesn't work or if clarification is needed.
On Nov 13, 2012 9:27 AM, "Johan Nilsson"  wrote:

>  I have tried to find how I compile gdal 1.9.2 with ESRIs FileGDB_API, but
> I'm are very uncertain how it work. I have Ubuntu 10.04LTS 32-bit with
> PAE. I another step I downloaded source-code for gdal-1.9.2 and added
> needed packed with:
>
> *cd ~/Desktop/gdal-mod* <--move cursor to the created folder.
> *apt-get source gdal-bin *<--download source-cod from my respositories
> (same as my binary installed on my system, into the folder I stand in
> ~/Desktop/gdal-mod)
> *sudo apt-get build-dep gdal* <--geting dependencies so my system can
> build the package gdal.
>
>
>

Re: [Qgis-user] create a tiff multy layer

2012-07-20 Thread Eric Goddard
You can accomplish this with gdal. On QGIS 1.8.0, go to the Raster
menu -> Miscellaneous ->Merge. Select all of your input files and
check the layer stack option. The output will be a new tif image with
each of your previously independent images as a band which you can
then assign to the RGB guns by pulling up the layer properties and
clicking the symbology tab.

Eric

On Thu, Jul 19, 2012 at 2:03 PM, Clara Rey Caramés  wrote:
> Hello everybody,
>
> I am working with multispectral images, but  each band is an independent
> file and I need to create a multifile image.
> Does anybody know how to do it with qgis?
>
> Thank you!
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user