Forum OpenACS Development: Maps in OpenACS

Collapse
Posted by Neophytos Demetriou on
I did this in another life, more than 15 years ago. I have polished it a bit today and you can now find the maps package in the https://github.com/jerily/openacs-packages repository. It uses MapServer and tcl.gd to render the shape files.

I have added a Dockerfile so that you can try this out. Here is how:

git clone https://github.com/jerily/openacs-packages.git
cd openacs-packages
docker build . -t neo-openacs-packages:latest --no-cache
docker run --network host neo-openacs-packages:latest

Once you run the last command, you can point your browser to http://localhost:8000/ and login with the following credentials:

email: test at example dot com
password: test

PS1. The maps in the demo are from my home country, Cyprus. You can see two screenshots here.

PS2. You can also use OpenStreetMap maps with this. It's been so long that I did this I don't remember how to convert them to the proper format anymore but it is certainly doable.

PS3. My apologies to those that tried to use the Dockerfile for Multi Factor Authentication or Semantic Search while I was experimenting to get the maps in as well. I don't plan to mess with it in the coming days. So, feel free to give it a try.

Collapse
2: Re: Maps in OpenACS (response to 1)
Posted by Neophytos Demetriou on
"I have come to the end. I thank you for your patience. I am also grateful that «the bounty of Sweden» has permitted me in the end to feel as if I were «nobody» – understanding this word in the sense that Ulysses gave it when he replied to the Cyclops, Polyphemus: «ούτις» – nobody, in that mysterious current which is Greece." -- from George Seferis Nobel Lecture
Collapse
3: Re: Maps in OpenACS (response to 1)
Posted by Neophytos Demetriou on
I just could not settle. The maps did not look nice. I have managed to use the openstreetmap data with PostGIS and a new MapServer map file that looks much better. Here is a screenshot. I will try to update the Dockerfile later in the evening.
Collapse
4: Re: Maps in OpenACS (response to 1)
Posted by Neophytos Demetriou on
The docker demo now includes data for Cyprus from OpenStreetMap and works with PostGIS. Maps look good now. See screenshots here. I'll try to update the instructions later in the week. That's all for now.

PS. Remember to stop postgresql on the host machine when you try this.

Collapse
5: Re: Maps in OpenACS (response to 1)
Posted by Neophytos Demetriou on
Dockerfile updated. Many thanks to Adrian Ferenc and Dr. Yuen for getting it to work on MacOS and Windows.

docker run --network host neo-openacs-packages:latest

If you are on MacOS or Windows, please use the following command instead:

docker run -d -p 8000:8000 neo-openacs-packages:latest

Not sure if the detach (-d) flag is needed. Other than that, it should work.