link to description of how to compile LunaServ (e.g. in Ubuntu)?

62 views
Skip to first unread message

Chad Ledgett

unread,
Aug 21, 2019, 10:45:28 AM8/21/19
to Lunaserv
I love the live demo of LunaServ.

So I was thinking, as a learning project about the WMS field, I would try to figure out how to compile & configure LunaServ in this Ubuntu VM but I am new to the indicated packages dependencies & do not yet know how to compile with them:

RE: "With the dependencies installed, compile and install map_utils which is included in the Lunaserv source package. The Lunaserv Rack app can be run in any of the various ways that Rack apps can be run. We recommend using Passenger. Passenger can be used along with Apache, Nginx, or used as a standalone service."

I have created a Ubuntu (Studio 19) enhanced VM in windows 10 hyper-v and pulled what I could find of the listed dependencies via Synaptic package manager.   However I was able to find very little for LunaServ setup on the web, thus I speculate this all must be obvious to people who work or studied wms type things (which I have not so far) (or I was terrible this time at searching which is usually not the case).

I am wondering if there might be links or a quick cut & past of more detailed steps for compile/setup of LunaServ and ideally a video of what configuring LunaServ looks like in a linux (or other environment) which would at least enable me to get a conceptual understanding of what the process looks like that someone may have already created for a class or something or at least what i should read up on regarding Passenger

I generally easily learn IT things if pointed in a good general direction by people familiar with the topic.  & I also appreciate being informed when a topic requires much more advanced study of the field which i recognize could very well be the case for LunaServ.

Thanks! & Kind regards, Chadwick

Nick Estes

unread,
Aug 21, 2019, 10:49:33 AM8/21/19
to Lunaserv
Chad,

The instructions definitely have some assumptions as to how much someone
would already know. It sounds like you've installed the dependencies
and just need to compile map_utils now. To do that, go into the
map_utils subdirectory where you have Lunaserv unpacked and run "make".
If all is well, that will compile a bunch of code and the binaries will
be sitting there ready to go. We have seen on some newer systems that
the way the compiler needs to run has changed slightly, so if it gives
you any errors, just post the error here, and we'll walk you through the
fix for it. The next release we put out will include the fix; it just
hasn't gone up yet.

--Nick
> --
> You received this message because you are subscribed to the Google
> Groups "Lunaserv" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to lunaserv+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lunaserv/ca49c42d-1d8c-455b-9037-84203d1010e3%40googlegroups.com
> [1].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/lunaserv/ca49c42d-1d8c-455b-9037-84203d1010e3%40googlegroups.com?utm_medium=email&utm_source=footer

Chad Ledgett

unread,
Aug 22, 2019, 8:24:33 AM8/22/19
to Lunaserv
Hi Nick,

Thank you.  The make completed without errors (once I installed a few of the -dev packages I had left out).  Below is a screen snip of the resulting files (at top dated 'today')...does that look like what is expected?  If not, please let me know.  

& If this looks as expected, then, briefly looking at the following link (assuming that is what is relevant to ruby/rack apps, & if not please send me a better link :-), I think I now have some reading to do about using (standalone I assume is a good place to start?)  Passenger to run a ruby/rack application ( https://www.phusionpassenger.com/library/deploy/standalone/deploy/ruby/ )...

relevant useful links you recommend & any tips on key things I should read up on that are important for LunaServ are very much welcome (since I definitely have no experience yet with Passenger/Rack/Ruby).  Thanks for your pointers in the right directions :-)

LunaServMake.PNG


Kind regards, Chadwick
> an email to luna...@googlegroups.com.

Nick Estes

unread,
Aug 22, 2019, 1:18:58 PM8/22/19
to Lunaserv
That looks great. To make sure Lunaserv can find those binaries, you'll
have to either make sure the map_utils directory is in the path for the
webserver environment the site is running in, or what might be easier is
to run "make install" in that directory (you'll probably have to use
sudo or some other means to run that as root). That command will
install the compiled binaries into /usr/local/bin which is almost always
in the path by default.

If you're just tinkering with it and not trying to deploy Lunaserv for
production use, the easiest way to get it running from there is to use
passenger standalone. First it needs to be installed ("gem install
passenger" is typically the easiest way), then cd into the lunaserv
directory, make sure the paths in lunaserv.yml are correct for your
system, and run "passenger start". Assuming you don't have any errors
up to that point, you'll see some log information start scrolling on the
screen, and you can point your web browser at http://localhost:3000 to
access it with the default config and layers. You can run passenger
with --help to see what other options you can change such as the port
number if needed for your system.

Good luck!

--Nick


On 2019-08-22 05:24, Chad Ledgett wrote:
> Hi Nick,
>
> Thank you. The make completed without errors (once I installed a few
> of the -dev packages I had left out). Below is a screen snip of the
> resulting files (at top dated 'today')...does that look like what is
> expected? If not, please let me know.
>
> & If this looks as expected, then, briefly looking at the following
> link (assuming that is what is relevant to ruby/rack apps, & if not
> please send me a better link :-), I think I now have some reading to
> do about using (standalone I assume is a good place to start?)
> Passenger to run a ruby/rack application (
> https://www.phusionpassenger.com/library/deploy/standalone/deploy/ruby/
> )...
>
> relevant useful links you recommend & any tips on key things I should
> read up on that are important for LunaServ are very much welcome
> (since I definitely have no experience yet with Passenger/Rack/Ruby).
> Thanks for your pointers in the right directions :-)
>
>> [2]
>
> --
> You received this message because you are subscribed to the Google
> Groups "Lunaserv" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to lunaserv+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lunaserv/8f02ad92-4f86-4732-ab29-a7317580d259%40googlegroups.com
> [3].
> [2]
> https://groups.google.com/d/msgid/lunaserv/ca49c42d-1d8c-455b-9037-84203d1010e3%40googlegroups.com?utm_medium=email&utm_source=footer
> [3]
> https://groups.google.com/d/msgid/lunaserv/8f02ad92-4f86-4732-ab29-a7317580d259%40googlegroups.com?utm_medium=email&utm_source=footer

Chad Ledgett

unread,
Aug 24, 2019, 9:14:43 AM8/24/19
to Lunaserv
Hi Nick,

I understand that the LROC LunaServ hosts >200 Terrabytes of data.  Looking at the info below & in my local Layer folder, I would like your recommendation of good ways to pull such data (& recommended data format(s))

I would specifically like to start by populating my local LunaServ with terabytes of Saturnian & Jovian moons data, as well as Earth's Moon, & Mars's surface.

For example, do you suggest a specific prefered way to get such data from PDS https://pds.nasa.gov/datasearch/data-search/ or ...?  Is there a link to a specific interface that you recommend I use that more easily calls data in a format easy for LunaServ to interpret?

& Thank you for helping me get this functioning so now I can more rapidly get proficient with it!  link to a few screenshots of the decent progress so far with the demo dataset ;-)


___________________________________________________
Reference: poulating local LunaServ with ptiff & vector data...


"Lunaserv has been used by other researchers, students and the public with QGIS, ArcGIS, Google Earth, OpenSceneGraph, OpenLayers, and Leaflet [10]. On average, the public Lunaserv service hosted by the LROC SOC handles more than 20k map requests per day, and during periods of high activity, has handled
over 600k map requests in a single day. 

In addition to the usage of the LROC SOC hosted Lunaserv server, Lunaserv can also be installed and used by other groups to host their own map data.
...
Lunaserv supports a variety of geographic data types.
• Raster Data (8-bit) (Fig. 1)
◦ Regional
◦ Global
• Vector Data (Fig. 2)
◦ Points
◦ Line-strings
◦ Polygons
◦ Annotations
◦ Grids
• Illumination (Fig. 3)
◦ Day/Night Shading
◦ Topography-based
• Numeric (32-bit) (Fig. 4)

The raster types are loaded from pyramidal TIFFs (PTIFF). These PTIFFs can either have embedded geographic meta-data, or the geographic meta-data can
be specified in a separate file. The PTIFFs can also have a 1-bit mask file to specify the area of interest within the PTIFF that should be rendered. The PTIFFs
for a given layer can either be listed in the layer's configuration file, or the list can be loaded from a database.

The vector types are loaded from flat files, shapefiles, or a database. Lunaserv supports the PostgreSQL database by default, but support for other databases is possible. All database operations support a rich set of filtering capabilities and can also used a predetermined set of 5° bins to limit the query results to the area of interest"

p.s.
       If you are still based in AZ, please enjoy it for me...I keep trying to move there & convince my family to help me create a family property with vineyards & CEA facilities east of Cochise but every time I do I end up further afield (currently living in Switzerland)...(also attended several short courses at CEAC Tucson https://ceac.arizona.edu/ but have not yet visited LROC which I hope to do in the future)

Kind regards, Chadwick
Reply all
Reply to author
Forward
0 new messages