Re: [Qgis-user] Assistance with high-level use case of QGIS for commercial use

2016-03-02 Thread Dave Tobias
Many thanks to James, Brent, Alexander and Andreas for the suggestions.  It
looks like PostGIS offers the best option for the limited complexity of the
solution.  PostGIS is not something I had worked with before or considered.
After doing a bit of research and referencing the code/process Brent
offered, I think we have our path forward.
Thanks again!
Dave

On Sun, Feb 28, 2016 at 6:38 AM, Andreas Neumann 
wrote:

> Hi Dave,
>
> If it is just the point-in-polygon overlay - then I believe QGIS server
> may be overkill for what you want. As others mentioned I would do a simple
> python Script and use GEOS or Postgis to do the overlay. You could create a
> microservice for that with the above mentioned tools.
>
> Most likely, QGIS server also would be slightly slower than GEOS or
> Postgis, for the overlay operation. However, if you insist on QGIS server,
> you could try with a WPS service or a QGIS server plugin. I believe there
> is an ongoing project to support QGIS processing models as a WPS service.
>
> So if you plan to add more such services in the future, you may want to
> explore this project (
> http://www.3liz.com/blog/rldhont/index.php?post/2015/09/07/wps4server%3A-QGIS-Processing-to-Web-Processing-Service
> )
>
> Andreas
>
>
> On 26.02.2016 23:26, Dave Tobias wrote:
>
> I'm new to QGIS and have been a very long time user of a commercial GIS
> solution.  Their fee to deploy a mapservice has opened my eyes to other
> options.  I use the term mapservice loosely because what I want to deploy
> won't even have a map GUI.  It is quite simple actually:
> I would like to deploy QGIS such that multiple non--GIS users can use
> their individual secure logins to upload a .txt file (in a prescribed
> format) which will contain a feature ID, latitude and longitude coordinate
> for each row.  Then in batch mode, the program would then overlay the
> points with a polygon layer I maintain on that server. The output would be
> a .txt file containing the input attributes plus 1 attribute added to each
> row from the polygon layer. No map display needed, no other user
> interaction.  This is a simple geospatial operation for which they will pay
> a nominal fee.
> I was able to do this same operation manually with QGIS desktop and I see
> there is an API to perform the operation as a script.  So...are there any
> barriers to me doing this with QGIS/QGIS Server? Is there support for this
> use-case already? I searched but didn't come up with any concrete examples
> in the forums already - a few were interactive apps, but I need mine to run
> in batch mode.
> Thanks in advance - hopefully I'm sending to the correct forum!
>
>
>
> ___
> Qgis-user mailing listqgis-u...@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] Assistance with high-level use case of QGIS for commercial use

2016-02-28 Thread Andreas Neumann

Hi Dave,

If it is just the point-in-polygon overlay - then I believe QGIS server 
may be overkill for what you want. As others mentioned I would do a 
simple python Script and use GEOS or Postgis to do the overlay. You 
could create a microservice for that with the above mentioned tools.


Most likely, QGIS server also would be slightly slower than GEOS or 
Postgis, for the overlay operation. However, if you insist on QGIS 
server, you could try with a WPS service or a QGIS server plugin. I 
believe there is an ongoing project to support QGIS processing models as 
a WPS service.


So if you plan to add more such services in the future, you may want to 
explore this project 
(http://www.3liz.com/blog/rldhont/index.php?post/2015/09/07/wps4server%3A-QGIS-Processing-to-Web-Processing-Service)


Andreas

On 26.02.2016 23:26, Dave Tobias wrote:
I'm new to QGIS and have been a very long time user of a commercial 
GIS solution.  Their fee to deploy a mapservice has opened my eyes to 
other options.  I use the term mapservice loosely because what I want 
to deploy won't even have a map GUI.  It is quite simple actually:
I would like to deploy QGIS such that multiple non--GIS users can use 
their individual secure logins to upload a .txt file (in a prescribed 
format) which will contain a feature ID, latitude and longitude 
coordinate for each row.  Then in batch mode, the program would then 
overlay the points with a polygon layer I maintain on that server. The 
output would be a .txt file containing the input attributes plus 1 
attribute added to each row from the polygon layer. No map display 
needed, no other user interaction.  This is a simple geospatial 
operation for which they will pay a nominal fee.
I was able to do this same operation manually with QGIS desktop and I 
see there is an API to perform the operation as a script.  So...are 
there any barriers to me doing this with QGIS/QGIS Server? Is there 
support for this use-case already? I searched but didn't come up with 
any concrete examples in the forums already - a few were interactive 
apps, but I need mine to run in batch mode.

Thanks in advance - hopefully I'm sending to the correct forum!



___
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] Assistance with high-level use case of QGIS for commercial use

2016-02-26 Thread Alexander Bruy
Hi Dave,

if I'm not wrong, you can create QGIS Server plugin which will perform
this operation

2016-02-27 0:26 GMT+02:00 Dave Tobias :
> I'm new to QGIS and have been a very long time user of a commercial GIS
> solution.  Their fee to deploy a mapservice has opened my eyes to other
> options.  I use the term mapservice loosely because what I want to deploy
> won't even have a map GUI.  It is quite simple actually:
> I would like to deploy QGIS such that multiple non--GIS users can use their
> individual secure logins to upload a .txt file (in a prescribed format)
> which will contain a feature ID, latitude and longitude coordinate for each
> row.  Then in batch mode, the program would then overlay the points with a
> polygon layer I maintain on that server. The output would be a .txt file
> containing the input attributes plus 1 attribute added to each row from the
> polygon layer. No map display needed, no other user interaction.  This is a
> simple geospatial operation for which they will pay a nominal fee.
> I was able to do this same operation manually with QGIS desktop and I see
> there is an API to perform the operation as a script.  So...are there any
> barriers to me doing this with QGIS/QGIS Server? Is there support for this
> use-case already? I searched but didn't come up with any concrete examples
> in the forums already - a few were interactive apps, but I need mine to run
> in batch mode.
> Thanks in advance - hopefully I'm sending to the correct forum!
>
>
> ___
> 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



-- 
Alexander Bruy
___
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] Assistance with high-level use case of QGIS for commercial use

2016-02-26 Thread Brent Wood
Hi Dave,
If you don't require any desktop mapping, just a web accessible spatial overlay 
operation, I'd have thought using Postgis to store your polygon layer(s) & to 
carry out the overlay operation, then return the txt file would be simpler & 
easier, via any sort of scripted web interface.

the sqls for the overlay to return the text file could just about be as simple 
as:
copy feature from txtfile;
select f.id, f.lat, f.lon, p.id 
   from polygon p, feature f 
   where ST_Contains(p.poly, ST_SetSRID(ST_Makepoint(f.lon, f.lat),4326));
drop feature;

The first loads the text file into a database table - at potentially 10,000's 
per second...

The second creates a point geometry from the point coordinates, sets the 
coordinate reference system for this to lat/long, and returns the point values 
as well as those of any polygon on your polygon dataset which the point lies 
within.

The point table is then deleted.

You just need to wrap this up in your preferred scripting language to make it 
web accessible.
HTH,

Brent Wood

  From: Dave Tobias <terra2...@gmail.com>
 To: qgis-user@lists.osgeo.org 
 Sent: Saturday, February 27, 2016 11:26 AM
 Subject: [Qgis-user] Assistance with high-level use case of QGIS for 
commercial use
   
I'm new to QGIS and have been a very long time user of a commercial GIS 
solution.  Their fee to deploy a mapservice has opened my eyes to other 
options.  I use the term mapservice loosely because what I want to deploy won't 
even have a map GUI.  It is quite simple actually:I would like to deploy QGIS 
such that multiple non--GIS users can use their individual secure logins to 
upload a .txt file (in a prescribed format) which will contain a feature ID, 
latitude and longitude coordinate for each row.  Then in batch mode, the 
program would then overlay the points with a polygon layer I maintain on that 
server. The output would be a .txt file containing the input attributes plus 1 
attribute added to each row from the polygon layer. No map display needed, no 
other user interaction.  This is a simple geospatial operation for which they 
will pay a nominal fee.I was able to do this same operation manually with QGIS 
desktop and I see there is an API to perform the operation as a script.  
So...are there any barriers to me doing this with QGIS/QGIS Server? Is there 
support for this use-case already? I searched but didn't come up with any 
concrete examples in the forums already - a few were interactive apps, but I 
need mine to run in batch mode.Thanks in advance - hopefully I'm sending to the 
correct forum!

___
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] Assistance with high-level use case of QGIS for commercial use

2016-02-26 Thread James Keener
Have you thought about using PostGIS and Python/Ruby/PHP/Perl/?  I'm
not 100% sure how you would respond to a file upload with the QGIS
python API.

Jim

On 02/26/2016 05:26 PM, Dave Tobias wrote:
> I'm new to QGIS and have been a very long time user of a commercial GIS
> solution.  Their fee to deploy a mapservice has opened my eyes to other
> options.  I use the term mapservice loosely because what I want to
> deploy won't even have a map GUI.  It is quite simple actually:
> I would like to deploy QGIS such that multiple non--GIS users can use
> their individual secure logins to upload a .txt file (in a prescribed
> format) which will contain a feature ID, latitude and longitude
> coordinate for each row.  Then in batch mode, the program would then
> overlay the points with a polygon layer I maintain on that server. The
> output would be a .txt file containing the input attributes plus 1
> attribute added to each row from the polygon layer. No map display
> needed, no other user interaction.  This is a simple geospatial
> operation for which they will pay a nominal fee.
> I was able to do this same operation manually with QGIS desktop and I
> see there is an API to perform the operation as a script.  So...are
> there any barriers to me doing this with QGIS/QGIS Server? Is there
> support for this use-case already? I searched but didn't come up with
> any concrete examples in the forums already - a few were interactive
> apps, but I need mine to run in batch mode.
> Thanks in advance - hopefully I'm sending to the correct forum!
> 
> 
> 
> ___
> 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] Assistance with high-level use case of QGIS for commercial use

2016-02-26 Thread Dave Tobias
I'm new to QGIS and have been a very long time user of a commercial GIS
solution.  Their fee to deploy a mapservice has opened my eyes to other
options.  I use the term mapservice loosely because what I want to deploy
won't even have a map GUI.  It is quite simple actually:
I would like to deploy QGIS such that multiple non--GIS users can use their
individual secure logins to upload a .txt file (in a prescribed format)
which will contain a feature ID, latitude and longitude coordinate for each
row.  Then in batch mode, the program would then overlay the points with a
polygon layer I maintain on that server. The output would be a .txt file
containing the input attributes plus 1 attribute added to each row from the
polygon layer. No map display needed, no other user interaction.  This is a
simple geospatial operation for which they will pay a nominal fee.
I was able to do this same operation manually with QGIS desktop and I see
there is an API to perform the operation as a script.  So...are there any
barriers to me doing this with QGIS/QGIS Server? Is there support for this
use-case already? I searched but didn't come up with any concrete examples
in the forums already - a few were interactive apps, but I need mine to run
in batch mode.
Thanks in advance - hopefully I'm sending to the correct forum!
___
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