-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an executable for windows in the bin directory #140
Comments
I tried and received |
The LIB variable was not set correctly, sorry. Could you try with the following snippet. I don't have a windows machine at hand, so I hope it helps.
|
I get
This is a different problem. Using I think the next step is to download an It's almost midnight here and I was erecting this so a bit of delays here. :) |
Nice week-end project ;) I published a new release (0.3.3) that includes a preliminary bat file. Regarding the importation process, there are some simple examples in the current repo and a more complexe stylesheet in the following repository. |
@bchapuis About hundred people getting sore muscles. :) I thank you for this, check examples and see how things go when I try this. Hopefully Windows users find this more broadly. :) |
I add a bit to this thread, I have a running PostgreSQL and I added database When I try to run
This is likely caused by running a bat file that takes quoted parameters (otherwise puzzling). Maybe useful to record here these next steps even if I haven't gone more into details about this. |
Thank you for reporting this. Have you tried to remove the "'"? I definitely need to setup a windows machine and perform more tests to see how the tool behave in a prompt. |
@bchapuis I tried several variations. I look deeper into this when I get a bit of time cleared up. I want to be a bit more systematic. I did try that and a few other variations quickly and didn't have success (in a hurry, so I may have just erred). I think also one thing I should do is to move everything to |
A quick update, running
will result in
Instead of giving
I do not know if other PostGIS extensions are needed. Probably wouldn't hurt and depends on operations. In any event, then re-runing the batch file results in...
All looks good thus far. Next steps: (<Edit: The path to
Hopefully this week. I think this establishes that there is something iffy with the batch file. For instance, I'm not sure if that |
Thanks a lot for digging into this. I wasn't aware that installing the extensions through the sql script would require superuser privileges on windows. Regarding the upload of the vector tiles there is an option to deploy them on an s3 bucket. This requires to install and configure aws-cli and to configure it with an AWS account. |
@bchapuis No problem at all! Would you have tip for the following issue? I tried and it fails with
It appears I miss some native library, but I do do not know which one. I dropped https://jdbc.postgresql.org/download.html to the |
Ok, this is an issue associated with LMDB that will require some investigations (the binary does not seems to be loaded correctly). LMDB is supposed to work on windows but I must admit that I'm not using windows on a regular basis. I opened another issue to track this and will try to come up with a fix later this week. Thanks a lot for reporting this. |
@bchapuis No problem. I was thinking that one next. I'll check too if there's something I could do by just adding binaries or maybe a C runtime or something. I'm testing this on 64 bit Windows Server 2019. One thing to be aware of that it doesn't support Linux Docker images. I took deliberately the difficult option. :D |
@bchapuis I had both 32 and 64 bit Java runtime installed and the 64 bit one disabled. When I enabled it, loading succeeded. I also tested by enabling just the 64 bit Java and it worked (as expected, but wanted to make sure) – apart for having a duplicate key exception. A few takes:
It's past midnight, but I probably try to produce maps tomorrow (<- edit: a bit later today, hah, have to always make the same mistake :)). |
Out of curiosity, are you using Windows Subsystem for Linux (WSL)? I was very thrilled by this feature when it came out but I'm not really able to gauge its popularity. |
@bchapuis It is somewhat popular and I have it installed on a desktop. I don't use it often, some do, but it depends on what they do. I just happened to start this on a temporary Windows Server 2019 installation so I might as well follow it through now. My goal was to actually just to learn to produce vector tiles from Now that you bring this up, there is maybe one way to make using/cooperation easier. It might be of interest to some to replicate this using .NET, at least to people like me who are more comfortable with that, but I suppose the same type reasoning would work for other platforms (Python?) From this perspective this would be easier to me if:
Then the language specific part is more about synchronizing |
Final update that generating vector tiles seemed to succeed. At least I got out |
One more added note, I got the Linux Docker container to run on Windows Server 2019. I installed Docker for Desktop and switched to Linux containers. I do not know why I couldn't get this to work first, may be related to OneGet/MicrosoftDockerProvider#55 kind of issues. This may help someone who gets also an error running the Linux Docker image on Windows and somehow switching the container from Windows to Linux doesn't seem to work. |
Thanks a lot for looking into this. Yes, the So if I understand correctly, #150 can be addressed by using the 64 bit Java runtime. I closed it for now, do not hesitate to reopen it if I miss-understood. I have only little experience with docker on Windows, is there something I could do when generating the images to make them work on windows more easily? |
@bchapuis I think it can be closed. I do knot know Java, but I think it would be possible to check the environment bitness and JVM bitness and if they are incompatible, issue a clear warning telling it – or maybe trying to load the another 32/64 version of the library. I am not sure if there is anything you can make the Docker images work smoother apart them being Windows machines. I could imagine it's not worth the hassle since Docker for Desktop has worked just fine for me. It just happened that I used Server 2019 and got into trouble, partly because I'm not a Docker guru (especially not on Windows). Then I chose to go the non-Docker route and got into trouble again. The upside is that now there's some public documentation of the trail. I tried a bit of my hand on OSM processing with .NET. I think I try replicate the contents of the tables your system produce. To get a better feeling of this data and processing times. If I get far enough, I most likely put the code to GitHub. In that case I think I would go for a more like single-binary commandline kind (ASCII graphics?) of an approach (that loads the scripts as-is and the program only cares about types and parameter names as required by the protocols, this way one can load data to other DBs also by re-creating the scripts). Do tell if you if you this could be something worth your time. In that case I put code to GH earlier and may ask something, though my intention isn't to squeeze your valuable time. Here's something I dabbled during the few evenings. I'm not sure if that's correct, i.e. all ways in Liechtenstein are lines? Makes sense but can't be sure with my mad skillz. :P This is of course unoptimized (and copy-pasta formatting bad).
<edit reading through https://github.com/OsmSharp/core/blob/c62b6d445187e15df35a310bac72e6300d8219d2/src/OsmSharp.Geo/DefaultFeatureInterpreter.cs, interesting, interesting (while not fastest?). |
Hi @bchapuis, I am trying to use baremaps to serve tiles from a postgis database and I cannot connect to the database. I get a message saying that
|
@frantiucalexandru I think you need to see that |
The current distribution contains a bash script. The equivalent for windows systems should be created. Probably something like a baremaps.bat file containing:
The text was updated successfully, but these errors were encountered: