Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71820

Code a web service with python/postgis

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <lcelati@latitude-geosystems.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'python.': 0.02; 'imported': 0.09; 'python': 0.11; 'archive': 0.14; 'context:': 0.16; 'coordinates': 0.16; 'layers.': 0.16; 'script,': 0.16; 'side.': 0.16; 'throw': 0.16; 'type)': 0.16; 'subject:python': 0.16; 'all,': 0.19; 'select': 0.22; 'coding': 0.22; 'subject:Code': 0.24; 'script': 0.25; 'query': 0.26; 'subject:/': 0.26; 'appear': 0.29; 'code': 0.31; 'clicked': 0.31; 'layer': 0.31; 'operators': 0.31; 'interface': 0.32; 'url:python': 0.33; 'could': 0.34; 'subject:with': 0.35; 'subject:service': 0.36; 'charset:us-ascii': 0.36; 'possible': 0.36; 'application': 0.37; 'list': 0.37; 'thank': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'mailing': 0.39; '2nd': 0.60; 'digital': 0.61; 'information': 0.63; 'connecting': 0.64; 'map': 0.64; 'dear': 0.65; 'land': 0.65; 'informations': 0.74; 'objectives': 0.83; '(depends': 0.84
Date Tue, 20 May 2014 11:06:35 -0700 (PDT)
From image <lcelati@latitude-geosystems.com>
To python-list@python.org
Subject Code a web service with python/postgis
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10165.1400609233.18130.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400609233 news.xs4all.nl 2865 [2001:888:2000:d::a6]:38346
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71820

Show key headers only | View raw


Dear all,

I would like code a web service with python. I have already imported several
vector data 
(land cover) and one Digital Elevation Model (raster layer) into my
postgresql/postgis 
database (server side).

I succeed in connecting to my pg db via psycopg2.

Client side, operators use a client application (Developed with PHP /
javascript / 
openlayers).

Objectives :  Client side, once the layer would be selected,and once the
operators have 
clicked on the map  , they would like that usefull informations appear on
the interface 
of the client application(kind of land cover, z of the DEM).


=> Regarding my python script, i have to type a SQL query in order to select
usefull 
informations of the db layers. And, of course, the information must  depend
on geographic 
coordinates (Latitude Y/Longitute X).
In a 2nd time, my script must  produce a result(JSon type) for the client
side.


It would be possible to help me regarding the coding in order to select
usefull 
informations of the db layers. (depends on geographic coordinates x/y  ?
Could you throw 
light for me regarding the way to do this SQL query ?

In advance, thank you to throw light for me.



--
View this message in context: http://python.6.x6.nabble.com/Code-a-web-service-with-python-postgis-tp5057714.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Code a web service with python/postgis image <lcelati@latitude-geosystems.com> - 2014-05-20 11:06 -0700

csiph-web