Opened 5 years ago
Closed 5 years ago
#230 closed enhancement (fixed)
Provide working link for a Python OGR service (base-vect-ops-py)
Reported by: | Jeff McKenna | Owned by: | Jeff McKenna |
---|---|---|---|
Priority: | major | Milestone: | 4.0.1 release |
Component: | MS4W - Packages | Version: | 4.0.0 |
Keywords: | Cc: | venka, Gerald, niroshan, bomp | |
Blocked By: | Blocking: |
Description
from Venka:
Any help in getting the ZOO Python Service available at http://www.zoo-project.org/trac/browser/trunk/zoo-project/zoo-services/ogr/base-vect-ops-py/cgi-env running on ms4w-4.0.1 will be highly appreciated.
Change History (2)
comment:1 by , 5 years ago
Summary: | Provide working link demo link for a Python OGR service (base-vect-ops-py) → Provide working link for a Python OGR service (base-vect-ops-py) |
---|
comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This was very difficult as the services in http://www.zoo-project.org/trac/browser/trunk/zoo-project/zoo-services/ogr/base-vect-ops-py/cgi-env are written for Python2.
I have taken the time to update the ZOO source, with changes for Python3 syntax (see the discussion in the ZOO-Project tracker at http://zoo-project.org/trac/ticket/173 and the changes I made specifically to the file "ogr_sp.py" at http://zoo-project.org/trac/attachment/ticket/173/ogr_sp.patch
You will notice in my changes that for Python3 we use the libxml2 library named "lxml" and many other print and dict() syntax changes.
I also updated the MS4W localhost page, after you install the new ZOO 1.8dev package into your MS4W 4.0.1 (from https://ms4w.com/release/apps/zoo-project-1.8dev-ms4w.zip) to include a working "BufferPy" service (from base-vect-ops-py).
So after you install MS4W 4.0.1 (if using the setup.exe installer it will allow you to now check the checkbox for "ZOO-Project 1.8dev", or, if you already have MS4W 4.0.1, then goto the MS4W download page to grab the new ZOO package), then, restart Apache and Goto your localhost page (http://127.0.0.1/) and click the "Execute BufferPy" link (you should scroll down the resulting page and see a bunch of coordinates (which are actually the country Antarctica WFS service with a buffer, returned in your browser!
Phew.
Of course you yourself can try to also setup other base-vect-ops-p services (the .zcfg files for those are now included in \ms4w\Apache\cgi-bin) but please beware that you might hit walls for Python3, and if you do please let the ZOO community know directly (meaning: add your feedback to http://zoo-project.org/trac/ticket/173).
Marking this ticket as fixed.