Re: [Arches] Problem loading overlay maps

2019-10-05 Thread David Osborne
Hi Adam

When the background colour is changed, all we see is that colour: no map.

Dennis replied to me off-list to suggest that we're not seeing the maps 
because the coordinate system for the GeoTIFFs is not Web Mercator 
(EPSG:3857) which Arches uses and that we should re-project them. That 
seems the most likely cause, so I'm working on that now. Dennis gave a link 
to an entry on Farallon's blog, the existence of which I wasn't aware, so 
I'll add it here in case it's useful to others:

http://fargeo.com/blog/integrate-historic-maps-and-aerial-imagery-arches-v4/

That solution uses QGIS but in a command-line environment, I'm 
experimenting with using gdalwarp, which I assume is what QGIS will use 
behind the scenes.

Thanks for the recommendation for Geoserver: are you saying that's the only 
way to use tiled maps in conjunction with Arches?

Cheers
David

Hi David, when you change the background color, are you saying that the map 
*does 
> *show up correctly, or that an empty, colored layer that is the size of 
> the map shows up, without the map?
>
> My first thought would be to check the dev tools console output for 
> errors. It sounds like mapnik is having some problem rendering the map.
>
> As for the other maps, I can think of a couple different ways in which 
> those maps could be tiled in separate files. Do you mean it is a full 
> tileset, in the "XYZ" format? Or is a it bunch of separate GeoTIFFs that 
> you want to combine into one layer? A little clarification would help.
>
> If you have a lot of these geotiffs and you expect that you will be 
> getting more, I would recommend setting up and instance of Geoserver 
>  to turn them into web map services and then feed 
> them back into Arches that way. I have a personal preference for Geoserver, 
> as I use it for other projects as well, but it may be easier to the raster 
> styles, data sources, etc. Just a thought. It's a robust map server used by 
> lots of people all over the world. We have examples of using layers from 
> Geoserver in Arches here: 
> https://github.com/legiongis/arches4-geo-examples#using-the-tileserver-to-cascade-a-wms
>
> Adam
>
> On Thu, Oct 3, 2019 at 3:59 PM David Osborne  > wrote:
>
>> Hi all
>>
>> We need to load some overlay maps for our project and have so far been 
>> unsuccessful. I'm following the instructions at 
>> https://arches.readthedocs.io/en/stable/creating-new-map-layers/#tileserver-mapnik-layers
>>  to 
>> try to load a couple of georeferenced TIFF files. The maps load 
>> successfully in QGIS, so we have confidence that they are correctly 
>> georeferenced. 
>>
>> Adapting the XML shown on that page, I have the following for one of the 
>> maps:
>>
>> 
>>   
>> raster
>> 
>>   gdal
>>   > name="file">/home/ubuntu/Maps/Jersey_25K_BGS_Geology.tif
>>   0
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>
>> which is loaded using the command
>>
>> python manage.py packages -o add_tileserver_layer -m 
>> "/home/ubuntu/Maps/Jersey_25K_BGS_Geology.xml" -n "Geology"
>>
>> The layer name Geology then appears in the list of overlays but nothing 
>> appears when the layer is enabled.
>>
>> I have tried adding projection parameters to the opening Map tag
>>
>> 
>>
>> and these are correct, as far as we can tell. If we change the 
>> background-color parameter to "white" or "black", the layer colour changes 
>> as expected.
>>
>> These maps are complete in one file but we do have another map which is 
>> tiled in separate files: would we need to use a separate tile-server to use 
>> that?
>>
>> I expect we've missed something simple but any help or advice would be 
>> appreciated!
>>
>> Thanks
>> David
>>
>> -- 
>> -- To post, send email to arches...@googlegroups.com . To 
>> unsubscribe, send email to arches...@googlegroups.com . For 
>> more information, visit 
>> https://groups.google.com/d/forum/archesproject?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Arches Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to arches...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/archesproject/8edba7c6-4bca-4b83-9abb-3091dce2f8c3%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 

Re: [Arches] Problem loading overlay maps

2019-10-04 Thread Adam Cox
Hi David, when you change the background color, are you saying that
the map *does
*show up correctly, or that an empty, colored layer that is the size of the
map shows up, without the map?

My first thought would be to check the dev tools console output for errors.
It sounds like mapnik is having some problem rendering the map.

As for the other maps, I can think of a couple different ways in which
those maps could be tiled in separate files. Do you mean it is a full
tileset, in the "XYZ" format? Or is a it bunch of separate GeoTIFFs that
you want to combine into one layer? A little clarification would help.

If you have a lot of these geotiffs and you expect that you will be getting
more, I would recommend setting up and instance of Geoserver
 to turn them into web map services and then feed
them back into Arches that way. I have a personal preference for Geoserver,
as I use it for other projects as well, but it may be easier to the raster
styles, data sources, etc. Just a thought. It's a robust map server used by
lots of people all over the world. We have examples of using layers from
Geoserver in Arches here:
https://github.com/legiongis/arches4-geo-examples#using-the-tileserver-to-cascade-a-wms

Adam

On Thu, Oct 3, 2019 at 3:59 PM David Osborne <
daosborne.archaeol...@gmail.com> wrote:

> Hi all
>
> We need to load some overlay maps for our project and have so far been
> unsuccessful. I'm following the instructions at
> https://arches.readthedocs.io/en/stable/creating-new-map-layers/#tileserver-mapnik-layers
>  to
> try to load a couple of georeferenced TIFF files. The maps load
> successfully in QGIS, so we have confidence that they are correctly
> georeferenced.
>
> Adapting the XML shown on that page, I have the following for one of the
> maps:
>
> 
>   
> raster
> 
>   gdal
>name="file">/home/ubuntu/Maps/Jersey_25K_BGS_Geology.tif
>   0
> 
>   
>   
> 
>   
>   
> 
>   
> 
>
> which is loaded using the command
>
> python manage.py packages -o add_tileserver_layer -m
> "/home/ubuntu/Maps/Jersey_25K_BGS_Geology.xml" -n "Geology"
>
> The layer name Geology then appears in the list of overlays but nothing
> appears when the layer is enabled.
>
> I have tried adding projection parameters to the opening Map tag
>
> 
>
> and these are correct, as far as we can tell. If we change the
> background-color parameter to "white" or "black", the layer colour changes
> as expected.
>
> These maps are complete in one file but we do have another map which is
> tiled in separate files: would we need to use a separate tile-server to use
> that?
>
> I expect we've missed something simple but any help or advice would be
> appreciated!
>
> Thanks
> David
>
> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to archesproject+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/archesproject/8edba7c6-4bca-4b83-9abb-3091dce2f8c3%40googlegroups.com
> 
> .
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/CAGYBTauZ4AHuQs_hsLMB5Vv6MY_VirfgCKseDgMdHCUfcEa9ZQ%40mail.gmail.com.


[Arches] Problem loading overlay maps

2019-10-03 Thread David Osborne
Hi all

We need to load some overlay maps for our project and have so far been 
unsuccessful. I'm following the instructions at 
https://arches.readthedocs.io/en/stable/creating-new-map-layers/#tileserver-mapnik-layers
 to 
try to load a couple of georeferenced TIFF files. The maps load 
successfully in QGIS, so we have confidence that they are correctly 
georeferenced. 

Adapting the XML shown on that page, I have the following for one of the 
maps:


  
raster

  gdal
  /home/ubuntu/Maps/Jersey_25K_BGS_Geology.tif
  0

  
  

  
  

  


which is loaded using the command

python manage.py packages -o add_tileserver_layer -m 
"/home/ubuntu/Maps/Jersey_25K_BGS_Geology.xml" -n "Geology"

The layer name Geology then appears in the list of overlays but nothing 
appears when the layer is enabled.

I have tried adding projection parameters to the opening Map tag



and these are correct, as far as we can tell. If we change the 
background-color parameter to "white" or "black", the layer colour changes 
as expected.

These maps are complete in one file but we do have another map which is 
tiled in separate files: would we need to use a separate tile-server to use 
that?

I expect we've missed something simple but any help or advice would be 
appreciated!

Thanks
David

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/8edba7c6-4bca-4b83-9abb-3091dce2f8c3%40googlegroups.com.