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 <http://geoserver.org/> 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 < [email protected]> 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: > > <Map background-color="transparent"> > <Layer name="Geology"> > <StyleName>raster</StyleName> > <Datasource> > <Parameter name="type">gdal</Parameter> > <Parameter > name="file">/home/ubuntu/Maps/Jersey_25K_BGS_Geology.tif</Parameter> > <Parameter name="nodata">0</Parameter> > </Datasource> > </Layer> > <Style name="Geology"> > <Rule name="rule1"> > <RasterSymbolizer opacity="0.7" scaling="bilinear" mode="normal" /> > <!-- <MinScaleDenominator>500</MinScaleDenominator> > <MaxScaleDenominator>100000</MaxScaleDenominator> --> > </Rule> > </Style> > </Map> > > 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 > > <Map background-color="transparent" srs="+proj=tmerc +lat_0=49 +lon_0=-2 > +k=0.999601272 +x_0=400000 +y_0=-100000 +ellps=airy > +towgs84=446.448,-125.157,542.06,0.15,0.247,0.842,-20.489 +units=m > +no_defs"> > > 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 [email protected]. To unsubscribe, > send email to [email protected]. 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/archesproject/8edba7c6-4bca-4b83-9abb-3091dce2f8c3%40googlegroups.com > <https://groups.google.com/d/msgid/archesproject/8edba7c6-4bca-4b83-9abb-3091dce2f8c3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/CAGYBTauZ4AHuQs_hsLMB5Vv6MY_VirfgCKseDgMdHCUfcEa9ZQ%40mail.gmail.com.
