Open lamuertepeluda opened 12 years ago
oh, You'd better be familiar with erlang. or maybe I'll take sometime in this weekend to do some user-friendly work.
On Thu, Aug 30, 2012 at 11:32 PM, lamuertepeluda notifications@github.comwrote:
Hi,
I was trying to get imgs2tiles working, just for comparison with gdal2tiles.py (standard free version). Since I'm not familiar at all with Erlang, could you please provide some getting started example or a launch script?
Thank you
Vito
— Reply to this email directly or view it on GitHubhttps://github.com/refactor/imgs2tiles/issues/1.
Thank you! I'm trying to get familiar with Erlang but it is kind of weird language :P, yet it seems powerful.
What I don't understand is how to pass the arguments to your application and make it start. Sounds quite different from a shell script, isn't it?
So far I did (in imgs2tiles/ebin):
$erl
cd("../deps/geo_utils/ebin/"). application:start(geo_utils). cd("../../../ebin"). application:start(imgs2tiles).
All I get it's a nice "ok"
So i tried to change the line:
{env,[{default_tiles_dir,"/tmp/tiles"},
to
{env,[{default_tiles_dir,"<PATH_TO_FOLDER_WHERE_INPUT_FILE_IS>"},
But I get only:
tile_collect init args: []
tile_saver init args: {state,"
So what I'd like to know is the equivalent of this synopsis: gdal2tiles.py [-title "Title"] [-publishurl http://yourserver/dir/] [-nogooglemaps] [-noopenlayers] [-nokml] [-googlemapskey KEY] [-forcekml] [-v] input_file [output_dir]
plus any other imgs2tiles specific parameter. Thank you!!
start erl with the follow cmd maybe better: erl -pz ebin deps/*/ebin
Actually, the imgs2tiles, which want to copy the work of gdal2tils, had been deprecated. Most of the work have been move tho geoimg_shredder.
On Fri, Aug 31, 2012 at 6:29 PM, lamuertepeluda notifications@github.comwrote:
Thank you! I'm trying to get familiar with Erlang but it is kind of weird language :P, yet it seems powerful.
What I don't understand is how to pass the arguments to your application and make it start. Sounds quite different from a shell script, isn't it?
So far I did (in imgs2tiles/ebin):
$erl
cd("../deps/geo_utils/ebin/"). application:start(geo_utils). cd("../../../ebin"). application:start(imgs2tiles).
All I get it's a nice "ok"
So i tried to change the line:
{env,[{default_tiles_dir,"/tmp/tiles"},
to
{env,[{default_tiles_dir,"<PATH_TO_FOLDER_WHERE_INPUT_FILE_IS>"},
But I get only:
tile_collect init args: [] tile_saver init args: {state,"","png"} ok
So what I'd like to know is the equivalent of this synopsis: gdal2tiles.py [-title "Title"] [-publishurl http://yourserver/dir/] [-nogooglemaps] [-noopenlayers] [-nokml] [-googlemapskey KEY] [-forcekml] [-v] input_file [output_dir]
plus any other imgs2tiles specific parameter. Thank you!!
— Reply to this email directly or view it on GitHubhttps://github.com/refactor/imgs2tiles/issues/1#issuecomment-8188027.
Hi,
thank you for the advice. I downloaded the geoimg_shredder this morning.
After a first test I was unable to run it (I get several errors and debug messages after doing: application:start(geoimg_shredder).
The first [error] message I get is this:
10:16:38.930 [error] CRASH REPORT Process <0.73.0> with 1 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6
But I attached here the log files, may be they could help you to understand what's going on.
What I'm trying to do is to tile a huge .png file. I hope this is not an issue, i.e. if the program needs a .tif with geo metadata. I'll try with that too. If that's the issue, how could I pass the parameters such as warping transformation and so on using a .png?
I'm using a Linux 12.04 machine, core i5 and erlang R14B04.
Thanks a lot!
Vito
Il 01/09/2012 06:26, refactor ha scritto:
start erl with the follow cmd maybe better: erl -pz ebin deps/*/ebin
Actually, the imgs2tiles, which want to copy the work of gdal2tils, had been deprecated. Most of the work have been move tho geoimg_shredder.
On Fri, Aug 31, 2012 at 6:29 PM, lamuertepeluda notifications@github.comwrote:
Thank you! I'm trying to get familiar with Erlang but it is kind of weird language :P, yet it seems powerful.
What I don't understand is how to pass the arguments to your application and make it start. Sounds quite different from a shell script, isn't it?
So far I did (in imgs2tiles/ebin):
$erl
cd("../deps/geo_utils/ebin/"). application:start(geo_utils). cd("../../../ebin"). application:start(imgs2tiles).
All I get it's a nice "ok"
So i tried to change the line:
{env,[{default_tiles_dir,"/tmp/tiles"},
to
{env,[{default_tiles_dir,"
"}, But I get only:
tile_collect init args: [] tile_saver init args: {state,"","png"} ok
So what I'd like to know is the equivalent of this synopsis: gdal2tiles.py [-title "Title"] [-publishurl http://yourserver/dir/] [-nogooglemaps] [-noopenlayers] [-nokml] [-googlemapskey KEY] [-forcekml] [-v] input_file [output_dir]
plus any other imgs2tiles specific parameter. Thank you!!
— Reply to this email directly or view it on GitHubhttps://github.com/refactor/imgs2tiles/issues/1#issuecomment-8188027.
— Reply to this email directly or view it on GitHub https://github.com/refactor/imgs2tiles/issues/1#issuecomment-8209913.
That's because geoimg_shredder try to connection riak, a NoSQL database.
So, it is very different from gdal2tiles, which store the tile imgs on an OS filesystem, like X/Y/Z folders.
I use geoimg_shredder generate tiles, insteadly, and store all tiles in riak. then I can see the tile by Web browser, such as: http://localhost:8098/riak/gis/1321021302113122220
where 1321021302113122220 is a Microsoft quadtree key for that tile
On Mon, Sep 3, 2012 at 4:27 PM, lamuertepeluda notifications@github.comwrote:
Hi,
thank you for the advice. I downloaded the geoimg_shredder this morning.
After a first test I was unable to run it (I get several errors and debug messages after doing: application:start(geoimg_shredder).
The first [error] message I get is this:
10:16:38.930 [error] CRASH REPORT Process <0.73.0> with 1 neighbours exited with reason: {tcp,econnrefused} in gen_server:init_it/6
But I attached here the log files, may be they could help you to understand what's going on.
What I'm trying to do is to tile a huge .png file. I hope this is not an issue, i.e. if the program needs a .tif with geo metadata. I'll try with that too. If that's the issue, how could I pass the parameters such as warping transformation and so on using a .png?
I'm using a Linux 12.04 machine, core i5 and erlang R14B04.
Thanks a lot!
Vito
Il 01/09/2012 06:26, refactor ha scritto:
start erl with the follow cmd maybe better: erl -pz ebin deps/*/ebin
Actually, the imgs2tiles, which want to copy the work of gdal2tils, had been deprecated. Most of the work have been move tho geoimg_shredder.
On Fri, Aug 31, 2012 at 6:29 PM, lamuertepeluda notifications@github.comwrote:
Thank you! I'm trying to get familiar with Erlang but it is kind of weird language :P, yet it seems powerful.
What I don't understand is how to pass the arguments to your application and make it start. Sounds quite different from a shell script, isn't it?
So far I did (in imgs2tiles/ebin):
$erl
cd("../deps/geo_utils/ebin/"). application:start(geo_utils). cd("../../../ebin"). application:start(imgs2tiles).
All I get it's a nice "ok"
So i tried to change the line:
{env,[{default_tiles_dir,"/tmp/tiles"},
to
{env,[{default_tiles_dir,"
"}, But I get only:
tile_collect init args: [] tile_saver init args: {state,"","png"} ok
So what I'd like to know is the equivalent of this synopsis: gdal2tiles.py [-title "Title"] [-publishurl http://yourserver/dir/] [-nogooglemaps] [-noopenlayers] [-nokml] [-googlemapskey KEY] [-forcekml] [-v] input_file [output_dir]
plus any other imgs2tiles specific parameter. Thank you!!
— Reply to this email directly or view it on GitHub< https://github.com/refactor/imgs2tiles/issues/1#issuecomment-8188027>.
— Reply to this email directly or view it on GitHub https://github.com/refactor/imgs2tiles/issues/1#issuecomment-8209913.
— Reply to this email directly or view it on GitHubhttps://github.com/refactor/imgs2tiles/issues/1#issuecomment-8232320.
Hi,
I was trying to get imgs2tiles working, just for comparison with gdal2tiles.py (standard free version). Since I'm not familiar at all with Erlang, could you please provide some getting started example or a launch script?
Thank you
Vito