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.