Re: [MapServer-users] Why is Mapserver slower in Postgres 13 than in Postgres 11?

2024-02-05 Thread Travis Kirstine via MapServer-users
 11?
>
>
>
> I don't think so.  These queries are generated somehow.  Here's what the
> PolygonSources layer looks like, and as you can see, the query I am
> specifying is just "geom from the_table_in_question":
>
>   LAYER
>
> NAME "PolygonSources"
>
> CONNECTIONTYPE POSTGIS
>
> CONNECTION "xx"
>
> TYPE POLYGON
>
> STATUS ON
>
> DATA "geom FROM the_table_in_question"
>
> UTFITEM   "cartodb_id"
>
> UTFDATA
> "{\"cartodb_id\":\"[cartodb_id]\",\"sourceid\":\"[sourceid]\",\"name\":\"[name]\",\"sourcetype\":\"[sourcetype]\",\"drawingord\":\"[drawingord]\",\"featuretyp\":\"[featuretyp]\",\"isnew\":\"[isnew]\"}"
>
> TEMPLATE WMSGetFeatureInfo
>
> FILTERITEM "featuretyp"
>
> CLASSITEM "sourceid"
>
> FILTER "polygon"
>
> CLASS
>
>   NAME "polygon"
>
>   EXPRESSION ([sourceid] != 169 AND [sourceid] != 412 AND [sourceid]
> != 820 AND [sourceid] != 1067)
>
>   STYLE
>
> COLOR "#0B3A71B3"
>
> OUTLINECOLOR  "#AFBFD0B3"
>
> OUTLINEWIDTH 1.5
>
>   END
>
> END
>
> METADATA
>
>   "wms_title" "Polygon Source Features"
>
>   "wms_include_items" "all"
>
>   "wms_abstract" "Layer of all polygon geometry sources."
>
>   "wfs_title" "Polygon Source Features"
>
>   "wfs_srs"   "EPSG:3857 EPSG:4326"
>
>   "wfs_enable_request" "*"
>
>   "wfs_abstract" "Layer of all polygon geometry sources."
>
>   "gml_include_items" "all"
>
>   "gml_featureid" "cartodb_id"
>
> END
>
> PROJECTION
>
>   "init=epsg:3857"
>
> END
>
> PROCESSING "CLOSE_CONNECTION=DEFER"
>
>   END
> --
>
> *From:* James Gardner 
> *Sent:* Sunday, February 4, 2024 6:44 PM
> *To:* Rob Dennett 
> *Cc:* Travis Kirstine ;
> mapserver-users@lists.osgeo.org 
> *Subject:* Re: [MapServer-users] Why is Mapserver slower in Postgres 13
> than in Postgres 11?
>
>
>
> *External: Beware of links/attachments. *
>
>
>
> Could you try replacing find_srid with a hard coded srid... I found it had
> to run find_srid on every tuple...
>
> -James Gardner
>
>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Why is Mapserver slower in Postgres 13 than in Postgres 11?

2024-02-04 Thread Travis Kirstine via MapServer-users
First thought is to check if the table has a spatial index.

https://postgis.net/workshops/postgis-intro/indexing.html

On Fri, 2 Feb 2024 at 18:37, Rob Dennett via MapServer-users <
mapserver-users@lists.osgeo.org> wrote:

> I recently upgraded our db for our Mapserver from Postgres 11 to Postgres
> 13 and also had to update Postgis from 2.4 to 3.4, as well as remove the
> postgis 2.4 raster queries and add the new postgis_raster extension.  Now I
> have web request which takes over 30 seconds where it used to take about
> 2.  I made copies of the .map file and question and pointed one at the old
> db and set the debug level for the map to 2 for both.
>
> These .map files were created by someone who no longer works here and I am
> not a GIS professional, just a software developer, so I am having trouble
> understanding the output.
>
> After hitting the web page for both, I see the debug file is twice as
> large for the new db as it was for the old one.  The .map file has 4
> layers, three of which have a status of on, one for polygons, one for lines
> and one for point and one called "AllSources" (which is off).  For the
> first 3, they contain
>
> DATA "geom from the_table_in_question"
>
> which is a field of type geometry.  In the logs I see lines like
>
> select
> "sourceid"::text,"featuretyp"::text,"cartodb_id"::text,"name"::text,"sourcetype"::text,"drawingord"::text,"isnew"::text,ST_AsBinary(("geom"),'NDR')
> as geom,"cartodb_id"::text from the_table_in_question where "geom" &&
> ST_GeomFromText('POLYGON((-12520996.7293382
> 2507134.52775378,-12520996.7293382 3754586.82936786,-11273544.4277241
> 3754586.82936786,-11273544.4277241 2507134.52775378,-12520996.7293382
> 2507134.52775378))',find_srid('','iswp_sourcefeatures2022','geom')) and
> ("featuretyp"::text = 'polygon')
>
> There are 8 of these in each output file, but their contents don't match.
> I am not sure what's generating them.  I do note that they, along with
> SELECT geom from ...; statements take roughly equal time whether executed
> against the old db or the new one.
>
> What is generating these log statements?
>
> Why does what is for all intents and purposes the same .map file produce
> different output?  I know it's because I changed the db engine and postgis,
> but if you could be more specific, that would be very helpful.
>
> Thanks,
> Rob
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Suppress queryable=1 for wms_layer_group [SEC=OFFICIAL]

2023-07-06 Thread Travis Kirstine
 Hi Kathleen,

I haven't experimented with GROUPed layers but have you looked at
*wms_enable_request* (or *ows_enable_request*) defined in the METADATA
section of the layer

"wms_enable_request" "* !GetFeatureInfo"

See docs: https://mapserver.org/ogc/wms_server.html#web-object-metadata

Regards

On Thu, 6 Jul 2023 at 01:36, Kathleen Hirst 
wrote:

> Hi,
>
>
>
> In the previous version of Mapserver when using wms_layer_group, the
> groups were not queryable in the GetCapabilities. In following examples,
> the configuration is
>
>
>
> LAYER>METADATA> OWS_LAYER_GROUP "/Radar/Australia"
>
>
>
>
>
> Version 6.4.2
>
>
>
> 
>
> Radar
>
> 
>
> Australia
>
> 
>
> IDR9
>
> Radar Offline | Australia
>
> Radar Offline | Australia
>
> EPSG:4283
>
>
>
>
>
> In the latest version 8.0.0, all the groups are queryable
>
>
>
> 
>
> Radar
>
> Radar
>
> 
>
> Australia
>
> Australia
>
> 
>
> IDR9
>
> Radar Offline | Australia
>
> Radar Offline | Australia
>
> EPSG:4283
>
>
>
> Is there a way to not have the group queryable, as it is causing issues
> with some web applications eg picking up the wrong layer within a group or
> listing the group as well as the layer
>
>
>
> Thanks
>
>
>
> Kathleen
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] WG: mapcache tms it not working properly

2023-04-11 Thread Travis Kirstine
My guess top-left is your issue, I believe the tms
standard is for bottom-left









On Tue, 11 Apr 2023 at 08:44, STEINER Andreas  wrote:

> Hello everyone,
>
>
>
> I set up a mapcache layer for a customer of mine.
> The layer looks like this:
>
>
> https://user-images.githubusercontent.com/59861665/231165591-1fb8d097-70e1-487d-91c6-152291b3ae43.png
>
>
>
> When requesting the layer via wmts or wms everything works fine.
> My customer requires TMS – when I request the tiles with tms the tiles are
> not at the right place.
>
>
>
> Z0: At Z0 the tiles match:
>
>
>
>
> https://user-images.githubusercontent.com/59861665/231165657-742f7944-f2a4-444c-9a82-24c10574bdc8.png
>
>
>
> At Z1 they are not at the same place:
>
> https://user-images.githubusercontent.com/59861665/231165693-29e2399a-04cd-4df0-b63a-1ab3f606ce92.png
>
> And e.g. at Z6 it looks like this:
>
>
> https://user-images.githubusercontent.com/59861665/231165727-a638e7d8-8803-4c81-a2bd-7ff70ed04020.png
>
>
>
> That’s the configuration for the GRID:
>
>   
>
>   
>
> GoogleMapsCompatible
>
>
> urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible
>
>   
>
>   -20037508.3427892480 -20037508.3427892480
> 20037508.3427892480 20037508.3427892480
>
>   EPSG:3857
>
>   256 256
>
>   EPSG:900913
>
>   top-left
>
>   156543.03392800014 78271.5169634 39135.7584829
> 19567.8792402 9783.93962049996 4891.96981024998 2445.98490512499
> 1222.992452562495 611.4962262813797 305.74811314055756 152.87405657041106
> 76.43702828507324 38.21851414253662 19.10925707126831 9.554628535634155
> 4.77731426794937 2.388657133974685 1.1943285668550503
> 0.5971642835598172
>
>   
>
>
>
>
>
> I also tried to use a EPSG:4326 with a extend -180 -180 180 180 but it’s
> the same result.
>
> The url I used looks like this: http://XX
> /mapcache/tms/1.0.0/@WORLD/{z}/{x}/{y}.png
>
> Maybe someone has an idea why it doesn’t work.
>
>
>
> Thanks in advance.
>
>
>
> Best regards
>
> Andy
>
>
>
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Can Mapserver store VRT content in cache?

2023-03-01 Thread Travis Kirstine
I don't think you can store index files / VRTs in a memory cache.

On Wed, 22 Feb 2023 at 09:19, Marcin Niemyjski via MapServer-users <
mapserver-users@lists.osgeo.org> wrote:

> Hello,
>
> can Mapserver store VRT content in cache so is uses cached file to connect
> to source data when requesting it? I want to limit S3 requests (because all
> data is stored on s3, including VRT) so Mapserver sends only S3 requests
> for source data.
>
> Any sugestions?
>
> Thanks,
> Marcin
>
>
>
>
>
>
> 
>  Book
> time to meet with me
> 
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Catalogue Service for the Web (CSW) with MapServer?

2022-11-28 Thread Travis Kirstine
No - mapserver does not support creating a CSW, try geonetwork or pycsw



On Mon, 28 Nov 2022 at 09:39, Gerhard Völkl 
wrote:

> Hello,
>
> Is ist possible to create an *Catalogue Service for the Web (CSW) with
> MapServer?*
>
> *If Not Which free software do you use?*
>
> *Thanks*
>
> *Best Regards Gerhard*
>
>
> Von meinem iPad gesendet
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] Ask for advice on Caching large layers on high zoom level

2022-09-02 Thread Travis Kirstine
I've found the other limiting factors are disk speed (SSD vs HDD) and cache
type.  SQLite can be easy to manage but the write locking during inserts
can really slow things down (adding more cores won't help in this case)
when compared to writing a simple disk cache.

I agree with Scott in that if you are using COGs you shouldn't really need
MapCache as you could look at alternatives to serve this data out as is.

On Fri, 2 Sept 2022 at 10:14, Scott  wrote:

> COG files imply that they are already tiled. I'd be curious as to the
> performance of map rendering using just the COG files without creating
> tiles.
>
> Being the 'size of Poland' doesn't really matter. It's the pixel
> resolution that is important. If the pixel resolution is 100 meters vs 3
> meters you will have different performance results.
>
> Seeding will always be bound by CPU, memory, etc. Creating an image
> (ami) of your system in AWS, then running multiple EC2's instance can be
> insanely fast.
>
>
>
> On 9/2/22 06:41, Marcin Niemyjski via MapServer-users wrote:
> > Hello,
> >
> > My job is to cache 365 layers. These layers consist of up to 30 .tif
> > (COG) files stored in a mapfile. These layers are roughly the size of
> > Poland and I would like to acquire their tiles for level 14 zoom. One
> > layer for these settings:
> > sudo mapcache_seed -c /DiscPlanetiler/2022/03/02/2022-03-02.xml -t
> > 20220302 -g PUWG1992 -z 10,10 -n 32
> > caches 83h (32 cores is my max). I am looking for advice on how I could
> > speed up the generation of these tiles.
> >
> > Thanks,
> > Marcin
> >
> > ___
> > MapServer-users mailing list
> > MapServer-users@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> MapServer-users mailing list
> MapServer-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] offset and symbolscaledenom

2021-09-01 Thread Travis Kirstine
Thanks Steve,

I was able to find a workaround.

On Wed, 1 Sept 2021 at 09:54, Steve Lime  wrote:

> Not that I know of - unless you did so yourself via MapScript. This seems
> like a limitation of the current implementation rather than a bug. We'd
> need to add additional parameters to limit the offsets (e.g. MINOFFSET,
> MAXOFFSET). --Steve
>
> On Fri, Aug 27, 2021 at 2:18 PM Travis Kirstine 
> wrote:
>
>> Is there a method to scale the offset value between min / max sizes when
>> using symbolscaledenom.  I'm trying to scale and offset a label but it
>> appears the offset is static based on the symbolscaledenon.
>>
>> Thanks
>>
>> mapfile
>>
>> LAYER
>> 
>> SYMBOLSCALEDENOM 1000
>> CLASS
>>   NAME "label"
>>   EXPRESSION "POINT"
>>   LABEL
>> OFFSET 0 12
>> FONT arial
>> SIZE 12
>> MINSIZE 8
>> MAXSIZE 12
>> TYPE truetype
>> COLOR 0 0 0
>> STYLE
>>   GEOMTRANSFORM 'labelpoly'
>>   COLOR "#ff4f"
>> END
>>   END
>> END
>>
>>
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] offset and symbolscaledenom

2021-08-27 Thread Travis Kirstine
Is there a method to scale the offset value between min / max sizes when
using symbolscaledenom.  I'm trying to scale and offset a label but it
appears the offset is static based on the symbolscaledenon.

Thanks

mapfile

LAYER

SYMBOLSCALEDENOM 1000
CLASS
  NAME "label"
  EXPRESSION "POINT"
  LABEL
OFFSET 0 12
FONT arial
SIZE 12
MINSIZE 8
MAXSIZE 12
TYPE truetype
COLOR 0 0 0
STYLE
  GEOMTRANSFORM 'labelpoly'
  COLOR "#ff4f"
END
  END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Question about importing xml/json data from api

2021-01-04 Thread Travis Kirstine
Liron,

Since MapServer is built with GDAL / OGR you connect to most common formats
without parsing, see https://www.mapserver.org/input/vector/ogr.html.
However this does not include hand rolled JSON / XML, if possible retrieve
GeoJSON or some other GDAL / OGR supported format from the API.  You may
want to go through an extra step(s) of converting the data to a format that
supports spatial indexing (like shapefile or geopackage) if working with
large datasets.  Most of this can be done using a shell / batch scripting
and command line tools (ogr2ogr and shptree).  BTW ogr does support direct
connection to some API - like an ESRI feature server which can make the
conversion "easy", however not all OGR supported formats work with MapServer

https://gdal.org/drivers/vector/index.html

Regards







On Fri, 1 Jan 2021 at 18:35, CHEN, LIRON (PGT)  wrote:

> Hi and happy New Year!
>
> Im completely new to MapServer and not from a development background, but
> I hope its ok to ask for help here. Im a GIS postgraduate with some
> programming skill and Im trying to teach myself to set up a service that
> generates maps or layers when called on; but I want the service to generate
> them using the most recently published data from other web sources through
> their respective APIs. They mostly provide XML or JSON formatted spatial
> data.
>
> Ill inevitably need to read up and practice a lot and thats fine. But can
> anyone point me towards the apps or functionalities that will eventually
> allow me to do this? Just because Im comfortable with C++ I had a look if I
> could import with libcurl and parse with that to something mapserver could
> use but I think thats taking a very long way round.. any help appreciated.
>
> Kind regards,
> Liron Chen
>
>
> The University of Aberdeen is a charity registered in Scotland, No
> SC013683.
> Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir.
> SC013683.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver / mapcache performance when reprojecting many

2020-07-14 Thread Travis Kirstine
Mark
See: https://mapserver.org/input/raster.html#raster-display-performance-tips
In summary use internally tiled geotiffs with overviews using gdaladdo in
the projection you'd like to publish from mapserver





On Mon, 13 Jul 2020 at 17:14, Mark Volz  wrote:

> Hi,
>
>
>
> I was able to increase the performance of my reprojected service by
> resampling the raster.   If anyone else has any tips please let me know.
>
>
>
> Thank You
>
> Sincerely,
>
> *Mark Volz, GISP*
>
>
>
> Hello,
>
> I created a Mapserver / Mapcache service that uses a tile index with about
> 1,000 jpg file.  When I use my counties native projection the service is
> quite fast especially when compared to using MrSID mosaics.  However, when
> I reproject my imagery to EPSG: 3857 the service much slower than my older
> MrSID service.  I presume this may have something to do with Mapserver
> needing to load and reporject all the tiles.
>
>
>
> Please let me know if you have any tips that could help speed up the
> service.  Here are a couple things I thought of:
>
>
>
> * Just use MrSID mosaics which will provide mediocre performance
> in the source projection, but may be faster when reprojecting.
>
>
>
> * Convert the data into a geotiff format which will take time.
>
>
>
> * Use MrSID files at smaller scales, and Jpeg tiles at larger
> scales.  This should give us acceptable speed, but we will need to store
> more data.
>
>
>
> * Something else.
>
>
>
> Thank You!
>
>
>
> Sincerely,
>
> Mark Volz, GISP
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MapCache dimensions with MapServer run time substitution

2020-07-07 Thread Travis Kirstine
Is it possible to utilize mapcache regex dimensions with mapserver run time
substitution (wms) to create a more dynamic and generic tile service

Here is my basic configuration for mapserver and mapcache, I can't seem to
get it working with QGIS when connecting to the WMTS

For example I use run time substitution with my PG DATA settings

  LAYER
NAME "sub_layer"
...
VALIDATION
  'layer_table' ^.*$'
  'layer_class' '^.*$'
END
CONNECTIONTYPE postgis
CONNECTION "port= user=user password=pw dbname=db host=mydb"
DATA "the_geom from (SELECT gid, ms_color, the_geom FROM %layer_table%
WHERE class='%layer_class%') AS foo USING UNIQUE gid using SRID=4326"
 
  END

I set my MapCache config up with the same runtime variables as dimensions

   
  
 
image/png
true
sub_layer
 
  
  
 http://testserver.com/cgi-bin/wms?
  
   
   
  source_wms
  composite
  GoogleMapsCompatible
  PNG
  5 5
  10
  3600
  604800
  

  ^.*$


  ^.*$

  
   
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Bewbie question about MapServer and WPS

2020-02-26 Thread Travis Kirstine
Petros

I'm not sure if MapServer is what you are looking for as I is generally
used the the creation and transfer of maps and it sounds like you are only
concerned with retrieval of statistical information.  MapServer probably
could be used for the application you describe but it would be easier to
simply use a WPS  service of some sort (https://pywps.org/).  Alternatively
you could look at using postgresql with the geo-spatial postgis extension
to perform your analysis any develop your own interface using whatever
language you prefer.





On Wed, 26 Feb 2020 at 07:51,  wrote:

> Hi all,
>
> I have to warn you that I am entirely new to GIS and all the terminology
> so my questions might be strange. Nevertheless, my company wish to expose a
> service that receives a polygon as input and outputs statistical data about
> the area defined by the polygon. For instance, it could be the number of
> residents in different age groups, the average income, the number of
> companies divided by industry, etc.
>
> The service will aggregated the statistical data on the fly according to
> input polygon. Then it will then preform some type of disclosure control of
> the aggregated data before it is send back to the caller. I guess that this
> service should be exposed as a WPS service or is there any other type of
> service that is more appropriate if it should be consumable from other
> GIS-applications?
>
> If it should be a WPS will I be able to expose it through MapServer? If
> MapServer can do this or am I bound to use a specific programing language
> or can MapServer start an arbitrary program that dose the processing?
>
> Kind regards
>
> Petros
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] MapCache clusters

2019-11-19 Thread Travis Kirstine
I don't think multiple instances of MapCache will help for seeding, in
general most of the seeding time depends on the zoom level, with each
higher zoom level taking 4 x the time as the proceeding zoom level (e.g.
zoom 20 take 4 x the time to seed as zoom 19)  .  This can vary depending
on your source service as there may be certain map scales / zoom levels
that take longer per tile to render due to expression, labels, # of
features etc... If you were to seed two levels for each mapcache instance
you still would be waiting for the higher zoom levels to complete.   Using
multiple load balanced mapserver nodes across multiple VM may improve
things a bit however if all the VMs are hosted on the same physical server
this may be slower overall.  For seeding I have heard you can use 2x the
number of cores so you could set up a single mapcache server using -n 16
pointing at the load balanced source.

Regards



On Mon, 18 Nov 2019 at 10:47, Sebastiano Laini <
sebastiano.la...@buchanancomputing.co.uk> wrote:

> Hi All,
>
>
>
> I was wondering if is possible to dockerise my server and then use
> multiple cluster to seed the cache? I know I can use multiple processes
> with the –n and –p flag though I’m wondering there is a limit on how much
> you can really increase those number.
>
>
>
> E.g. I dockerise the server and I spawn a 8core VM with 16GB ram, I can
> use sure –p 8 or maybe 10 but still I think that will require like 60 days
> to seed the whole UK with our data, can I spawn another machine and speed
> up the process? For example another 8core VM.
>
>
>
> We have 4 caches with different style that are updated twice a year so if
> it takes me 60 days for each by the time I finish it’s already time to
> start again.
>
>
>
> I was wondering maybe I can run multiple VM and seed one or maybe 2 levels
> on each VM or if I spawn a new VM the original process will take advantage
> of the new VM?
>
> In a VM I’m going to have MapServer and MapCache and I will use a
> subdomain under a load balancer just to seed while the domain will be use
> just for the seeded cache and in the same way will be under a load balancer.
>
>
>
> Regards,
>
>
>
> Sebastiano Laini
>
> Web Developer
>
> Buchanan Computing
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache seed speed optimization

2019-11-11 Thread Travis Kirstine
I may not be unrealistic for it take mapserver to 4-6 seconds to generate
4096px image depending on the amount data being rendered and the complexity
of your styles / expressions / labels.  If your mapserver is able to
generate a 1024x1024 in under a second that is pretty good.  Like Jukka and
other suggest I would look at translating the files to shp files with
spatial indexes or postgis tables with spatial and attribute indexes if
necessary.  Preprocessing the data (simplification / prefiltering / point
thinning cluster) and using SCALETOKENs to reference different source
layers at different scales can lead to big performance boosts at the
mapserver end.

For us the biggest limiting factor has been the write blocking to sqlite
cache when seeding tiles, if you increase the number of threads / process
in mapcache seed those process will just end up waiting to write to the
cache.  You can generally figure out what the max number of processes the
cache can handle by running a seed on a test area and look at the number of
tiles seeded per second, as some point -n will have no effect which your
process are just waiting to write the cache.  I would look at using this
method to test sqlite vs disk or other backends.  The GeoTiff cache may be
promising as it appears to be non-blocking but experimental...

We use a riak cache with a riak leveldb backend which works well for us but
is a bit of a pain to manage as it difficult to delete objects so it's not
great for caches that need to be refreshed.

Finally you may want to test MapProxy as an alternative to MapCache (we use
both).  MapProxy supports a non-blocking compact cache that could solve
your inode problem

Regards









On Fri, 8 Nov 2019 at 11:48, Sebastiano Laini <
sebastiano.la...@buchanancomputing.co.uk> wrote:

> We don’t create the data, we rely on OS (ordnance survey) to supply us the
> maps files and then we publish them in our service but I assume that
> probably we will need to create some flow to improve it or download it in
> other format that is faster.
>
>
>
> Sebastiano Laini
>
> Web Developer
>
> Buchanan Computing
>
>
>
> *From:* Fawcett, David (MNIT) [mailto:david.fawc...@state.mn.us]
> *Sent:* 08 November 2019 16:41
> *To:* Sebastiano Laini ;
> 'Rahkonen Jukka (MML)' ; '
> mapserver-users@lists.osgeo.org' 
> *Subject:* RE: mapcache seed speed optimization
>
>
>
> For data formats that are slower to read, would it add fit your workflow
> to convert it to different data format before creating the tiles?
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Doubling of labels on high resolution maps

2019-10-16 Thread Travis Kirstine
There are a few options you could add to your label but I would start with

MINDISTANCE 200
PARTIALS FALSE

See
https://mapserver.org/mapfile/label.html



On Wed, 16 Oct 2019 at 10:37, Jan Hartmann  wrote:

> Hi,
>
> I'm trying to generate high resolution print maps with QGIS, based on a
> MapServer WMS layer. When displayed in the regular QGIS application with
> 72dpi, all looks fine. When using the Print Composer based on the same
> Mapfile, but with 300dpi, some labels are duplicated (not all). Some
> duplicates are clipped. The two versions can be seen here:
>
> https://maps.hisgis.nl/marken_072dpi.png
> https://maps.hisgis.nl/marken_300dpi.png
>
> Below the Mapfile.  Any idea what goes wrong here?
>
> Jan
>
> map
> name Markegrenzen
>
> web
>   metadata
> "wms_title" "Markegrenzen"
> "wms_srs" "EPSG:28992 EPSG:3857"
> "wms_extent"  "13000 301000 279000 62"
> "wms_enable_request" "*"
>   end
> end
>
> extent 13000 301000 279000 62
> units meters
> size 400 400
> resolution 300
> defresolution 72
>
>
> projection
>   "init=epsg:28992"
> end
>
> z
> layer
>   name Markegrenzen
>   status on
>   type polygon
>   connectiontype postgis
>   connection "dbname=ov options='-c search_path=horigheid,public'"
>   data " the_geom from (
> select gid,the_geom,naam from markegrenzen
> ) as foo using unique gid using srid=28992
>   "
>   labelitem "naam"
>   class
> style
> outlinecolor 255 0 0
> width 1
> end
> label
> color 255 0 0
> size 4
> end
>   end
> end
> end
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] wms servers html template output

2019-10-15 Thread Travis Kirstine
Hi all,

I'm struggling a bit with using a generic template for html getfeatureinfo
requests.  Is there a easy way to create a simple html table containing the
attribute field names and values for any layer.  I don't want to create a
separate template for each layer.  Thanks

There was some mention of this here:
http://osgeo-org.1560.x6.nabble.com/Generic-template-for-WMS-GetFeatureInfo-td4227865.html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapserver / gdal / proj5 docker image

2019-09-09 Thread Travis Kirstine
I'm wondering if anyone knows of a docker image with mapserver using gdal
compiled with proj5?

Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache: restricted extent and ruleset to limit cache area seems ineffective

2019-08-30 Thread Travis Kirstine
You can set the

empty_img

To return a blank tile.  I believe the status is still 404 - I don't
think you can control this


On Fri, 30 Aug 2019 at 15:44, Mark Volz  wrote:

> Hello,
>
>
>
> I am in the process of limiting the cached area in mapcache.  I am having
> trouble with both the restricted_extent and ruleset parameters.  I first
> started by using restricted_extent such as “LyonCC”.  That parameter seemed to work.
> However mapcache returned 404 errors for any tiles outside of the
> restricted extent.  Next I tried to use rulesets instead.  The rulesets
> seem to have no effect, and new tiles were getting generated outside of the
> visibility extent.
>
>
>
> Question 1:  When we use restricted extents on a grid should MapCache
> return a transparent tile, white tile, or a 404 error?  Can we control what
> it returns?
>
>
>
> Question 2:  Do I have my ruleset configured appropriately?
>
>
>
> 
>
> LyonCC
>
> 
>
>
>
> 
>
>  levels?-->
>
> 
>
> 435567 98889 568247 259687
>
> 
>
> 
>
> 
>
>
>
> Thank You!
>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Layer - conditional on image size

2019-07-09 Thread Travis Kirstine
 Would the scaletoken work
https://mapserver.org/development/rfc/ms-rfc-86.html#rfc86

Otherwise there is run time substitution
https://mapserver.org/cgi/runsub.html

On Mon, 8 Jul 2019 at 20:59, Ian Walberg  wrote:

> Hello,
>
>
>
> Is there a way of making layers or features conditional on the image width
> and/or height?
>
>
>
> We are trying to use the same map file for different resolution images
> generated by passing the image with and height as part of the cgi request.
>
>
>
> Thanks, Ian
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache seed slow

2019-02-22 Thread Travis Kirstine
The time you have indicated seems excessive to seed the UK. My guess is
that the current process it seeding the extents of your grid (world?) but
default.  I've seeded the province of ontario 1 million km2 z0-17 in about
2 weeks using a sqlite cache

Ramping up the -n will only bottle neck the process more (same with the -p
flag) the limiting factor is SQLite and it limitation on concurrent writes
(I use -n 4).  I've noticed that if you try to use other sqlite3 journal
modes you can degrade performance (
http://osgeo-org.1560.x6.nabble.com/mapcache-sqlite-cache-large-wal-files-and-blocked-checkpoints-when-seeding-td5377571.html).
I would just use most basic cache config as a starting point.  BTW using
SSD should increase the SQLite writes as well (if you are lucky enough to
have them)

   
  ./{tileset}.sqlite3
   

There are a few things that you could do when seeding to speed up the
process:

Use the "restricted_extent" parameter in the tileset grid to limit the
number of tiles

Example
   
 ontario_2018_wms
 sqlite
 gmaps
 mixed
 5 5
   

Use a polygon shapefile (or other ogr datasource) to limit the seeding
using the -d flag in mapcache_seed command (note the projection of the
datasource should be the same as the grid)

Use a larger metatile when seeding (-M flag override in command line).
Mapcache will "bulk" insert the resultant tiles based on the metatile -
if 5 5 mapcache will insert 25 tiles at a time if
8 8 it will do 64 (I think this is the way it works).
The limiting factor here is trying to balance this with your source WMS
performance.  I use 8,8 when seeding

Regards















On Fri, 22 Feb 2019 at 06:35, Sebastiano Laini <
sebastiano.la...@buchanancomputing.co.uk> wrote:

> Hi all,
>
>
>
> I’m trying to seed the whole UK at all zoom lv with these resolutions
>
>
>
> 280 140 70 28 14 7 6.16 2.8 1.4 0.7
>
>
>
> But after 13 days it arrives at the 5th level where before I kill the
> process it seed just 900MB on that level.
>
>
>
> This is my script
>
>
>
> su -s /bin/sh apache -c "/usr/local/bin/mapcache_seed -c
> /usr/local/src/mapcache-1.6.1/build/mapcache.xml -t bccache -g bcgrid -z
> 5,6 –n 400" 2>&1>  /var/www/vhosts/$SITE/scripts/cache_log.txt
>
>
>
> I know that in the documentation say that –n should be less or max the
> number of cpu in the server but is really slow if I put 2, so I tried with
> 100 and after 13 days that was the result so now I’m trying 400
>
>
>
> Is there something else I can use to speed up the seed? I’m using the
> SQlite cache method
>
>
>
> Should I use the -p (| –nprocesses: number of parallel processes that
> should be used to request tiles from the WMS source) Instead of the –n
> parameter?
>
>
>
> Sebastiano Laini
>
> Web Developer
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - best way to find broken or white tiles in a service?

2019-02-20 Thread Travis Kirstine
You shouldn't have any cached "broken" tiles unless your source WMS is
generating the white images (metatiles).  I believe MapCache will generate
a 404 and return a empty tile if configured.  This may be the white tiles
you are seeing.

   
   report

It can be very difficult to locate and clean up tiles from a cache, the
easiest method and in some cases the fastest is simply to create a new
cache and delete the old one.  One alternative is to use the mapcache_seed
command line tool to either -f force the creation of new tiles or use the
-mode delete option to delete the tiles from the cache.  BTW you can use a
polygon (shapefile) with mapcache_seed to only update / delete the desired
area using the -d flag.

Also if you are using a disk cache you might be using symlinks which will
allow mapcache to "reuse" blank tiles.  If this is the case you might need
to find / delete the symlinks rather than a "file"


   
   /tmp
   
   




On Tue, 19 Feb 2019 at 16:47, Mark Volz  wrote:

> Hello,
>
>
>
> On my webmap I noticed a few broken (white) tiles in a single area from my
> mapcache server.  I would like to know the best way to find broken tiles in
> my mapcache service.
>
> · Initially I was concerned that I would need to the tile number
> and folder location by using the BBOX, WIDTH, and TILE RESOLUTION from the
> request.  However, I figured out using the mapcache demo is easier to work
> with /mapcache/demo/
>
> · Would it be better just to delete any tile that is 1K or
> smaller?  These problibly are tiles that are broken, or intended to be
> blank in the first place.
>
> · What do others do to validate that the mapcache tiles have been
> built appropriately?
>
> Thanks!
>
>
>
> Sincerely,
>
> *Mark Volz, GISP*
>
> *Lyon County GIS Coordinator*
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Raster performance hints

2018-11-06 Thread Travis Kirstine
What you describe is pretty much the approach we take.  If you are using
geotiffs ensure that they are internally tiles (-co TILED=YES) and the you
are creating a shptree index on the tile index as noted in the docs.  At
some point you may want to consider creating a lower resolution mosaics of
coverages and using GROUPS and MIN/MAXSCALEDENOM to load the layers at
different scales.  Make sure to declare the layer's extent as well

Something like:

LAYER
NAME "full_res_10cm_tiles_withovr"
EXTENT 607500.00 4824000.00 654000.00 4859500.00
TYPE RASTER
PROCESSING "RESAMPLE=AVERAGE"
TILEINDEX /maps/tindex.shp
TILEITEM location
GROUP "my_photo"
MAXSCALEDENOM 1
OFFSITE 0 0 0
METADATA
"wms_extent" "607500.00 4824000.00 654000.00
4859500.00"
END
PROJECTION
"init=epsg:2958"
END
END
LAYER
NAME "resampled_2m_tiled_bigtif_withovr"
EXTENT 607500.00 4824000.00 654000.00 4859500.00
TYPE RASTER
PROCESSING "RESAMPLE=AVERAGE"
DATA /maps/2m_overall.tif
GROUP "my_photo"
MINSCALEDENOM 1
MAXSCALEDENOM 65000
OFFSITE 0 0 0
METADATA
"wms_extent" "607500.00 4824000.00 654000.00
4859500.00"
END
PROJECTION
   "init=epsg:2958"
END
END





On Tue, 6 Nov 2018 at 13:39, Ziegler Stefan  wrote:

> Hi
>
> We are using MapServer for vector data stored in a PostgreSQL/PostGIS
> database. For a new project we are planning to provide a WMS based on
> raster layers and therefore in need of some performance hints or your
> experiences.
>
> The raw data will be a lot of single GeoTIFF (aerials, hillshading,
> slopes, etc.) files, like 5'000 - 10'000 from different organizations.
> Since the originate from different organizations it's possible that they
> can have different resolutions. Conceptionally for aerials it would look
> like this:
>
> Aerial group
> |_ aerial from organization one (1000 single tiffs, resolution 10cm,
> approx 10k x 10k pixels)
> |_ aerial from organization two (600 single tiffs, resolution, 12.5 cm,
> approx 10k x 10k pixels)
> |_ aerial from organization three (3000 single tiffs, resolution, 10 cm,
> approx 10k x 10k pixels)
>
> For some hundred single GeoTIFFs we have good experience with the
> Tileindex approach and an handmade external overview that kicks in at
> smaller scale.
>
> Will this approach still work with a massive amount of single tiffs? Or
> are the better ones? What about the compression (quality vs. decompression
> speed vs. disk space?) Or would you expect a much better performance with -
> let's say - a BigTIFF for each organisation?
>
> Thanks for any hints.
>
> Best regards
> Stefan
>
> Freundliche Grüsse
>
> Stefan Ziegler
> Kantonsgeometer / Leiter Amt für Geoinformation
>
> Amt für Geoinformation
> Rötistrasse 4
> 4500 Solothurn
>
> Telefon +41 32 627 75 96
> stefan.zieg...@bd.so.ch
> http://www.so.ch
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache fastcgi

2018-10-17 Thread Travis Kirstine
My experience with SQLite is that it is significantly slower than a disk
based cache.  My guess is this is related to how mapcache structures the
transaction and inserts into the sqlitedb.  It appears that the mapcache
creates a transaction based on the  defined in the config, if the
metatile is set to 5 5, mapcache will create a transaction with 25 inserts
per process. Problems seem to arise when multiple threads / processes
attempt to concurrently seed the cache and are backlogged / waiting due to
a transaction in progress.  Disk cache appear to be only limited based on
disk io.

On Wed, 17 Oct 2018 at 08:47, Sebastiano Laini <
sebastiano.la...@buchanancomputing.co.uk> wrote:

> This is my cache setup
>
>
>
>   
>
>
> /var/www/path…./maps/cache/{tileset}/{grid}/{z}/{x}-{y}.sqlite3
>
> 1
>
> 1
>
> 1573741823
>
>   
>
>
>
>   
>
>
>
>   this is a custom grid I made up for
> an example
>
>
>
>EPSG:27700
>
>128 128
>
>0 0 70 125
>
> 70 28 14 7 6.16 2.8 1.4 0.7 0.28 0.14 0.07
>
> 
>
>
>
>   
>
> bcmaps
>
> cache_sqlite
>
> bcgrid
>
> JPEG
>
> 4 4
>
> 0
>
> 31536000
>
>   
>
>
>
>
>
> Sebastiano Laini
>
> Web Developer
>
> Buchanan Computing
>
> 227 Shepherds Bush Road London W6 7AS
>
> 020 8846 3220
>
>
>
> Web: http://www.BuchananComputing.co.uk
> 
>
> For general or urgent enquiries please write to: 
> *supp...@buchanancomputing.co.uk
> *
>
>
>
> Buchanan Computing Ltd. Registered at the above office, no. 3274424
> (England & Wales)
>
>
>
> This message is intended solely for the individual/entity to whom it is
> addressed.  It may contain confidential or legally privileged information.
> Any unauthorised disclosure or copying is prohibited and my be unlawful.
> If you have received this communication in error, please notify the sender
> immediately and delete it from your system.
>
>
>
> *From:* Sebastiano Laini
> *Sent:* 17 October 2018 13:39
> *To:* 'mapserver-users@lists.osgeo.org' 
> *Cc:* 'Rahkonen Jukka (MML)' 
> *Subject:* RE: mapcache fastcgi
>
>
>
> Hi,
>
>
>
> It appears in both ways, when I’m seeding and when is requested from a
> pre-seeded cache, today I can’t because I need to move the dev domain in
> another server but tomorrow I will pass you the link to the 2 cache so you
> can see the difference.
>
>
>
> Tonight I will let it seed the whole area.
>
>
>
> The cache is on a normal HDD, I think all out servers are 1 RPM, and
> the test was done on a brand new server so the disk is new.
>
>
>
> Sebastiano Laini
>
> Web Developer
>
> Buchanan Computing
>
> *From:* Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi
> ]
> *Sent:* 17 October 2018 13:35
> *To:* Sebastiano Laini ; '
> mapserver-users@lists.osgeo.org' 
> *Subject:* RE: mapcache fastcgi
>
>
>
> Hi,
>
>
>
> In which way does the slowness appear? Is it when seeding or when serving
> from a pre-seeded cache? Can you give metrics about the difference in speed?
>
>
>
> In this comparison the differences were rather small
> http://blog.sogeo.services/blog/2016/07/01/mapcache-disk-vs-sqlite.html
>
>
>
> Also by the documentation the speed should be only “a bit slower”
>
>
>
> The SQLite based caches are a bit slower than the disk based caches, and
> may have write-locking issues at seed time if a high number of threads all
> try to insert new tiles concurrently.
>
>
>
> You wrote that SQLite cache is very slow for you which makes me think that
> there is something sub-optimal in your installation. First thing to check
> is if the SQLite database is on a fast disk.
> If SQLite cache is slow then MBTiles cache should be slow as well but I
> would make a test to be sure.
>
>
>
> -Jukka Rahkonen-
>
>
>
>
>
> *Lähettäjä:* Sebastiano Laini [
> mailto:sebastiano.la...@buchanancomputing.co.uk
> ]
> *Lähetetty:* 17. lokakuuta 2018 15:00
> *Vastaanottaja:* 'mapserver-users@lists.osgeo.org' <
> mapserver-users@lists.osgeo.org>
> *Kopio:* Rahkonen Jukka (MML) 
> *Aihe:* RE: mapcache fastcgi
>
>
>
> Is there a way to improve the speed and match the speed of the sqLite3
> cache with the disk one?
>
>
>
> We have 80 websites connected to MapCache and when I tried the sqLite3 I
> was testing it just on one website and on a complete different server with
> nothing in it.
>
>
>
> Sebastiano Laini
>
> Web Developer
>
> Buchanan Computing
>
> *From:* Sebastiano Laini
> *Sent:* 17 October 2018 12:43
> *To:* 'mapserver-users@lists.osgeo.org' 
> *Cc:* 'Rahkonen Jukka (MML)' 
> *Subject:* RE: mapcache fastcgi
>
>
>
> Still it redirect you to that link, and btw it seems that mapcache can be
> used also as a fastCGI.
>
>
>
>
> https://mapserver.org/mapcache/install.html#cgi-fastcgi-specific-instructions
>
>
>
> Though is true that I’m reading now in the CMaker Builder section
>
>
>
> MapCache can run as a FastCGI executable. Note that the overhead of
> FastCGI 

Re: [mapserver-users] Mapcache instruction

2018-09-20 Thread Travis Kirstine
Lars,
Sorry for the side questions

Is there any performance benefit (specifically seeding) in using the
x/ycount parameters?

Thanks

On Thu, 20 Sep 2018 at 08:24,  wrote:

> I also ran into the problem of running out of i-nodes last year.
>
> Here is the configuration I have with a sqlite cache:
>
> 
> /data/mapcache/{grid}/{tileset}/{z}/{x}-{y}.sqlite3
> 1
> 1
> 1573741823
> 
>
> I guess the pragma thing is described in the documentation.
> xcount and ycount describes how much You want to store in each sqlite db
> file before it creates a new db file.
> mapcache is creating the db files automatically. So seeding a large area
> You end up with many sqlite db files that all work together.
>
> This has worked really good for our use case.
>
> Lars Schylberg
>
>
> September 20, 2018 1:24 PM, "Yves Jacolin"  >
> wrote:
>
> Here a short tuto from my personal notes:
> 1. create a cache entry in your mapcache file
>
>   
> /var/www/osm_google.db 
>
> 2. create a empty sqlite file
> - run sqlite3
> - run this commande inside sqlite3: ".save filename.db" (without ")
> 3. use this cache in your settings
> You don't need MySQL or PostgreSQL, only sqlite3 and its dependencies.
> Path used in my example for cache block are for Unix like system, you
> should adapt it for Windows : c:/
> Y.
> Le jeu. 20 sept. 2018 à 13:07, Sebastiano Laini <
> sebastiano.la...@buchanancomputing.co.uk> a écrit :
>
> Hi all,
>
> We have a MapCache setup with “disk_cache” but we are running out of
> Inodes when I try to seed the whole UK with projection 27700.
>
> I was thinking to propose to my supervisor to use the “SQLite Caches” but
> I don’t know how it works. Can someone guide me through the process of
> setup MapCache with this type of cache? And if I need some dependency, we
> use PostgreSQL in our server so I assume I need to install also MySQL.
>
> I’ve already read the documentation but still I have doubt about the db
> part, how to create the db and locate it. I never use SQLite, just
> PostgreSQL.
>
> Regards;
>
> Sebastiano.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> --
> Training and support manager
> Camptocamp
> Bâtiment le Dauphin - 1er étage
> 18 rue du Lac Saint André
> 73382 Le Bourget-du Lac
>
> Tel (France) : +33 4 58 48 20 43
> Tel (Switzerland) : +41 21 619 10 43
> Mob. : +33 6 18 75 42 21
>
> email : yves.jaco...@camptocamp.com
> http://www.camptocamp.com
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache - sqlite cache large wal files and blocked checkpoints when seeding

2018-09-11 Thread Travis Kirstine
I've set up a sqlite3 cache using addition pragma statements to set journal
mode to WAL and journal mode to normal.

   
  1
  wal
  ./{tileset}.sqlite3
   

These setting "should" increase performance however I've noticed that when
seeding the cache the wal file is growing excessively over time (+50GB)
which would result in slower reads.  I believe this is being caused by
seeding the cache using multiple threads (-n 4) causing checkpoint
starvation as defined here (https://www.sqlite.org/wal.html) as:

"
Checkpoint starvation. A checkpoint is only able to run to completion, and
reset the WAL file, if there are no other database connections using the
WAL file. If another connection has a read transaction open, then the
checkpoint cannot reset the WAL file because doing so might delete content
out from under the reader. The checkpoint will do as much work as it can
without upsetting the reader, but it cannot run to completion. The
checkpoint will start up again where it left off after the next write
transaction. This repeats until some checkpoint is able to complete.

However, if a database has many concurrent overlapping readers and there is
always at least one active reader, then no checkpoints will be able to
complete and hence the WAL file will grow without bound
"
This is verified by manually attempting to force the checkpoint in the
command line while the seeder is running :
sqlite> PRAGMA wal_checkpoint(TRUNCATE);
1|-1|-1
The first column is usually 0 but will be 1 if a RESTART or FULL or
TRUNCATE checkpoint was blocked from completing, for example because
another thread or process was actively using the database.

.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] scaletoken data or tileindex

2018-08-28 Thread Travis Kirstine
I'm trying to use the scaletoken with a raster layer that is represented by
a combination of full resolution tiles (tileindex) and a stack of merged
lower resolution geotiffs.  Is is possible to use the scaletoken to use a
combination of a TILEINDEX and DATA to call the source data?   From the
error log it appears to expect one or the other (DATA or TILEINDEX)

 LAYER
NAME spot_z16
METADATA
wms_title "Zone 16 Spot"
wms_extent "275997 5109997 732003 6304003"
END
TYPE RASTER
PROCESSING "RESAMPLE=BILINEAR"
OFFSITE 0 0 0
PROJECTION
"init=epsg:26916"
END
SCALETOKEN
NAME "%pri%"
VALUES
"0" "spot_z16_rgb_2km_tindex"
"10" "z16_rgb_24m_mosaic"
"80" "z16_rgb_192m_mosaic"
END
END
TILEINDEX "/maps/spot_tindex/%pri%"
DATA "/maps/spot_overalls/%pri%.tif"
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] rotate and fit based on polygon

2017-09-08 Thread Travis Kirstine
Thanks Carlos, we've employed the method you've suggested already but not
getting the results we are looking for, perhaps the linked image will help
illustrate my problem

https://drive.google.com/file/d/0BwWJtNuZjvCUR1AtVEZVLTdCbk0/view?usp=sharing



On 8 September 2017 at 16:25, Carlos Ruiz <boolean10...@yahoo.com> wrote:

> Travis,
>
> Do you have the polygons in PostGIS ? Maybe you can get the extent by
> using st_extent(geom) and retrieve it on PHP/Python to set the map extent.
> You could also get a margin by multiplying extent b 1.1 (10%).
>
>
>
> On Thursday, September 7, 2017, 1:27:06 PM CDT, Travis Kirstine <
> traviskirst...@gmail.com> wrote:
>
>
> I have a bunch of polygons that represent 8.5 x 11 printed map sheets.
> I'd like to produce images for each sheet that best fits the polygon within
> the outputted image.  We've tried using mapscript by setting the map extent
> based on the bbox of the source polygon and rotation but results aren't
> great depending on the orientation of the source polygon.  Is there a way
> to set the "extent" based on a polygon?
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] rotate and fit based on polygon

2017-09-07 Thread Travis Kirstine
I have a bunch of polygons that represent 8.5 x 11 printed map sheets.  I'd
like to produce images for each sheet that best fits the polygon within the
outputted image.  We've tried using mapscript by setting the map extent
based on the bbox of the source polygon and rotation but results aren't
great depending on the orientation of the source polygon.  Is there a way
to set the "extent" based on a polygon?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache geopackage

2017-06-01 Thread Travis Kirstine
Would it be possible to use a geopackage raster table as pre-seeded cache
using a sqlite custom schema?  Something like this:



   gmaps
   /tmp/sqlitefile.db
   
 select 1 from user_data_pyramid tile_column=:x and tile_row=:y
and zoom_level=:z
 select tile_data from user_data_pyramid where tile_column=:x and
tile_row=:y and zoom_level=:z
   



   
  
 GoogleMapsCompatible

 
urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible
  
  -20037508.3427892480 -20037508.3427892480 20037508.3427892480
20037508.3427892480
  EPSG:3857
  EPSG:900913
  m
  256 256
  156543.0339280410 78271.51696402048 39135.75848201023
19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640
1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525
76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032
4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395
0.29858214173896975 0.149291070869484875 0.0746455354347424375
   


Where the geopackage was created with GDAL

$ gdal_translate -of GPKG byte.tif byte.gpkg -co
RASTER_TABLE=user_data_pyramid -co TILING_SCHEME=GoogleMapsCompatible


Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] calculating min / max scaledenom based on projection

2017-05-09 Thread Travis Kirstine
Hi all,

We've been using mapserver as a WMS server and need to determine (outside
of mapserver) if a requested image contains layers defined in the getmap
request based on the layers min/maxscaledenom setting in the mapfile.  If a
request to the WMS is in the MAP SRS then we simply calculate the image
scale using a method like the one used in the mapscale.c msCalculateScale
and compare it to the MaxScaleDenom defined in the GetCapabilities and
everything works as expected.

The issue we have is that if the WMS GetMap SRS projection does not match
the native projection of the layer the maxscaledenom will vary.  For
example if the layers is in web mercator projection and has a maxscaledenom
of 25000 but the request is made in EPSG:4326 geographic the layer will not
be drawn above a scale of ~ 1:16000 in QGIS.

How can I calculate what 25000 equals for other SRSs?

How does mapserver calculate the min/max scaledenom for various projections
/ units?

Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache error -1 on seeding transfer

2016-08-30 Thread Travis Kirstine
When running mapcache in transfer mode I will sometimes get a failed transfer 
like this:

Retry 1 in riak_has_tile for tile gmaps-20-293584-667321 from cache riak due to 
error -1

What is error -1?
Is it possible to restart the transfer from the last failed tile?

The logging (-L) of the failed transfer doesn't appear to work for this type of 
failure



Travis Kirstine
Project Supervisor
140 Renfrew Drive, Suite 100
Markham, Ontario L3R 6B3 Canada
[cid:image003.png@01D202D8.298354F0]<http://www.firstbasesolutions.com/>
T: 905.477.3600 Ext 267 | C: 647

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache question

2016-08-25 Thread Travis Kirstine
Unrelated question: Can mapcache handle multiple srs in a WMS service (out)? 

-Original Message-
From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: August-25-16 8:56 AM
To: Travis Kirstine <tkirst...@firstbasesolutions.com>
Cc: Lime, Steve D (MNIT) <steve.l...@state.mn.us>; Jukka Sirviö 
<jukka.sir...@mipro.fi>; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] mapcache question

The reprojection is done inside MapCache, i.e. as a client of the original 
tiles. You don't need an additional WMS :)

--
thomas

On 25 August 2016 at 14:50, Travis Kirstine <tkirst...@firstbasesolutions.com> 
wrote:
> I believe that there still would be an issue as the reprojection from X to Y, 
> the reprojection would need to be done on the source WMTS side.  I guess you 
> could proxy the source WMTS using mapserver with the gdal mini driver  and 
> reproject to create a WMS to feed mapcache?
>
> -Original Message-
> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Sent: August-25-16 3:55 AM
> To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>
> Cc: Travis Kirstine <tkirst...@firstbasesolutions.com>; Jukka Sirviö 
> <jukka.sir...@mipro.fi>; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> Jukka,
> in master, there is also support for any GDAL dataset as a mapcache source 
> (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS 
> minidriver you'll be able to reproject/store third party tiles on the fly.
>
> --
> thomas
>
> On 24 August 2016 at 21:58, Lime, Steve D (MNIT) <steve.l...@state.mn.us> 
> wrote:
>> I would think reprojection of individual tiles into another set of tiles 
>> that would stitch back together without artifacts would be difficult. I 
>> thought MapCache did support native MapServer mode=map as a source which 
>> could useful if GDAL supports WMTS and you could create a corresponding 
>> MapServer layer.
>>
>> -Original Message-
>> From: mapserver-users 
>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Travis Kirstine
>> Sent: Wednesday, August 24, 2016 1:14 PM
>> To: Jukka Sirviö <jukka.sir...@mipro.fi>; 
>> mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>>
>> According to the docs mapcache only support WMS as input.
>>
>> " A source is a service mod-mapcache can query to obtain image data. This is 
>> typically a WMS server accessible by a URL. (There are currently no sources 
>> other than WMS implemented, though others may be added later if the need 
>> arises)"
>>
>> If this is still true then your proposed chain will not work.
>>
>> MapProxy will support a tiled source and I know TMS works  (not sure 
>> about WMTS) and handle the reprojection
>>
>> Regards
>>
>> -Original Message-
>> From: mapserver-users 
>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Jukka Sirviö
>> Sent: August-24-16 10:09 AM
>> To: mapserver-users@lists.osgeo.org
>> Subject: [mapserver-users] mapcache question
>>
>>
>> Hello,
>> I would like to put a mapcache to be in the middle, in the following chain:
>>
>> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
>> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
>> v2, Qgis), also in crs y
>>
>> Mapcache was compiled, and is working a-ok with demo data. But I have 
>> trouble to configure mapcache to work as a part in the above chain. As 
>> planned, Mapcache should work as a WMTS client down towards target 1 and 
>> WMTS server up against target 3, ie. kind of a proxy with crs reprojection 
>> and basic auth. Anyway, does this make any sense at all, or is the draft 
>> totally irrational?
>>
>> If the draft is reasonable, could you give some hints on how to proceed 
>> related to configuration with mapcache.xml?
>>
>>
>>
>> -Jukka
>>
>> 
>>
>> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
>> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea 
>> vastaanottaja, ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa 
>> viesti välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai 
>> muu käyttö tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti 
>> kielletty.
>>
>> This message (including any attachments) may contain confid

Re: [mapserver-users] mapcache question

2016-08-25 Thread Travis Kirstine
I believe that there still would be an issue as the reprojection from X to Y, 
the reprojection would need to be done on the source WMTS side.  I guess you 
could proxy the source WMTS using mapserver with the gdal mini driver  and 
reproject to create a WMS to feed mapcache?  

-Original Message-
From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: August-25-16 3:55 AM
To: Lime, Steve D (MNIT) <steve.l...@state.mn.us>
Cc: Travis Kirstine <tkirst...@firstbasesolutions.com>; Jukka Sirviö 
<jukka.sir...@mipro.fi>; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] mapcache question

Jukka,
in master, there is also support for any GDAL dataset as a mapcache source 
(i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS 
minidriver you'll be able to reproject/store third party tiles on the fly.

--
thomas

On 24 August 2016 at 21:58, Lime, Steve D (MNIT) <steve.l...@state.mn.us> wrote:
> I would think reprojection of individual tiles into another set of tiles that 
> would stitch back together without artifacts would be difficult. I thought 
> MapCache did support native MapServer mode=map as a source which could useful 
> if GDAL supports WMTS and you could create a corresponding MapServer layer.
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
> On Behalf Of Travis Kirstine
> Sent: Wednesday, August 24, 2016 1:14 PM
> To: Jukka Sirviö <jukka.sir...@mipro.fi>; 
> mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> Jukka,
>
> According to the docs mapcache only support WMS as input.
>
> " A source is a service mod-mapcache can query to obtain image data. This is 
> typically a WMS server accessible by a URL. (There are currently no sources 
> other than WMS implemented, though others may be added later if the need 
> arises)"
>
> If this is still true then your proposed chain will not work.
>
> MapProxy will support a tiled source and I know TMS works  (not sure 
> about WMTS) and handle the reprojection
>
> Regards
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
> On Behalf Of Jukka Sirviö
> Sent: August-24-16 10:09 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] mapcache question
>
>
> Hello,
> I would like to put a mapcache to be in the middle, in the following chain:
>
> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
> v2, Qgis), also in crs y
>
> Mapcache was compiled, and is working a-ok with demo data. But I have trouble 
> to configure mapcache to work as a part in the above chain. As planned, 
> Mapcache should work as a WMTS client down towards target 1 and WMTS server 
> up against target 3, ie. kind of a proxy with crs reprojection and basic 
> auth. Anyway, does this make any sense at all, or is the draft totally 
> irrational?
>
> If the draft is reasonable, could you give some hints on how to proceed 
> related to configuration with mapcache.xml?
>
>
>
> -Jukka
>
> 
>
> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea 
> vastaanottaja, ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa 
> viesti välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai 
> muu käyttö tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti 
> kielletty.
>
> This message (including any attachments) may contain confidential information 
> intended for the person or entity to which it is addressed. If you are not 
> the intended recipient, notify the sender and delete this message 
> immediately. Notice that disclosing, copying, distributing or any other use 
> of the message and its information, or taking any action based on it, is 
> strictly prohibited.
>
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache question

2016-08-24 Thread Travis Kirstine
Jukka,

According to the docs mapcache only support WMS as input.

" A source is a service mod-mapcache can query to obtain image data. This is 
typically a WMS server accessible by a URL. (There are currently no sources 
other than WMS implemented, though others may be added later if the need 
arises)"

If this is still true then your proposed chain will not work.

MapProxy will support a tiled source and I know TMS works  (not sure about 
WMTS) and handle the reprojection 

Regards

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Jukka Sirviö
Sent: August-24-16 10:09 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapcache question


Hello,
I would like to put a mapcache to be in the middle, in the following chain:

1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers v2, 
Qgis), also in crs y

Mapcache was compiled, and is working a-ok with demo data. But I have trouble 
to configure mapcache to work as a part in the above chain. As planned, 
Mapcache should work as a WMTS client down towards target 1 and WMTS server up 
against target 3, ie. kind of a proxy with crs reprojection and basic auth. 
Anyway, does this make any sense at all, or is the draft totally irrational?

If the draft is reasonable, could you give some hints on how to proceed related 
to configuration with mapcache.xml?



-Jukka



Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista tietoa, 
joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, 
ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa viesti 
välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu käyttö 
tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty.

This message (including any attachments) may contain confidential information 
intended for the person or entity to which it is addressed. If you are not the 
intended recipient, notify the sender and delete this message immediately. 
Notice that disclosing, copying, distributing or any other use of the message 
and its information, or taking any action based on it, is strictly prohibited.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] ogrinfo : couldn't fetch requested layer

2016-07-19 Thread Travis Kirstine
Are you trying to read a CSV file?  You shouldn’t need a odbc connection to do 
that.  What does your vrt file look like?

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of mathias cunault
Sent: July-19-16 7:19 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] ogrinfo : couldn't fetch requested layer

Hello,

I have created an odbc connexion named basol to use csv and vrt files in 
Mapserver. Ogrinfo can open basol (using driver ODBC successfully)

`ogrinfo ODBC:@basol test.csv

but says "FAILURE : Couldn't fetch requested layer test.csv"

Is it a problem with system environnment variables ? Does it mean that 
mapserver will not be able to draw the layer later ?

Thanks
Apache version 2.2.22
PHP version 5.4.3
MapServer 6.0.3 CGI and MapScript (CSharp, Java, PHP, Python)
GDAL 1.9.1
mapserver utilities
gdal/ogr utilities
windows



--

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache: Can't get transparency from WMS layer

2016-07-18 Thread Travis Kirstine
In your WMS requests logs (i.e.  Apache) does mapcache make a request for a 
transparent image and is the image returned transparent,   if you copy the 
mapcache generated request into your browser or fetch the wms via curl is the 
image transparent?



-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of prototron
Sent: July-17-16 11:45 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Mapcache: Can't get transparency from WMS layer

Hello,

I have a Mapserver up and running, sharing WMS layers. Those layers are 
rendered with transparency, but not with Mapcache. 

I can add the layers in QGIS, and the caching works. But not the transparency.

I tried to add  tag into the  tag of the source. No 
reference to JPEG format, only PNG.

Here is my config file: http://pastebin.com/gHx0eiw3





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-Can-t-get-transparency-from-WMS-layer-tp5276797.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - merge multiple source in one tileset?

2016-06-22 Thread Travis Kirstine
The danger with this method is that under high loads you can exceed the 
maxclients in apache resulting in a deadlock


From: mapserver-users <mapserver-users-boun...@lists.osgeo.org> on behalf of 
Michael Schulz <mandsch...@googlemail.com>
Sent: Wednesday, June 22, 2016 3:05 PM
To: Travis Kirstine
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapcache - merge multiple source in one tileset?

Hi,

thanks for this idea. If I understand correctly, this would mean creating two 
source tilesets and then generate a third one, where I call mapcache wms 
requesting these two layers.

I'll give that a try. Cheers, Michael


2016-06-22 20:34 GMT+02:00 Travis Kirstine 
<traviskirst...@gmail.com<mailto:traviskirst...@gmail.com>>:
This is done configuring mapcache as a WMS source and calling the layers you 
would like to merge.


  
 
mixed
foo,bar
true
 
  
  
 http://localhost/mapcache/service
  



  mosaic_wms
  memcache
  gmaps
  mixed
  604800


In this example foo and bar are the individual tilesets to be merged


On 16 June 2016 at 09:10, Michael Schulz 
<mandsch...@googlemail.com<mailto:mandsch...@googlemail.com>> wrote:
Dear Mapcachers,

the documentation of mapcache mentions the possibility to merge "multiple tiles 
into a single image". I wonder if this means a vertical merging (stacking) of 
tiles into one output tile?

This would be exactly what I'm looking for, but so far I couldn't find a hint 
how this could be done. It would require, I guess, to use multiple sources for 
one tileset. Is that possible?

Thanks, Michael

--
---
Michael Schulz



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
---
Michael Schulz


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - merge multiple source in one tileset?

2016-06-22 Thread Travis Kirstine
This is done configuring mapcache as a WMS source and calling the layers
you would like to merge.


  
 
mixed
foo,bar
true
 
  
  
 http://localhost/mapcache/service
  



  mosaic_wms
  memcache
  gmaps
  mixed
  604800


In this example foo and bar are the individual tilesets to be merged


On 16 June 2016 at 09:10, Michael Schulz  wrote:

> Dear Mapcachers,
>
> the documentation of mapcache mentions the possibility to merge "multiple
> tiles into a single image". I wonder if this means a vertical merging
> (stacking) of tiles into one output tile?
>
> This would be exactly what I'm looking for, but so far I couldn't find a
> hint how this could be done. It would require, I guess, to use multiple
> sources for one tileset. Is that possible?
>
> Thanks, Michael
>
> --
> ---
> Michael Schulz
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - optimum format for orthophotos?

2015-10-14 Thread Travis Kirstine
This is worth a read as well for info on how to optimize your images for
mapserver.

http://mapserver.org/uk/optimization/raster.html





On Wed, Oct 14, 2015 at 6:56 AM, thomas bonfort <thomas.bonf...@gmail.com>
wrote:

> it depends on many factors... large metatiles are more efficient as
> they usually impose less load on the WMS server, but can cause a
> significant delay for the end user if you are populating your cache on
> demand.
> If you're preseeding everything, use large power of 2 metatiles (4x4,
> 8x8,...). If you haven't pre-seeded, use smaller ones, how small
> depends on the experience you want to provide your user if the tile
> isn't already in the cache (2x2, 4x4).
> If you're rendering raster data only, you don't need a metabuffer.
>
> On 13 October 2015 at 22:15, Robert Sanson
> <robert.san...@asurequality.com> wrote:
> > Thanks Thomas. I do not have labels, so would you still recommend
> metatiles for performance reasons? Would you suggest 3 3 or 5 5 for a
> Mapserver WMS backend?
> >
> > 3 3
> >
> > Robert
> >
> > -Original Message-
> > From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> > Sent: Tuesday, 13 October 2015 8:07 p.m.
> > To: Robert Sanson <robert.san...@asurequality.com>
> > Cc: mapserver-users@lists.osgeo.org
> > Subject: Re: [mapserver-users] Mapcache - optimum format for orthophotos?
> >
> > in the vast majority of the cases, you'll want to have mapcache use
> metatiles, be serving PNGs from your WMS server (image/png
> in your mapcache ), and storing your tiles as JPG
> (JPG in your ). If you need to preserve
> transparency on your orthophoto edges, you can choose to store the tiles as
> a"mixed" format instead of pure JPG.
> >
> > --
> > thomas
> >
> > On 12 October 2015 at 22:13, Robert Sanson <
> robert.san...@asurequality.com> wrote:
> >> Hi
> >>
> >> What is the recommended format for serving and storing true colour
> orthophotos via Mapcache if we wish to preserve maximum detail? The source
> data are uncompressed GeoTiffs served as WMS by Mapserver.
> >>
> >> Many thanks,
> >>
> >> Robert Sanson
> >> ___
> >> mapserver-users mailing list
> >> mapserver-users@lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
[image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *647‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] riak make error

2015-10-06 Thread Travis Kirstine
Running into issues installing mapcache 1.4 with riak

The cmake runs OK but I receive this error on the make


In file included from /usr/local/include/riack.h:21,
 from /opt/mapcache/include/mapcache.h:75,
 from /opt/mapcache/lib/hmac-sha.c:34:
/usr/local/include/riack_defines.h:20:18: error: ints.h: No such file or
directory
In file included from /opt/mapcache/lib/hmac-sha.c:34:
/opt/mapcache/include/mapcache.h:706: error: expected
specifier-qualifier-list before ‘RIACK_STRING’
make[2]: *** [CMakeFiles/mapcache.dir/lib/hmac-sha.c.o] Error 1
make[1]: *** [CMakeFiles/mapcache.dir/all] Error 2


Any Ideas?

-- 
[image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *647‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache riak caches

2015-09-28 Thread Travis Kirstine
Has anyone had experience with riak caches that they could share?
Does is support mixed caches
How does it perform under load, can it handle concurrent writes

Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache wms supported srs

2015-09-28 Thread Travis Kirstine
Is it possible to support wms srs for layers that do not have a matching
srs grid configured.  For example can I support GetMap requests for
SRS=EPSG:26917 when I only have a "Google Map Compatible" grid configured
(3857)
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Errors making MapCache with memcache

2015-09-23 Thread Travis Kirstine
I'm running into some issues running the cmake using memcache on mint
(ubuntu).

I'm using apr-utll version 1.5


In file included from /usr/include/apr-1.0/apr_memcache.h:28:0,
 from
/home/kt01/mapcache/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:2:
/usr/include/apr-1.0/apr.h:358:1: error: unknown type name ‘off64_t’
 typedef  off64_t   apr_off_t;
 ^
make[1]: ***
[CMakeFiles/cmTryCompileExec22862269.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory `/home/kt01/mapcache/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec22862269/fast] Error 2


-- 
[image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *647‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Multiple MapCache configuration files

2015-08-24 Thread Travis Kirstine
You can create multiple aliases in apache

IfModule mapcache_module
   Directory /path/to/mapcache
  Order Allow,Deny
  Allow from all
   /Directory
   MapCacheAlias /mapcache_1 /path/to/mapcache_1.xml
   MapCacheAlias /mapcache_2 /path/to/mapcache_2.xml
   MapCacheAlias /mapcache_3 /path/to/mapcache_3.xml
/IfModule


On Mon, Aug 24, 2015 at 8:51 AM, geographika geograph...@gmail.com wrote:

 Hi,

 As per the configuration guide I have a single xml configuration file for
 all MapCache layers. This is set in httpd.conf (I'm using ms4w, and running
 on a Windows server):

 IfModule mapcache_module
Directory /ms4w/apps/mapcache/
   Order Allow,Deny
   Allow from all
/Directory
MapCacheAlias /mapcache C:/ms4w/apps/mapcache/mapcache.xml
 /IfModule

 However I'm using MapCache on a development server and hosting several
 different applications. I create the xml file dynamically for each
 application, however with this approach I either have to change the above
 path and restart Apache, or merge all the xml files together to a single
 file.

 Is there anyway to change which xml file is used using a querystring, or
 is there any other suggested approach to handling multiple mapcache.xml
 files?

 Regards,

 Seth

 --
 web: http://geographika.co.uk
 twitter: @geographika



 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 
[image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache wms assembly

2015-07-20 Thread Travis Kirstine
Does mapcache manage the number of internal concurrent request when
assembling layers to ensure MaxClients is not exceeded?

-- 
  [image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] memcache and mapcache

2015-04-21 Thread Travis Kirstine
I have a issue with memcache and mapcache.

[root@wmts2 mapcache]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 1058 of /etc/httpd/conf/httpd.conf:
failed to add cache memcache: memcache support is not available on this
build
   [FAILED]


Any ideas??




-- 
  [image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] memcache and mapcache

2015-04-21 Thread Travis Kirstine
running

# cmake -DWITH_MEMCACHE=1
# make
# make install
# ldconfig

fixed the issue

Thanks!!




On Tue, Apr 21, 2015 at 12:25 PM, thomas bonfort thomas.bonf...@gmail.com
wrote:

 Travis,
 that means the cmake configuration step didn't pick up the apr-memcache
 headers, either because they are not installed, or because you did not
 specify -DWITH_MEMCACHE=1

 --
 thomas

 On 21 April 2015 at 16:37, Travis Kirstine 
 tkirst...@firstbasesolutions.com wrote:

 I have a issue with memcache and mapcache.

 [root@wmts2 mapcache]# /etc/init.d/httpd start
 Starting httpd: Syntax error on line 1058 of /etc/httpd/conf/httpd.conf:
 failed to add cache memcache: memcache support is not available on this
 build
[FAILED]


 Any ideas??




 --
   [image: FBS Logo]

 *Travis Kirstine*, Web Development Supervisor
 *t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
 tkirst...@firstbasesolution.com

 *First Base Solutions Inc.*
 140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
 *t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 
  [image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] memcache and mapcache

2015-04-21 Thread Travis Kirstine
I just installed memcached with apr-utils using yum (centos 6.5) and it
appears to be working when I connect via telnet


cat  /etc/sysconfig/memcached
PORT=11211
USER=memcached
MAXCONN=4096
CACHESIZE=5120
OPTIONS=


I haven't modified the httpd.conf for memcache in any way, should I?

Mapcache config:


   cache name=memcache type=memcache
  server
 hostlocalhost/host
 port11211/port
  /server
   /cache









On Tue, Apr 21, 2015 at 11:05 AM, Alex Mandel tech_...@wildintellect.com
wrote:

 On 04/21/2015 07:37 AM, Travis Kirstine wrote:
  I have a issue with memcache and mapcache.
 
  [root@wmts2 mapcache]# /etc/init.d/httpd start
  Starting httpd: Syntax error on line 1058 of /etc/httpd/conf/httpd.conf:
  failed to add cache memcache: memcache support is not available on this
  build
 [FAILED]
 
 
  Any ideas??
 
 

 What does your memcache configuration in httpd.conf look like. How did
 you install memcache?

 -Alex




-- 
  [image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache Question

2014-10-01 Thread Travis Kirstine
Tim,

MapCache Is simply a tiling server.  It will take images from a source and
store them in a cache.  These tiles are exposed as services to clients -
WMTS, WMS, TMS etc...  MapServer on the other hand will read source data
(GIS files / database) and render images based on rules defined in the
mapfile.  These images are used as the source for MapCache.

On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman tnas...@rollingleaf.com wrote:

 I have read through the Mapcache documentation but I feel like I am
 missing some basic elements to how it works.

  I am using Mapcache to display a mbtile that I have created. Now from
 what I understand, my mapcache .xml will list out the parameters of the
 mbtile and then I add a layer within my mapfile referencing the .xml which
 I should then be able to to use as WMTS using openlayers. I just haven't
 grasped how mapcache and mapserv work together so any clarification would
 be helpful. Thanks for your time.

 --
 Timothy Nasman
 Data Analyst | Programmer
 Rolling Leaf Inc.
 [V] : 910.274.1436
 [E] : tnas...@rollingleaf.com jo...@rollingleaf.com


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 
  [image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] MapCache inverted Y values

2014-06-25 Thread Travis Kirstine
I just configured mapcache using a grid using 512 512 size.  Everything
seems OK however when I view the resultant tilesets in the demo map viewer
they have a inverted Y value, the latitudes are negative values when they
should be positive.  Do I need to create a custom cache to handle tile
sizes other that 256?


   grid name=gmaps_512
  extent-20037508.3427892480 -20037508.3427892480 20037508.3427892480
20037508.3427892480/extent
  srsEPSG:3857/srs
  srsaliasEPSG:900913/srsalias
  unitsm/units
  size512 512/size
  resolutions156543.0339280410 78271.51696402048 39135.75848201023
19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640
1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525
76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032
4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395
0.29858214173896975 0.149291070869484875 0.0746455354347424375/resolutions
   /grid


   cache name=disk type=disk
  base/opt/mapcache/512_cache/base
  creation_retry10/creation_retry
  symlink_blank/
   /cache



  tileset name=default_512
sourcedefault_wms/source
cachedisk/cache
gridgmaps_512/grid
formatmixed/format
metatile2 2/metatile
metabuffer10/metabuffer
  /tileset

  source name=default_wms type=wms
getmapparams
formatimage/png/format
layersdefault/layers
transparenttrue/transparent
/params/getmap
httpurl
http://wmts2.firstbasesolutions.com/cgi-bin/mapserver_wms_fcgi/url/http
  /source






-- 

*Travis Kirstine*
*First Base Solutions I**nc*.
tkirst...@firstbasesolutions.com

140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3
p. 905-477-3600 ext. 301 | m. 647-534-4798
http://www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] TileIndex - accuracy and truncation ?

2014-06-12 Thread Travis Kirstine
Could it also be the resampling of the image and or an issue with the PNG
format?  I would try tiled geotiffs.


On Thu, Jun 12, 2014 at 5:47 PM, Lime, Steve D (MNIT) 
steve.l...@state.mn.us wrote:

  The world files are read internally by GDAL, not MapServer. I wonder if
 there’s a way to test this just using GDAL and take MapServer out of the
 equation completely. Is there any projection being done? That could also be
 a source of slivers. Is it possible to generate the tiles with just a bit
 of overlap?



 Steve



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Lars I. Nielsen
 *Sent:* Thursday, June 12, 2014 9:02 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] TileIndex - accuracy and truncation ?



 Hi,



 For performance reasons, I've (used FME to) split a large PNG into 450
 small tiles, serving them with a Mapserver tileindex as a WMS service to a
 web solution.



 Howeever, white lines appear between some of the tile rows (not all) at
 some scales (not all).



 I've looked deeper into the WLD files for the individual tiles, and found
 that the calculations are accurate to 1/10 of a nanometer. At least if one
 uses all 10 decimals.



 Tiles are 2254 pixels high, and (as per the WLDs below) 6138899.3169212583
 - 0.0204375000 * 2254 = 6138853.2507962583 (almost equal to
 6138853.2507962584)



 Which leads me to suspect that some sort of truncation goes on, yielding
 some sort of rounding error.



 Do anyone know whether the tileindex calculations truncates any of the
 values in the WLD files ? And if so, by how much ?



 Cheers.



 --



 A typical map picture with a white line can be seen via this link:




 http://hvmgo01.hvenegaard.dk/mswms/mapserv.exe?map=odensekkgd_wms.mapLAYERS=ASSISTENSTRANSPARENT=trueSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=FORMAT=image/pngSRS=epsg:25832BBOX=586609.80952408,6138781.1015875,586686.025,6138857.3142859WIDTH=256HEIGHT=256

 Here's the WLD of the two tiles displayed in the picture:



 Upper tile WLD:

 0.0204375000

 0.00

 0.00

 -0.0204375000

 586620.6934394070

 6138899.3169212583



 Lower tile WLD:

 0.0204375000

 0.00

 0.00

 -0.0204375000

 586620.6934394070

 6138853.2507962584



 --



 Ps! As I wrote previously, I'm using FME to create the tiles. So I have
 little control over the actual coordinate and pixel values, and only
 specify the number of tiles I need. So manual truncation is not really a
 viable option.





 Kind regards / Med venlig hilsen
 Lars I. Nielsen
 

 Landinspektør, Senior GIS Programmør og Konsulent
 Hvenegaard Landinspektører A/S
 Rugaardsvej 55, DK-5000 Odense C
 Denmark
 Tel. +45 6313 5050
 http://www.hvenegaard.dk



 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




-- 

*Travis Kirstine*
*First Base Solutions I**nc*.
tkirst...@firstbasesolutions.com

140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3
p. 905-477-3600 ext. 301 | m. 647-534-4798
http://www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] WMS/WFS set-up and query time

2014-06-09 Thread Travis Kirstine
I've been looking at my error log for a WMS server I have up and running
and noticed that the WMS/WFS set-up and query made up the majority of the
request time.  What is the setup and query and is there any way to decrease
this?


[Mon Jun  9 10:49:13 2014].911007 CGI Request 1 on process 6228
[Mon Jun  9 10:49:13 2014].916813 msDrawMap(): rendering using outputformat
named png (AGG/PNG).
[Mon Jun  9 10:49:18 2014].747371 msDrawMap(): WMS/WFS set-up and query,
4.831s
[Mon Jun  9 10:49:18 2014].856602 msDrawMap(): Layer 0 (processed_p), 0.109s
[Mon Jun  9 10:49:18 2014].859903 msDrawMap(): Layer 1 (Ontario), 0.003s
[Mon Jun  9 10:49:18 2014].864408 msDrawRasterLayerLow(fbs_latest):
entering.
[Mon Jun  9 10:49:18 2014].890107 msDrawMap(): Layer 2 (fbs_latest), 0.030s
[Mon Jun  9 10:49:18 2014].927472 msDrawMap(): Layer 3 (municipality),
0.037s
[Mon Jun  9 10:49:18 2014].945933 msDrawMap(): Layer 5 (woodedarea_12),
0.018s
[Mon Jun  9 10:49:18 2014].957586 msDrawMap(): Layer 6 (wetland_swamp),
0.012s
[Mon Jun  9 10:49:18 2014].967636 msDrawMap(): Layer 7 (wetland_marsh),
0.010s
[Mon Jun  9 10:49:18 2014].974653 msDrawMap(): Layer 8 (wetland_bog), 0.007s
[Mon Jun  9 10:49:18 2014].981668 msDrawMap(): Layer 9 (wetland_fen), 0.007s
[Mon Jun  9 10:49:18 2014].989448 msDrawMap(): Layer 10
(wetland_openwater), 0.008s
[Mon Jun  9 10:49:18 2014].997182 msDrawMap(): Layer 11 (wetland_unknown),
0.008s
[Mon Jun  9 10:49:19 2014].7441 msDrawMap(): Layer 13 (lotfabric_13), 0.010s
[Mon Jun  9 10:49:19 2014].404273 msDrawMap(): Layer 16 (ohnwbdy_11), 0.397s
[Mon Jun  9 10:49:19 2014].408186 msDrawMap(): Layer 18 (watercourse_14),
0.004s
[Mon Jun  9 10:49:19 2014].408715 msDrawMap(): Layer 19
(watercourse_intermittent_14), 0.001s
[Mon Jun  9 10:49:19 2014].413966 msDrawMap(): Layer 26 (roads_17), 0.005s
[Mon Jun  9 10:49:19 2014].424807 msDrawMap(): Layer 28 (indianre), 0.011s
[Mon Jun  9 10:49:19 2014].425115 msDrawMap(): Layer 29 (gelname_lake_12),
0.000s
[Mon Jun  9 10:49:19 2014].425494 msDrawMap(): Layer 30 (gelname_unp_12),
0.000s
[Mon Jun  9 10:49:19 2014].425721 msDrawMap(): Layer 31 (gelname_vilg_12),
0.000s
[Mon Jun  9 10:49:19 2014].425959 msDrawMap(): Layer 32 (gelname_town_12),
0.000s
[Mon Jun  9 10:49:19 2014].501495 msDrawMap(): Layer 33 (lros), 0.076s
[Mon Jun  9 10:49:19 2014].584851 msDrawMap(): Layer 35 (pin), 0.083s
[Mon Jun  9 10:49:19 2014].588164 msDrawMap(): Drawing Label Cache, 0.003s
[Mon Jun  9 10:49:19 2014].588418 msDrawMap() total time: 5.677s


-- 

*Travis Kirstine*
*First Base Solutions I**nc*.
tkirst...@firstbasesolutions.com

140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3
p. 905-477-3600 ext. 301 | m. 647-534-4798
http://www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] fastcgi with multiple WMS services

2014-06-04 Thread Travis Kirstine
We are currently running a number of (several hundred) WMS services on a
single server using CGI.  Each service is configure using its own mapfile
with corresponding CGI script.  All services are pulling source data from
PostGIS tables.  In this type of use does it make sense to use fastcgi and
are there any dangers - high memory usage, multiple open PG connections?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache groups

2014-04-09 Thread Travis Kirstine
Is there a way to configure tilesets into a group (like mapserver) in a WMS
service?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache groups

2014-04-09 Thread Travis Kirstine
I was hoping to hit MapCache directly.  We have done something similar
using  MapServer with a WMS connection to MapCache with multiple layers /
tilesets defined in the getmap request.

I was hoping for something like

tileset name=tileset1 group=AllLayers
  sourcesource_wms1/source
  cachedisk/cache
  gridgmaps/grid
  formatmixed/format
/tileset
tileset name=tileset2 group=AllLayers
  sourcesource_wms2/source
  cachedisk/cache
  gridgmaps/grid
  formatmixed/format
/tileset

Where a WMS getmap request could be made using the layer=AllLayers








On 9 April 2014 11:26, EVANS, JAMES R GS-13 USAF ACC 84 RADES/SCZE 
james.evan...@us.af.mil wrote:

  I just did this using gdal minidrivers  from my mapfile.  It's slower
 than hitting a tile server, but it works.  You can organize the tilesets
 into groups in your mapfile.  Let me know if you would like more details on
 the setup.

 James





 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Travis Kirstine
 *Sent:* Wednesday, April 09, 2014 7:59 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] mapcache groups



 Is there a way to configure tilesets into a group (like mapserver) in a
 WMS service?

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] modify symbol size using expression

2014-03-31 Thread Travis Kirstine
Is it possible to change the symbol size (point feature) using a expression
or dynamically create attributes

For example

LAYER
  foo = [myattribute] + 1
  ...
  STYLE
 SIZE = [foo]
  ..

OR

LAYER
   
   STYLE
  SIZE = [foo] / 5


Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache - serving air photos to ArcMap

2014-02-24 Thread Travis Kirstine
Do you have the wms service enabled in the mapcache config file

http://mapserver.org/mapcache/config.html#services

BTW ArcMap 10.1 can access a mapcache WMTS as well (faster and less load)



On 24 February 2014 08:43, Mark Volz markv...@co.lyon.mn.us wrote:

 Hello,

 I apologize.  I meant to say that I can currently use Mapserver to serve
 WMS to any client.  What I meant to say is that in addition to MapServer, I
 am trying to use Mapcache as well.  I am not sure if the online resource is
 set correct.


 http://geomoose.lyonco.org:8080/mapcache/mapcache?service=wmsrequest=getcapabilities



 Sincerely,
 Mark Volz, GISP
 
  --
 
  Message: 5
  Date: Fri, 21 Feb 2014 20:27:05 -0700
  From: Richard Greenwood richard.greenw...@gmail.com
  To: Mark Volz markv...@co.lyon.mn.us
  Cc: mapserver-users@lists.osgeo.org
mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] mapcache - serving air photos to ArcMap
and AutoCAD
  Message-ID:
CAHBySPYMy6vvuS9stB=wrbzvYrkk7KX4vU=T80kN2RpgFnGzzA@m
  ail.gmail.com
  Content-Type: text/plain; charset=iso-8859-1
 
  You may have this already, but I know that to get ArcMap to read
 MapServer
  WMS you must have a title and srs definition in the map file's layer
 metadata.
  For example:
 
METADATA   # stuff for WMS to make ArcMap happy
  wms_title  Layer Name # REQUIRED
  wms_srs   EPSG:3739  # REQUIRED
END
 
  Rich
 
 
 
  On Fri, Feb 21, 2014 at 1:15 PM, Mark Volz markv...@co.lyon.mn.us
  wrote:
 
   Hello,
  
   In the past I have used MapServer to serve wms to several different
   applications.  It worked fine.  Now I am trying to use MapCache to
   serve to WMS clients.  It is not working for all of my clients.
  
   Openlayers and QGIS Work.
  
   ArcMap
   - Error:  WMS Server exceptions: Service Error.  Description: received
   unsuitable wms request: no grid with suitable srs found for layer
   USGS2006.
  
   AutoCAD Civil 3D
   - Failed to get bands data.  The HTTP request could not be understood
   by the server due to malformed syntax.
  
   If anyone has any thoughts on how I can fix this issue let me know.
   Thanks
  
   Sincerely,
   Mark Volz
   ___
   mapserver-users mailing list
   mapserver-users@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/mapserver-users
  
 
 
 
  --
  Richard Greenwood
  richard.greenw...@gmail.com
  www.greenwoodmap.com
  -- next part --
  An HTML attachment was scrubbed...
  URL: http://lists.osgeo.org/pipermail/mapserver-
  users/attachments/20140221/b11670af/attachment-0001.html
 
  --
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
  End of mapserver-users Digest, Vol 73, Issue 37
  ***
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache for RHEL 6.x

2014-02-24 Thread Travis Kirstine
We use the elgis repo and then build mapcache.


On 21 February 2014 16:12, Stephen Woodbridge wood...@swoodbridge.comwrote:

 Does anyone know if there is a package repository for RHEL 6.x the has
 mapcache in it?

 The mapserver download page points to:
 http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS

 But mapcache is not listed? And it does not look like any packages have
 been uploaded for nearly a year.

 Is there a better place to look?

 Thanks,
   -Steve W
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache and excessive NFS traffic

2014-02-20 Thread Travis Kirstine
We are running mapcache in a cluster with each tile/ webserver mounted to a
shared cache.  Periodically (~once a month) the NFS mount will lock and the
load average on the web servers will skyrocket.

Has anyone encountered something similar?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] PostGIS Data Query vs Expression

2014-02-07 Thread Travis Kirstine
What is the best practice for using selecting data with a where clause in
MapServer using PostGIS connection

i.e.

DATA the_geom from (SELECT gid, the_geom FROM audience_table WHERE
audience = 'Farmers') as foo using unique gid using SRID=4326

OR

DATA the_geom from audience_table using SRID=4326

with a class expression

CLASSITEM audience

EXPRESSION 'Farmer'

Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] PostGIS Data Query vs Expression

2014-02-07 Thread Travis Kirstine
thx


On 7 February 2014 11:05, Lime, Steve D (MNIT) steve.l...@state.mn.uswrote:

  Anything you can do in the data definition limits the number of features
 sent over the network, so that's preferable. Class expressions are
 generally used to sort features you want to draw differently.



 Steve



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Travis Kirstine
 *Sent:* Friday, February 07, 2014 9:51 AM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] PostGIS Data Query vs Expression



 What is the best practice for using selecting data with a where clause in
 MapServer using PostGIS connection



 i.e.



 DATA the_geom from (SELECT gid, the_geom FROM audience_table WHERE
 audience = 'Farmers') as foo using unique gid using SRID=4326



 OR



 DATA the_geom from audience_table using SRID=4326



 with a class expression



 CLASSITEM audience

 

 EXPRESSION 'Farmer'



 Thanks



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapserver 6.2 on RHEL

2013-05-28 Thread Travis Kirstine
You can try the ELGIS repo but the current mapserver version is 6.0.1

http://wiki.osgeo.org/wiki/Enterprise_Linux_GIS

If you need 6.2 I believe that you'll need to build from source.

Regards


On 28 May 2013 17:28, Jeff Konnen jaykay...@gmail.com wrote:

 Hi all,

 before going down the compile path, I just want to make sure I didn't miss
 something.
 I need to install mapserver 6.2 on RHEL 6.4 and was looking for a
 repository or a rpm.
 but I couldn't find anything.

 Is there something out there that I could have missed?

 Thanks a lot in advance
 Jeff
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Noob questions: configuring mapserver rpms on Fedora/CentOS machines

2013-03-20 Thread Travis Kirstine
Max,

See: http://mapserver.org/cgi/wrapper.html


On 20 March 2013 14:03, Max Pyziur p...@brama.com wrote:


 Greetings,

 I've become somewhat deft in using Q-GIS, PostGIS, along w/ PostgreSQL.

 I'm now set on moving into the Mapserver realm.

 At the risk of alienating the mature constituency of this list, I have
 some basic configuration questions.

 I have mapserver rpms installed on a Fedora 18 system. Mapserver binaries
 are placed in /usr/bin and /usr/sbin directories.

 What is the preferred (and more elegant) way of putting relevant binaries
 into the referenced Apache cgi-bin directory: symbolic links? or copying
 the binaries into the /var/www/cgi-bin directory?

 Or is there yet another alternative?

 One foreseeable issue is the maintenance/updating of binaries via RPM.

 Much thanks,

 Max Pyziur
 p...@brama.com
 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapcache - multiple resolutions for the same grid

2013-03-04 Thread Travis Kirstine
I have set up mapcache with a generic grid for all my caches.  The grid has
resolutions defined for zoom levels 0-21, however depending on the
resolution of my source data the tileset may only be seeded to level 19.
The tileset no longer has the ability to connect to the source.  As a
result blank images are displayed the when a client using the mapcache WMS
zooms in beyond the max resolution.  Is there a way to address this without
creating additional grids?


   !-- Google Grid for =10cm Levels 0-21 --
   grid name=gmaps
  metadata
 titleGoogleMapsCompatible/title

WellKnownScaleSeturn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible/WellKnownScaleSet
  /metadata
  extent-20037508.3427892480 -20037508.3427892480 20037508.3427892480
20037508.3427892480/extent
  srsEPSG:3857/srs
  srsaliasEPSG:900913/srsalias
  unitsm/units
  size256 256/size
  resolutions156543.0339280410 78271.51696402048 39135.75848201023
19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640
1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525
76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032
4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395
0.29858214173896975 0.149291070869484875 0.0746455354347424375/resolutions
   /grid

 tileset name=0237DURH_cache
 !--source0237DURH/source--
 cachedisk/cache
 grid restricted_extent=-8831574.381510 5432633.752429
-8731299.465116 5547099.028228gmaps/grid
 formatmixed/format
 metatile4 4/metatile
 metabuffer0/metabuffer
   /tileset

Thanks!
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapcache make issues

2013-02-11 Thread Travis Kirstine
I've been having issues with the make of mapcache.  The configure seems to
go off without a hitch but the make generates several skipping incompatible
warning.  Is this an issue, and if so how is it resolved

mapcache_seed.c: In function 'pop_queue':
mapcache_seed.c:156: warning: dereferencing type-punned pointer will break
strict-aliasing rules
mapcache_seed.c: In function 'trypop_queue':
mapcache_seed.c:183: warning: dereferencing type-punned pointer will break
strict-aliasing rules
mapcache_seed.c: In function 'main':
mapcache_seed.c:1166: warning: dereferencing type-punned pointer will break
strict-aliasing rules
/usr/bin/ld: skipping incompatible /usr/lib/libcurl.so when searching for
-lcurl
/usr/bin/ld: skipping incompatible /usr/lib/libcurl.a when searching for
-lcurl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when
searching for -lgssapi_krb5
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching
for -lgssapi_krb5
/usr/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for
-lkrb5
/usr/bin/ld: skipping incompatible /usr/lib/libkrb5.a when searching for
-lkrb5
/usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.so when searching
for -lk5crypto
/usr/bin/ld: skipping incompatible /usr/lib/libk5crypto.a when searching
for -lk5crypto
/usr/bin/ld: skipping incompatible /usr/lib/libssl.so when searching for
-lssl
/usr/bin/ld: skipping incompatible /usr/lib/libssl.a when searching for
-lssl
/usr/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for
-lcrypto
/usr/bin/ld: skipping incompatible /usr/lib/libcrypto.a when searching for
-lcrypto
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for
-lpng
/usr/bin/ld: skipping incompatible /usr/lib/libpng.a when searching for
-lpng
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for
-ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for
-lpcre
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for
-lpcre
/usr/bin/ld: skipping incompatible /usr/lib/libqpixman-1.so when searching
for -lqpixman-1
/usr/bin/ld: skipping incompatible /usr/lib/libtiff.so when searching for
-ltiff
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching
for -lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc





./configure --without-bdb --with-apxs=/usr/bin/apxs
--with-pixman=/usr/lib/pkgconfig/qpixman-1.pc
--with-apu-config=/usr/bin/apu-1-config
--with-apr-config=/usr/bin/apr-1-config
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands +=... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how 

[mapserver-users] re mapcache make issues

2013-02-11 Thread Travis Kirstine
Found the issue
I had configure set wrong
./configure --without-bdb --with-pixman=/usr/lib/pkgconfig/qpixman-1.pc

Should be
./configure --without-bdb --with-pixman=/usr/lib64/pkgconfig/qpixman-1.pc
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver CSRS support

2012-12-13 Thread Travis Kirstine
I have issue with my WMS service when using a source raster layer that is
in EPSG:2958 - NAD83(CSRS) / UTM zone 17N srs. The issue is that Mapserrver
(proj) does not apply a gridshift when requesting the layer in a different
projection - UTM z17n NAD83.  I have a gridshift file for this
transformation however there is no way to apply it to the output that I am
aware of.

Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapcache - rendering higher level tiles from lower level tilesets

2012-11-12 Thread Travis Kirstine
I have a fully seeded cache of tiles to level 19 and no longer can access
the original WMS source. Is it possible to generate a tileset using a
memcache for layer above level 19 using the seeded cache as source?

Something like this


 cache name=disk type=disk
base/home/caches/base
symlink_blank/
 /cache

  cache name=memcache type=memcache
server
 hostlocalhost/host
 port11211/port
 /server
   /cache


tileset name=Fully_Seeded_to_19_cache
  !--sourcelayer/source--
  cachedisk/cache
  gridgmaps/grid
  formatmixed/format
  metatile1 1/metatile
  metabuffer0/metabuffer
/tileset

tileset name=Memcache_greater_than_19_cache
  source/source
  cachememcache/cache
  gridgmaps/grid
  formatmixed/format
  metatile1 1/metatile
  metabuffer0/metabuffer
/tileset
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Image quality

2012-08-03 Thread Travis Kirstine
I am having issues with the output image quality of MapServer.  I have
a mapserver set up as a wms server up high res orthophoto images.  The
images are in tiled geotiff format with JPEG / YCBCR compression with
internal gaussen overviews and referenced using a tile index in the
mapfile with the PROCESSING RESAMPLE=BILINEAR directive.  Mapserver
5.6.7 is set up using AGG with imagemode RGBA.  I have noticed that
the images generated have aliasing in areas of high contrast when
viewing at various scales (full res seems fine).  What is the optimal
setup to reduce this effect?

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] nad to nad grid shifts

2012-06-11 Thread Travis Kirstine
I have a wms server and would like to support multiple NAD projections
(csrs, 83, 27).  Is it possible to utilize any / multiple grid shift
files   If so how ?

Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Mapserver + mapcache + Google Map

2012-05-09 Thread Travis Kirstine
It appears that mapcache is trying to write to the grid g which is
not defined.  Are you looking to create tiles is a 900913 projection?
I would try removing the gridWGS84/grid and gridg/grid
elements restarting / reload apache and see what happens (I'm not sure
if a tileset can support multiple grids).


Regards

On 7 May 2012 15:48, mkrassovski krassovsk...@ornl.gov wrote:
 Travis, thank you, for the reply.
 Yes, it does. I double checked it.

 Misha

 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/Mapserver-mapcache-Google-Map-tp4958439p4958632.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver + mapcache + Google Map

2012-05-07 Thread Travis Kirstine
Does apache have permission to write to the mapcache directory
/var/www/mapcache/cache?

On 7 May 2012 14:13, Krassovski, Misha B. krassovsk...@ornl.gov wrote:
 I work on a project that has 4.5 mil points (each one is a single dot, with 
 lat, lon),  that have to be shown on the world map.
 I managed to do it with mapserver (wms) + Google map. It works fine, but very 
 slow, so I decided to add a mapcache caching system.
 Spend already a week but still can't get it work. Please take a look at error 
 messages and my map and mapcache files.
 Thank you in advance for the help!!


 Here are error messages that I have.
 In Firebug console:
 NetworkError: 404 Not Found - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/1.png;
 NetworkError: 404 Not Found - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/-1/2.png;
 NetworkError: 502 Bad Gateway - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/2.png;
 NetworkError: 500 Internal Server Error - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/1.png;
 NetworkError: 502 Bad Gateway - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/1/1.png;
 NetworkError: 502 Bad Gateway - 
 http://cdiac5.ornl.gov/cgi-bin/mapcache/gmaps/test@g/2/0/3.png;
 and so on …..

 In apache log:
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in 
 [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] mapcache fcgi conf 
 file: /var/www/mapcache/mapcache.xml, referer: 
 http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tile x=-1 not in 
 [0,4[, referer: http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] curl failed to 
 request url 
 http://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.mapVERSION=1.1.1REQUEST=GetMapSERVICE=WMSSTYLES=BBOX=-20428865.927609,-20428865.927609,20428865.927609,20428865.927609WIDTH=1044HEIGHT=1044FORMAT=image/pngSRS=EPSG:900913LAYERS=atl_indTRANSPARENT=true
  : Failed to connect to ::1: Permission denied, referer: 
 http://cdiac5.ornl.gov/waves/underway/test.html
 [Mon May 07 13:54:32 2012] [error] [client 160.91.28.61] tileset test: 
 unknown error (another thread/process failed to create the tile I was waiting 
 for), referer: http://cdiac5.ornl.gov/waves/underway/test.html
 and so on ……

 If I run just the failed url from apache log, it creates 1044x1044 image with 
 a single point in the center, and gives no error messages.

 My mapfile:
 MAP
  NAME underway_ai
  DEBUG ON
  STATUS ON
  SIZE 970 715
  EXTENT -180 -90 180 90
  UNITS DD
  IMAGETYPE GIF
  SHAPEPATH /var/www/html/waves/underway/images

  WEB
    IMAGEPATH /var/www/html/waves/tmp
    IMAGEURL tmp/
    METADATA
        ows_enable_request *
        wms_title Underway_ai
        wms_onlineresource http://cdiac5.ornl.gov/cgi-bin/mapserv?;
        wms_srs epsg:900913
        wms_enable_request GetMap
    END
  END

  PROJECTION
    init=epsg:900913
  END

  SYMBOL
    NAME Dot
    TYPE ELLIPSE
    POINTS 1 1 END
    FILLED TRUE
  END

  LAYER
    DEBUG ON
    CONNECTION underway_ai.ovf
    CONNECTIONTYPE OGR
    DATA atl_ind
    METADATA
        wms_srs epsg:900913
        wms_title atl_ind
        wms_group_title test_group
        wms_exceptions_format application/vnd.ogc.se_xml
    END
    NAME atl_ind

    PROJECTION
        init=epsg:900913
    END
    GROUP atl_ind
    SIZEUNITS PIXELS
    TYPE POINT
    STATUS ON
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      STYLE
        SYMBOL Dot
        SIZE 2
        COLOR 255 0 0
      END
    END
  END

 END

 and my mapcache file:
 mapcache
   cache name=disk type=disk
      base/var/www/mapcache/cache/base
      symlink_blank/
   /cache

   source name=vmap0 type=wms
      getmap
         params
            FORMATimage/png/FORMAT
            LAYERSatl_ind/LAYERS
            TRANSPARENTtrue/TRANSPARENT
         /params
      /getmap

      http
         
 urlhttp://localhost/cgi-bin/mapserv?map=/var/www/html/waves/underway/maps/test.map/url
      /http
   /source
   tileset name=test
      sourcevmap0/source
      cachedisk/cache
      gridWGS84/grid
      gridg/grid
      gridGoogleMapsCompatible/grid
      formatPNG/format
      metatile5 5/metatile
      metabuffer10/metabuffer
      expires3600/expires
   /tileset
   tileset name=test1
      sourcevmap0/source
      cachedisk/cache
      gridWGS84/grid
      gridg/grid
      gridGoogleMapsCompatible/grid
      formatPNG/format
      metatile5 5/metatile
      metabuffer10/metabuffer
      expires3600/expires
   /tileset
   default_formatJPEG/default_format
   service type=wms enabled=true
      full_wmsassemble/full_wms
      resample_modebilinear/resample_mode
      formatJPEG/format
      maxsize4096/maxsize
   /service
   service type=wmts enabled=true/
   service type=tms enabled=true/
   service type=kml enabled=true/
 

[mapserver-users] mod_mapcache creating arcgis hex based folder structure

2012-01-10 Thread Travis Kirstine
Is it possible to generate arcgis's hex based folder structure using
mod_mapcache?

 
http://blogs.esri.com/Support/blogs/mappingcenter/archive/2010/08/20/Checking-Your-Local-Cache-Folders.aspx

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapCache: Disabling WMS requests for fully-seeded caches?

2011-11-29 Thread Travis Kirstine
Thomas,

Here is the backtrace:

(gdb) run -X
Starting program: /usr/sbin/httpd -X
warning: no loadable sections found in added symbol-file
system-supplied DSO at 0x2ad1b000
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x2ca4e32b in strstr () from /lib64/libc.so.6
(gdb) bt
#0  0x2ca4e32b in strstr () from /lib64/libc.so.6
#1  0x2aaab539737d in mapcache_image_create_empty () from
/usr/lib64/httpd/modules/mod_mapcache.so
#2  0x2aaab53971fe in mapcache_configuration_parse_xml () from
/usr/lib64/httpd/modules/mod_mapcache.so
#3  0x2aaab53a047a in mapcache_configuration_parse () from
/usr/lib64/httpd/modules/mod_mapcache.so
#4  0x2aaab53879e6 in mapcache_add_alias (cmd=0x7fffe760,
cfg=value optimized out, alias=0x2ae0f850 /mapcache,
configfile=0x2ae0f860 /var/www/html/mapcache/mapcache.xml)
at mod_mapcache.c:502
#5  0x2aad5c4b in ?? ()
#6  0x2aad60d0 in ap_walk_config ()
#7  0x2aad6232 in ap_process_config_tree ()
#8  0x2aac1c51 in main ()
(gdb)

#

MapCache snippet:

 default_formatmixed/default_format

 errorsempty_img/errors

Regards




On 29 November 2011 11:56, thomas bonfort thomas.bonf...@gmail.com wrote:
 I've just tried report_img locally without issues, any chance you can
 provide a backtrace ?

 On Tue, Nov 29, 2011 at 17:32, John Taranu
 jtar...@firstbasesolutions.com wrote:
 Hi Thomas,

 Thanks for the suggestion.  Commenting out the source block disables the WMS 
 requests.

 However, the error reporting seems to be broken.  Setting 
 errorsempty_img/errors crashes Apache with a segmentation fault 
 (mod_mapcache SVN revision 12828).  Setting errorsreport/errors throws 
 HTTP 404 responses, which is a more reasonable result.

 John



 -Original Message-
 From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
 Sent: Tuesday, November 29, 2011 10:33 AM
 To: John Taranu
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] MapCache: Disabling WMS requests for 
 fully-seeded caches?

 You can do this by commenting out the source block from the tileset once 
 the wanted tiles have been created. You'll probably also want set error 
 reporting to return blank images from that stage onwards.

 --
 thomas

 On Tue, Nov 29, 2011 at 00:09, John Taranu jtar...@firstbasesolutions.com 
 wrote:
 We have a fully seeded cache that was fully seeded to a polygon outline.
 The intent is to serve the tileset through a variety of services (WMS,
 TMS) using mod-mapcache.



 Tiles that are outside the polygon outline but still within the
 polygon bounding box should be blank tiles.  However, a request for
 one of these tiles results in a call to that tileset’s WMS source.
 This creates considerable overhead by starting up MapServer and
 writing the resulting tile to the cache.  Is there any way to disable
 the WMS calls for these blank tiles, and instead short-circuit the
 request to return a blank?  That is, once a tileset has been fully
 seeded, is it possible to disable any further calls to the WMS, so
 that requests for tiles that are not in the cache return a blank?


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapcache requesting tiles beyond 1:1 resolution

2011-11-25 Thread Travis Kirstine
Is it possible to retile cached images.  Our data is at a 1:1
resolution around level 19, we would like to view the data at higher
levels but don't want the effort/costs of seeding the cache.  Is it
possible to take the cached level 19 tiles and retile them to level 20
on the fly?

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache in a cluster

2011-11-23 Thread Travis Kirstine
It appears the issue was hardware related, everything seems to be
working now with nfs

Thanks for your help



On 21 November 2011 11:12, Stephen Woodbridge wood...@swoodbridge.com wrote:
 Travis,

 In the past I have used NFS in a custer and in general the performance was
 very bad when compared to SMB. Now this was a few years ago, ie: not using
 mapcache, but my experience was that we ran into a few issues with NFS:

 1. NFS CPU overhead was significantly more
 2. connection recovery was poor if a server was pulled from the cluster and
 added back again (ie: recovery after an error condition)
 3. the protocol seems to have a lot more over head

 -Steve W

 On 11/21/2011 9:39 AM, thomas bonfort wrote:

 What kind of performance issues? The current locking code only uses
 the presence/absence of a file for it's locking functions, and does
 not rely on flock/fcntl.

 --
 thomas

 On Mon, Nov 21, 2011 at 15:16, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Thomas,

 We have been running into some performance issues mapcache and nfs.
 We feel the issue may be related to how nfs locks files/directories
 compared to smb.  We are trying a few thing on our end (disable
 locking / nfs4 etc).  Do you have any ideas?

 Regards

 On 20 October 2011 12:19, thomas bonfortthomas.bonf...@gmail.com
  wrote:

 So, this discussion inspired me to completely rework the locking
 mechanism in mapcache, to stop relying on file locks which have their
 quirks on network filesystems.
 I have tried using multiple apache instances configured to used a
 SMB-mounted lock directory and hammered both instances on unseeded
 identical area to force locking, and ended up with absolutely no
 duplicate wms requests or failed requests for the clients.
 The code is committed in trunk. Thanks for bringing this up, this
 allowed me to really simplify the locking code and remove a lot of
 unneeded stuff :)

 --
 thomas

 On Thu, Oct 20, 2011 at 17:08, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Andreas and Thomas

 Thanks for you responses,  I have discussed this with some of our IT
 staff and they had similar solution as Andreas using gfs.  Their
 comments are below:

 I suspect this scheme is not reliable over NFS. The problem is the
 directory updates are not synchronized across multiple nodes. I had a
 similar issue with the IMAP E-mail protocol. Our workaround currently
 is to force each user to leverage a single server.

 Ref:
 http://wiki.dovecot.org/NFS

 Seems like there's some tweaks to disable directory attribute caching
 but this can trigger slower performance.
 Only workaround is to use GFS which I found to have it's own issues. 

 Regards



 On 20 October 2011 05:32, Eichner, Andreas - SID-NLKM
 andreas.eich...@sid.sachsen.de  wrote:

 We use TileCache.py on two servers with the cache on an OCFS2 on a
 shared LUN in the SAN. No known issues with that for now. Note:
 Spurious
 stale lock files occurred already on a single machine. There seemed to
 be issues with lots of requests and a very slow upstream server. I
 used
 a cron job to delete lock files older than 5 minutes or so.
 As Thomas noted, if the lock files are created on a shared filesystem
 and you make sure the filesystem you use is able to lock files
 properly
 (read the docs carefully!) there's no reason why it should not work.

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users



 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: QGis 'Zoom to best scale' Not Working

2011-11-22 Thread Travis Kirstine
Are you requesting the MyGroup layer or MyImage, I'm not sure if
the group inherits the layer metadata (I'm sure someone on the list
knows).  I have noticed that when adding grouped layers in QGIS the
zoom to extent does not work however it will work when individual
layers are added.

Regards

On 22 November 2011 06:08, SixDegrees paulcarli...@comcast.net wrote:
 Sorry, I was wrong in the previous message; the resx and resy settings do
 show up in the capabilities document. They make no difference, however; the
 bounding box requested by QGis is still in error.


 SixDegrees wrote

 Thank you. I added wms_resx and wms_resy to my mapfile with reasonable
 values (and some unreasonable ones, just as tests). This makes no
 difference. When I make a GetCapabilities request, the layer's bounding
 box is correct but it does NOT contain the resx or resy settings, as I
 believe it should.

 I don't know if this is a problem in my mapfile or in MapServer. My
 mapfile layer looks like this (file names changed for proprietary
 reasons):

 LAYER
    NAME MyImage
    GROUP MyGroup
    EXTENT 75.80425 35.304 76.01625 35.476
    METADATA
       wms_title MyImage
       wms_group_title MyGroup
       wms_extent 75.80425 35.304 76.01625 35.476
       wms_srs EPSG:4326
       wms_resx 1.0 # Note: these values are for testing only. The
 actual values have
       wms_resy 1.0 # also been tried, with no success. They are
 5.90139233796e-06, -4.85244300668e-06
    END
    PROCESSING SCALE=AUTO
    PROCESSING SCALE_BUCKETS=256
    TYPE RASTER
    DATA MyImage.vrt
    PROJECTION
       +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs
    END
 END




 Rahkonen Jukka wrote

 Hi,

 WMS does not advertise by default the native resolution of the data.  I
 have never tried but perhaps adding wms_resx, wms_resy metadata into
 layer metadata would add that information into GetCapabilities
 http://mapserver.org/ogc/wms_server.html.
  I do not know if QGis can utilise that information even if it exists.

 -Jukka Rahkonen-

 SixDegrees wrote:

 I'm not sure if this is a QGis problem or a problem with my
 Mapserver-generated WMS layer. When I load a WMS image in QGis,
 everything
 works as expected except when I select 'Zoom to best scale' I get a
 Mapserver error stating that the bounding box is illegal. And it is - the
 bounding box corner points in the getmap request are identical. This
 selections is supposed to zoom in so the pixels displayed are 1:1 or 100%

 A look at the capabilities request returned by Mapserver and the mapfile
 and
 images involved don't show anything obviously wrong. Is it possible that
 QGis is sending the wrong request? Or is something missing from either
 the
 capabilities document or the mapfile layer?

 I'm not really sure where to start looking to isolate the problem. Note
 that
 if I load images directly instead of through Mapserver WMS I am able to
 zoom
 to scale without any problem, which suggests a problem with Mapserver,
 likely in the mapfile. I am using VRT files as intermediaries between the
 Mapfile and the underlying NITF files; it seems that Mapserver should be
 using the affine transform contained in the VRT to determine proper
 scaling,
 but I'm not sure if that is sufficient. Are there arguments that need to
 be
 placed in the Mapfile metadata to help WMS generation along? Or something
 that would cause items in the capabilities document to be left out?

 Using QGis 1.7.0 on Linux.

 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/QGis-Zoom-to-best-scale-Not-Working-tp7017776p7017776.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@.osgeo
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
 mapserver-users mailing list
 mapserver-users@.osgeo
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




 --
 View this message in context: 
 http://osgeo-org.1803224.n2.nabble.com/QGis-Zoom-to-best-scale-Not-Working-tp7017776p7020066.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache in a cluster

2011-11-21 Thread Travis Kirstine
Thomas,

We have been running into some performance issues mapcache and nfs.
We feel the issue may be related to how nfs locks files/directories
compared to smb.  We are trying a few thing on our end (disable
locking / nfs4 etc).  Do you have any ideas?

Regards

On 20 October 2011 12:19, thomas bonfort thomas.bonf...@gmail.com wrote:
 So, this discussion inspired me to completely rework the locking
 mechanism in mapcache, to stop relying on file locks which have their
 quirks on network filesystems.
 I have tried using multiple apache instances configured to used a
 SMB-mounted lock directory and hammered both instances on unseeded
 identical area to force locking, and ended up with absolutely no
 duplicate wms requests or failed requests for the clients.
 The code is committed in trunk. Thanks for bringing this up, this
 allowed me to really simplify the locking code and remove a lot of
 unneeded stuff :)

 --
 thomas

 On Thu, Oct 20, 2011 at 17:08, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 Andreas and Thomas

 Thanks for you responses,  I have discussed this with some of our IT
 staff and they had similar solution as Andreas using gfs.  Their
 comments are below:

 I suspect this scheme is not reliable over NFS. The problem is the
 directory updates are not synchronized across multiple nodes. I had a
 similar issue with the IMAP E-mail protocol. Our workaround currently
 is to force each user to leverage a single server.

 Ref:
 http://wiki.dovecot.org/NFS

 Seems like there's some tweaks to disable directory attribute caching
 but this can trigger slower performance.
 Only workaround is to use GFS which I found to have it's own issues. 

 Regards



 On 20 October 2011 05:32, Eichner, Andreas - SID-NLKM
 andreas.eich...@sid.sachsen.de wrote:

 We use TileCache.py on two servers with the cache on an OCFS2 on a
 shared LUN in the SAN. No known issues with that for now. Note: Spurious
 stale lock files occurred already on a single machine. There seemed to
 be issues with lots of requests and a very slow upstream server. I used
 a cron job to delete lock files older than 5 minutes or so.
 As Thomas noted, if the lock files are created on a shared filesystem
 and you make sure the filesystem you use is able to lock files properly
 (read the docs carefully!) there's no reason why it should not work.

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache in a cluster

2011-11-21 Thread Travis Kirstine
When running the seeder (I haven't tested on the fly generation) the
process is running extremely slow.  The seeder is launched using all
available cpus (24) on the server.  We are running MapServer as the
WMS source.

When I launch the seeder using a cache on the same file system the
seeder will spawn 18-24 concurrent WMS request and  mapcache_seed will
be running at 250-350 % CPU.

If I launch the same seeding process using a NFS mounted cache the
performce will drop - The WMS requests will drop to only one request
(if that) and map_cache will be running at less than 60% CPU. The
server is basically idle.

I rechecked the mapcache configuration script and we are writing the
lock files to the same mounted directory as the cache, I'm not sure if
this could be a issue.  I will try writing the lock files locally to
see if this has any effect.

Regards






On 21 November 2011 09:39, thomas bonfort thomas.bonf...@gmail.com wrote:
 What kind of performance issues? The current locking code only uses
 the presence/absence of a file for it's locking functions, and does
 not rely on flock/fcntl.

 --
 thomas

 On Mon, Nov 21, 2011 at 15:16, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 Thomas,

 We have been running into some performance issues mapcache and nfs.
 We feel the issue may be related to how nfs locks files/directories
 compared to smb.  We are trying a few thing on our end (disable
 locking / nfs4 etc).  Do you have any ideas?

 Regards

 On 20 October 2011 12:19, thomas bonfort thomas.bonf...@gmail.com wrote:
 So, this discussion inspired me to completely rework the locking
 mechanism in mapcache, to stop relying on file locks which have their
 quirks on network filesystems.
 I have tried using multiple apache instances configured to used a
 SMB-mounted lock directory and hammered both instances on unseeded
 identical area to force locking, and ended up with absolutely no
 duplicate wms requests or failed requests for the clients.
 The code is committed in trunk. Thanks for bringing this up, this
 allowed me to really simplify the locking code and remove a lot of
 unneeded stuff :)

 --
 thomas

 On Thu, Oct 20, 2011 at 17:08, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 Andreas and Thomas

 Thanks for you responses,  I have discussed this with some of our IT
 staff and they had similar solution as Andreas using gfs.  Their
 comments are below:

 I suspect this scheme is not reliable over NFS. The problem is the
 directory updates are not synchronized across multiple nodes. I had a
 similar issue with the IMAP E-mail protocol. Our workaround currently
 is to force each user to leverage a single server.

 Ref:
 http://wiki.dovecot.org/NFS

 Seems like there's some tweaks to disable directory attribute caching
 but this can trigger slower performance.
 Only workaround is to use GFS which I found to have it's own issues. 

 Regards



 On 20 October 2011 05:32, Eichner, Andreas - SID-NLKM
 andreas.eich...@sid.sachsen.de wrote:

 We use TileCache.py on two servers with the cache on an OCFS2 on a
 shared LUN in the SAN. No known issues with that for now. Note: Spurious
 stale lock files occurred already on a single machine. There seemed to
 be issues with lots of requests and a very slow upstream server. I used
 a cron job to delete lock files older than 5 minutes or so.
 As Thomas noted, if the lock files are created on a shared filesystem
 and you make sure the filesystem you use is able to lock files properly
 (read the docs carefully!) there's no reason why it should not work.

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] gdal bigtiff support

2011-11-17 Thread Travis Kirstine
I have created some tiled BigTiffs (6 GB) with gdal 1.8 with the
internal tif lib.  I keep getting a  msDrawRaster(): Image handling
error. Unrecognized or unsupported image format
drawEPP(): Image handling error. EPPL7 support is not available when
attempting render the the image with Mapserver 5.6.7 (w/ gdal 1.8).  I
have also noticed that some of my non bigtiff tiled geotiffs are
rendering with missing tiles and or in strange colours.  I can access
the files with gdal without a issue.  Is there something I'm missing?

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] gdal bigtiff support

2011-11-17 Thread Travis Kirstine
It turns out to be a user error, I had updated mapserver but failed to
update the cgi wrapper script for the WMS.

Thanks

On 17 November 2011 15:35, Frank Warmerdam warmer...@pobox.com wrote:
 On Thu, Nov 17, 2011 at 12:15 PM, Travis Kirstine
 traviskirst...@gmail.com wrote:
 I have created some tiled BigTiffs (6 GB) with gdal 1.8 with the
 internal tif lib.  I keep getting a  msDrawRaster(): Image handling
 error. Unrecognized or unsupported image format
 drawEPP(): Image handling error. EPPL7 support is not available when
 attempting render the the image with Mapserver 5.6.7 (w/ gdal 1.8).  I
 have also noticed that some of my non bigtiff tiled geotiffs are
 rendering with missing tiles and or in strange colours.  I can access
 the files with gdal without a issue.  Is there something I'm missing?

 Travis,

 Are you using full paths to the files in question.  I vaguely suspect
 that the fopen()s used in path construction within MapServer do
 not work properly with large files (4GB).  If that turns out to be
 the issue please file a ticket on it.

 The work around would be to use a full path instead of depending
 on SHAPEPATH or map relative path construction.

 Best regards,
 --
 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
 light and sound - activate the windows | http://pobox.com/~warmerdam
 and watch the world go round - Rush    | Geospatial Software Developer

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] msParseTime error after upgrading to mapserver 6

2011-10-26 Thread Travis Kirstine
I think you have a issue with your regex the brace / bracket is unbalanced:

My guess is that  ^[0-9i\-]{10,10)$

should be

^[0-9i\-]{10,10}$

or

^[0-9i\-](10,10)$

Regards




On 26 October 2011 11:44, Jackson, John jjack...@franklincountyohio.govwrote:

  HI all,

 ** **

 I’m working on a ka-map application that I’m trying to upgrade to mapserver
 6.0…

 ** **

 I’ve got tile.php working with a few minor changes, but I’m having trouble
 getting php mapscript to work with doing a query.

 ** **

 I suspect it’s related to these lines in the mapserver debug log.
 Unfortunately, my google-fu hasn’t turned up much.

 ** **

 Relevant section of map file:

 LAYER

 NAME Parcels2

 GROUP Parcels2

 STATUS OFF

 TYPE POLYGON

 CONNECTIONTYPE POSTGIS

 CONNECTION dbname=mapdb user=testuser password=xxx

 PROCESSING CLOSE_CONNECTION=DEFER

 DATA the_geom from parcel using srid=3402 using unique gid

 LABELITEM pid

 LABELCACHE on

 METADATA

 queryable true

 description Parcel ID's

 fields pid:Parcel Id

 searchfield pid

 RESULT_FIELDS pid

 qstring_validation_pattern '^[0-9i\-]{10,10)$'

 END

 CLASS

 STYLE

 ** **

 END

 END

 END

 ** **

  [Wed Oct 26 10:50:31 2011].869245 msParseTime(): Regular expression error.
 Unrecognized date or time format ().

 [Wed Oct 26 10:50:31 2011].869283 msTokenizeExpression(): Expression parser
 error. Parsing time value failed.

 ** **

 Thanks for the help.

 --John Jackson

 --jxjac...@franklincountyohio.gov

 ** **

 ** **

 [image: http://www.franklincountyauditor.com/images/logoSmall2.jpg]

 John Jackson

 Deputy Auditor

 373 South High St, 19th floor

 Columbus, Ohio 43215-6310

 www.franklincountyauditor.com

 614-525-7279 office

 ** **

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


image001.jpg___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] nodata transparencies

2011-10-24 Thread Travis Kirstine
Hi All

I have a raster layer of 8 bit RGB orthophoto with the source data as
GeoTiff tiles (tile index) .  Some of the source images have the
nodata (0,0,0) defined in the metadata some do not.  Can MS
automatically determine the nodata and use that as a transparency for
each image in the tile index?

The issue that I am having is that I have a large coverage area that
is composed of  RGB tiled uncompressed geotiffs with real nodata
values at the edges of the coverage and tiles on the interior of the
coverage are RGB tiled compressed ycbcr geotiffs with no nodata
defined.   If I use the OFFSITE 0,0,0 parameter in my mapfile the
resultant images will have holes on the interior of the image ().

I have tried scaling the images however it appears that JPEG
compressed YCBCR images do not scale well

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache in a cluster

2011-10-20 Thread Travis Kirstine
Andreas and Thomas

Thanks for you responses,  I have discussed this with some of our IT
staff and they had similar solution as Andreas using gfs.  Their
comments are below:

I suspect this scheme is not reliable over NFS. The problem is the
directory updates are not synchronized across multiple nodes. I had a
similar issue with the IMAP E-mail protocol. Our workaround currently
is to force each user to leverage a single server.

Ref:
http://wiki.dovecot.org/NFS

Seems like there's some tweaks to disable directory attribute caching
but this can trigger slower performance.
Only workaround is to use GFS which I found to have it's own issues. 

Regards



On 20 October 2011 05:32, Eichner, Andreas - SID-NLKM
andreas.eich...@sid.sachsen.de wrote:

 We use TileCache.py on two servers with the cache on an OCFS2 on a
 shared LUN in the SAN. No known issues with that for now. Note: Spurious
 stale lock files occurred already on a single machine. There seemed to
 be issues with lots of requests and a very slow upstream server. I used
 a cron job to delete lock files older than 5 minutes or so.
 As Thomas noted, if the lock files are created on a shared filesystem
 and you make sure the filesystem you use is able to lock files properly
 (read the docs carefully!) there's no reason why it should not work.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache in a cluster

2011-10-20 Thread Travis Kirstine
Wow Thomas

We will give a whirl

Regards


On 20 October 2011 12:19, thomas bonfort thomas.bonf...@gmail.com wrote:
 So, this discussion inspired me to completely rework the locking
 mechanism in mapcache, to stop relying on file locks which have their
 quirks on network filesystems.
 I have tried using multiple apache instances configured to used a
 SMB-mounted lock directory and hammered both instances on unseeded
 identical area to force locking, and ended up with absolutely no
 duplicate wms requests or failed requests for the clients.
 The code is committed in trunk. Thanks for bringing this up, this
 allowed me to really simplify the locking code and remove a lot of
 unneeded stuff :)

 --
 thomas

 On Thu, Oct 20, 2011 at 17:08, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 Andreas and Thomas

 Thanks for you responses,  I have discussed this with some of our IT
 staff and they had similar solution as Andreas using gfs.  Their
 comments are below:

 I suspect this scheme is not reliable over NFS. The problem is the
 directory updates are not synchronized across multiple nodes. I had a
 similar issue with the IMAP E-mail protocol. Our workaround currently
 is to force each user to leverage a single server.

 Ref:
 http://wiki.dovecot.org/NFS

 Seems like there's some tweaks to disable directory attribute caching
 but this can trigger slower performance.
 Only workaround is to use GFS which I found to have it's own issues. 

 Regards



 On 20 October 2011 05:32, Eichner, Andreas - SID-NLKM
 andreas.eich...@sid.sachsen.de wrote:

 We use TileCache.py on two servers with the cache on an OCFS2 on a
 shared LUN in the SAN. No known issues with that for now. Note: Spurious
 stale lock files occurred already on a single machine. There seemed to
 be issues with lots of requests and a very slow upstream server. I used
 a cron job to delete lock files older than 5 minutes or so.
 As Thomas noted, if the lock files are created on a shared filesystem
 and you make sure the filesystem you use is able to lock files properly
 (read the docs carefully!) there's no reason why it should not work.

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapcache in a cluster

2011-10-19 Thread Travis Kirstine
Has anyone attempted to set mapcache up in a cluster, one large file
server holding caches with several mapcache servers? A few years ago
we tried to have TileCache in a cluster but had issues with tile
locking.

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapCache - failed to remove lockfile error

2011-10-14 Thread Travis Kirstine
Thomas,

The latest version (as of last week) seems to have fixed the lockfile
issue.  We are running into issues with the linking of transparent
tiles:

failed to link tile
/home/caches/0837DURH_cache/googlemaps_grid/21/000/590/400/001/333/608.xxx
to /home/caches/0837DURH_cache/googlemaps_grid/blanks/.xxx: No
such file or directory

We are running the seeder with 24 threads (all cores on the server).
Could there be a issue with linking to the same file simultaneously?

Regards



On 7 October 2011 09:41, Travis Kirstine traviskirst...@gmail.com wrote:
 We checked out a version of mod-geocache on sept 22, my guess is that
 it is version 0.4x.  We will check out the latest mapcache version
 from the mapserver trunk.

 Regards

 On 7 October 2011 06:16, thomas bonfort thomas.bonf...@gmail.com wrote:
 What version of mod-geocache are you using (revision number or release
 version) ?

 On Thu, Oct 6, 2011 at 22:17, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 This doesn't seem to be a issue, I have lots of inodes left.  It
 appears that the error occurred when generating (linking)  areas with
 a large volume of transparent tiles, could this be related?

 Regards

 On 6 October 2011 14:19, Stephen Woodbridge wood...@swoodbridge.com wrote:
 Have you verified that you have not filled up the disk or run out of 
 inodes?

 # check the diskspace with
 df -h

 # check for inode issues
 touch /path/to/cache/test.junk

 # if the touch failed then you have run out of inodes
 # otherwise clean up
 rm /path/to/cache/test.junk

 Thanks,
  -Steve W

 On 10/6/2011 12:14 PM, thomas bonfort wrote:

 I don't have a specific advice to give unfortunately. There have been
 some fixes lately (macpcache only, not mod-geocache) to the way
 multiple threads accessed the curl library that might help, so you
 might want to try with a fresh checkout from the mapserver svn.

 --
 thomas

 On Thu, Oct 6, 2011 at 18:08, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Thomas,

 My command is below, I'm using a disk cache, my config file is below.
 I'm using a local copy of MapServer for the source image generation


 ./geocache_seed -c ../geocache.xml -t ms_tileset_8 -z 0,21 -e
 -8895580.772,5411569.158,-8797157.196,5538966.276 -n 6


 ?xml version=1.0 encoding=UTF-8?
 geocache

   metadata
      titlegeocache service esx11/title
      abstractmod-geocache service/abstract
      !-- urlhttp://mysuperhost/proxy/to/geocache/url --
   /metadata

         grid name=googlemaps_grid
            metadata
               titleGoogleMapsCompatible/title

 WellKnownScaleSeturn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible/WellKnownScaleSet
            /metadata
            extent-20037508.3427892480 -20037508.3427892480
 20037508.3427892480 20037508.3427892480/extent
            srsEPSG:3857/srs
            srsaliasEPSG:900913/srsalias
            unitsm/units
            size256 256/size
            resolutions156543.0339280410 78271.51696402048
 39135.75848201023 19567.87924100512 9783.939620502561
 4891.969810251280 2445.984905125640 1222.992452562820
 611.4962262814100 305.7481131407048 152.8740565703525
 76.43702828517624 38.21851414258813 19.10925707129406
 9.554628535647032 4.777314267823516 2.388657133911758
 1.194328566955879 0.5971642834779395 0.29858214173896975
 0.149291070869484875 0.0746455354347424375/resolutions
         /grid

   cache name=disk type=disk
      base/var/mod-geocache/caches/base
      symlink_blank/
   /cache

   format name=PNGQ_FAST type =PNG
      compressionfast/compression  !-- fast or best --
      colors256/colors
   /format
   format name=myjpeg type =JPEG
      quality75/quality
   /format
   format name=PNG_BEST type =PNG
      compressionbest/compression
   /format
   format name=mixed type=MIXED
      transparentPNG_BEST/transparent
      opaqueJPEG/opaque
   /format

   source name=ms_wms type=wms
      getmap
         params
            FORMATimage/png/FORMAT
            LAYERSYORK2009/LAYERS
            TRANSPARENTtrue/TRANSPARENT
         /params
      /getmap
      http
         urlhttp://localhost.jdbarnes.com/cgi-bin/ms_wms/url
      /http
   /source

   tileset name=ms_tileset_8
      sourcems_wms/source
      cachedisk/cache
      !--grid restricted_extent=-79.8205259 43.7179074 -79.1161194
 44.4110187WGS84/grid--
      gridgooglemaps_grid/grid
      formatmixed/format
      metatile8 8/metatile
      metabuffer0/metabuffer
   /tileset

   default_formatJPEG/default_format

   service type=wmts enabled=true/
   service type=tms enabled=true/
   service type=kml enabled=true/
   service type=gmaps enabled=true/
   service type=ve enabled=true/
   service type=demo enabled=true/

   errorsreport/errors

   lock_dir/var/mod-geocache/caches/lock_dir

 /geocache

 On 6 October 2011 10:31, thomas bonfortthomas.bonf...@gmail.com  wrote:

 what seed command were you using, and what kind of cache ?

 On Thu, Oct 6, 2011 at 15:52, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Thanks Thomas

Re: [mapserver-users] MapCache - failed to remove lockfile error

2011-10-07 Thread Travis Kirstine
We checked out a version of mod-geocache on sept 22, my guess is that
it is version 0.4x.  We will check out the latest mapcache version
from the mapserver trunk.

Regards

On 7 October 2011 06:16, thomas bonfort thomas.bonf...@gmail.com wrote:
 What version of mod-geocache are you using (revision number or release
 version) ?

 On Thu, Oct 6, 2011 at 22:17, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 This doesn't seem to be a issue, I have lots of inodes left.  It
 appears that the error occurred when generating (linking)  areas with
 a large volume of transparent tiles, could this be related?

 Regards

 On 6 October 2011 14:19, Stephen Woodbridge wood...@swoodbridge.com wrote:
 Have you verified that you have not filled up the disk or run out of inodes?

 # check the diskspace with
 df -h

 # check for inode issues
 touch /path/to/cache/test.junk

 # if the touch failed then you have run out of inodes
 # otherwise clean up
 rm /path/to/cache/test.junk

 Thanks,
  -Steve W

 On 10/6/2011 12:14 PM, thomas bonfort wrote:

 I don't have a specific advice to give unfortunately. There have been
 some fixes lately (macpcache only, not mod-geocache) to the way
 multiple threads accessed the curl library that might help, so you
 might want to try with a fresh checkout from the mapserver svn.

 --
 thomas

 On Thu, Oct 6, 2011 at 18:08, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Thomas,

 My command is below, I'm using a disk cache, my config file is below.
 I'm using a local copy of MapServer for the source image generation


 ./geocache_seed -c ../geocache.xml -t ms_tileset_8 -z 0,21 -e
 -8895580.772,5411569.158,-8797157.196,5538966.276 -n 6


 ?xml version=1.0 encoding=UTF-8?
 geocache

   metadata
      titlegeocache service esx11/title
      abstractmod-geocache service/abstract
      !-- urlhttp://mysuperhost/proxy/to/geocache/url --
   /metadata

         grid name=googlemaps_grid
            metadata
               titleGoogleMapsCompatible/title

 WellKnownScaleSeturn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible/WellKnownScaleSet
            /metadata
            extent-20037508.3427892480 -20037508.3427892480
 20037508.3427892480 20037508.3427892480/extent
            srsEPSG:3857/srs
            srsaliasEPSG:900913/srsalias
            unitsm/units
            size256 256/size
            resolutions156543.0339280410 78271.51696402048
 39135.75848201023 19567.87924100512 9783.939620502561
 4891.969810251280 2445.984905125640 1222.992452562820
 611.4962262814100 305.7481131407048 152.8740565703525
 76.43702828517624 38.21851414258813 19.10925707129406
 9.554628535647032 4.777314267823516 2.388657133911758
 1.194328566955879 0.5971642834779395 0.29858214173896975
 0.149291070869484875 0.0746455354347424375/resolutions
         /grid

   cache name=disk type=disk
      base/var/mod-geocache/caches/base
      symlink_blank/
   /cache

   format name=PNGQ_FAST type =PNG
      compressionfast/compression  !-- fast or best --
      colors256/colors
   /format
   format name=myjpeg type =JPEG
      quality75/quality
   /format
   format name=PNG_BEST type =PNG
      compressionbest/compression
   /format
   format name=mixed type=MIXED
      transparentPNG_BEST/transparent
      opaqueJPEG/opaque
   /format

   source name=ms_wms type=wms
      getmap
         params
            FORMATimage/png/FORMAT
            LAYERSYORK2009/LAYERS
            TRANSPARENTtrue/TRANSPARENT
         /params
      /getmap
      http
         urlhttp://localhost.jdbarnes.com/cgi-bin/ms_wms/url
      /http
   /source

   tileset name=ms_tileset_8
      sourcems_wms/source
      cachedisk/cache
      !--grid restricted_extent=-79.8205259 43.7179074 -79.1161194
 44.4110187WGS84/grid--
      gridgooglemaps_grid/grid
      formatmixed/format
      metatile8 8/metatile
      metabuffer0/metabuffer
   /tileset

   default_formatJPEG/default_format

   service type=wmts enabled=true/
   service type=tms enabled=true/
   service type=kml enabled=true/
   service type=gmaps enabled=true/
   service type=ve enabled=true/
   service type=demo enabled=true/

   errorsreport/errors

   lock_dir/var/mod-geocache/caches/lock_dir

 /geocache

 On 6 October 2011 10:31, thomas bonfortthomas.bonf...@gmail.com  wrote:

 what seed command were you using, and what kind of cache ?

 On Thu, Oct 6, 2011 at 15:52, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Thanks Thomas,

 The complete error message is below.  Do you have any idea what would
 cause this error - why would mapcache fail to create or delete the
 lockfile.



 seeding tile 583296 1337304 21failed to remove lockfile
 /var/mod-geocache/cachesseeding tile 583304 1337296 21failed to remove
 lockfile
 /var/mod-geocache/caches/_gc_lock-21-167156-72919-ms_tileset_8:
 No such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167157-72919-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-20-83579

[mapserver-users] MapCache - failed to remove lockfile error

2011-10-06 Thread Travis Kirstine
Hi All,
I hope this is the right spot to post MapCache questions.  I had
seeded a large area and receive the error failed to remove lockfile.
 It appears that this error(s) happens at the end of the seeding but
it is hard tell as the process has been running for a few days.  Does
this error kill the seeder process or is it simply a warning?

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapCache - failed to remove lockfile error

2011-10-06 Thread Travis Kirstine
Thanks Thomas,

The complete error message is below.  Do you have any idea what would
cause this error - why would mapcache fail to create or delete the
lockfile.



seeding tile 583296 1337304 21failed to remove lockfile
/var/mod-geocache/cachesseeding tile 583304 1337296 21failed to remove
lockfile /var/mod-geocache/caches/_gc_lock-21-167156-72919-ms_tileset_8:
No such file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-21-167157-72919-ms_tileset_8: No
such file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-20-83579-36459-ms_tileset_8: No such
file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-21-167156-72918-ms_tileset_8: No
such file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-21-167159-72918-ms_tileset_8: No
such file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-21-167158-72918-ms_tileset_8: No
such file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-21-167159-72919-ms_tileset_8: No
such file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-18-20895-9114-ms_tileset_8: No such
file or directoryfailed to remove lockfile
/var/mod-geocache/caches/_gc_lock-21-167158-72919-ms_tileset_8: No
such file or directory


Regards


On 6 October 2011 09:11, thomas bonfort thomas.bonf...@gmail.com wrote:
 The log message should be more explicit, and contain the reason of the
 unsuccessful removal. In any case, looking at the code, this error
 will have interrupted the seeding process.

 regards,
 thomas

 On Thu, Oct 6, 2011 at 15:03, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 Hi All,
 I hope this is the right spot to post MapCache questions.  I had
 seeded a large area and receive the error failed to remove lockfile.
  It appears that this error(s) happens at the end of the seeding but
 it is hard tell as the process has been running for a few days.  Does
 this error kill the seeder process or is it simply a warning?

 Regards
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MapCache - failed to remove lockfile error

2011-10-06 Thread Travis Kirstine
Thomas,

My command is below, I'm using a disk cache, my config file is below.
I'm using a local copy of MapServer for the source image generation


./geocache_seed -c ../geocache.xml -t ms_tileset_8 -z 0,21 -e
-8895580.772,5411569.158,-8797157.196,5538966.276 -n 6


?xml version=1.0 encoding=UTF-8?
geocache

   metadata
  titlegeocache service esx11/title
  abstractmod-geocache service/abstract
  !-- urlhttp://mysuperhost/proxy/to/geocache/url --
   /metadata

 grid name=googlemaps_grid
metadata
   titleGoogleMapsCompatible/title
   
WellKnownScaleSeturn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible/WellKnownScaleSet
/metadata
extent-20037508.3427892480 -20037508.3427892480
20037508.3427892480 20037508.3427892480/extent
srsEPSG:3857/srs
srsaliasEPSG:900913/srsalias
unitsm/units
size256 256/size
resolutions156543.0339280410 78271.51696402048
39135.75848201023 19567.87924100512 9783.939620502561
4891.969810251280 2445.984905125640 1222.992452562820
611.4962262814100 305.7481131407048 152.8740565703525
76.43702828517624 38.21851414258813 19.10925707129406
9.554628535647032 4.777314267823516 2.388657133911758
1.194328566955879 0.5971642834779395 0.29858214173896975
0.149291070869484875 0.0746455354347424375/resolutions
 /grid

   cache name=disk type=disk
  base/var/mod-geocache/caches/base
  symlink_blank/
   /cache

   format name=PNGQ_FAST type =PNG
  compressionfast/compression !-- fast or best --
  colors256/colors
   /format
   format name=myjpeg type =JPEG
  quality75/quality
   /format
   format name=PNG_BEST type =PNG
  compressionbest/compression
   /format
   format name=mixed type=MIXED
  transparentPNG_BEST/transparent
  opaqueJPEG/opaque
   /format

   source name=ms_wms type=wms
  getmap
 params
FORMATimage/png/FORMAT
LAYERSYORK2009/LAYERS
TRANSPARENTtrue/TRANSPARENT
 /params
  /getmap
  http
 urlhttp://localhost.jdbarnes.com/cgi-bin/ms_wms/url
  /http
   /source

   tileset name=ms_tileset_8
  sourcems_wms/source
  cachedisk/cache
  !--grid restricted_extent=-79.8205259 43.7179074 -79.1161194
44.4110187WGS84/grid--
  gridgooglemaps_grid/grid
  formatmixed/format
  metatile8 8/metatile
  metabuffer0/metabuffer
   /tileset

   default_formatJPEG/default_format

   service type=wmts enabled=true/
   service type=tms enabled=true/
   service type=kml enabled=true/
   service type=gmaps enabled=true/
   service type=ve enabled=true/
   service type=demo enabled=true/

   errorsreport/errors

   lock_dir/var/mod-geocache/caches/lock_dir

/geocache

On 6 October 2011 10:31, thomas bonfort thomas.bonf...@gmail.com wrote:
 what seed command were you using, and what kind of cache ?

 On Thu, Oct 6, 2011 at 15:52, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 Thanks Thomas,

 The complete error message is below.  Do you have any idea what would
 cause this error - why would mapcache fail to create or delete the
 lockfile.



 seeding tile 583296 1337304 21failed to remove lockfile
 /var/mod-geocache/cachesseeding tile 583304 1337296 21failed to remove
 lockfile /var/mod-geocache/caches/_gc_lock-21-167156-72919-ms_tileset_8:
 No such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167157-72919-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-20-83579-36459-ms_tileset_8: No such
 file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167156-72918-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167159-72918-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167158-72918-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167159-72919-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-18-20895-9114-ms_tileset_8: No such
 file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167158-72919-ms_tileset_8: No
 such file or directory


 Regards


 On 6 October 2011 09:11, thomas bonfort thomas.bonf...@gmail.com wrote:
 The log message should be more explicit, and contain the reason of the
 unsuccessful removal. In any case, looking at the code, this error
 will have interrupted the seeding process.

 regards,
 thomas

 On Thu, Oct 6, 2011 at 15:03, Travis Kirstine traviskirst...@gmail.com 
 wrote:
 Hi All,
 I hope this is the right spot to post MapCache questions.  I had
 seeded a large area and receive the error failed to remove lockfile.
  It appears that this error(s) happens at the end of the seeding but
 it is hard tell as the process has been running for a few days.  Does
 this error

Re: [mapserver-users] MapCache - failed to remove lockfile error

2011-10-06 Thread Travis Kirstine
This doesn't seem to be a issue, I have lots of inodes left.  It
appears that the error occurred when generating (linking)  areas with
a large volume of transparent tiles, could this be related?

Regards

On 6 October 2011 14:19, Stephen Woodbridge wood...@swoodbridge.com wrote:
 Have you verified that you have not filled up the disk or run out of inodes?

 # check the diskspace with
 df -h

 # check for inode issues
 touch /path/to/cache/test.junk

 # if the touch failed then you have run out of inodes
 # otherwise clean up
 rm /path/to/cache/test.junk

 Thanks,
  -Steve W

 On 10/6/2011 12:14 PM, thomas bonfort wrote:

 I don't have a specific advice to give unfortunately. There have been
 some fixes lately (macpcache only, not mod-geocache) to the way
 multiple threads accessed the curl library that might help, so you
 might want to try with a fresh checkout from the mapserver svn.

 --
 thomas

 On Thu, Oct 6, 2011 at 18:08, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Thomas,

 My command is below, I'm using a disk cache, my config file is below.
 I'm using a local copy of MapServer for the source image generation


 ./geocache_seed -c ../geocache.xml -t ms_tileset_8 -z 0,21 -e
 -8895580.772,5411569.158,-8797157.196,5538966.276 -n 6


 ?xml version=1.0 encoding=UTF-8?
 geocache

   metadata
      titlegeocache service esx11/title
      abstractmod-geocache service/abstract
      !-- urlhttp://mysuperhost/proxy/to/geocache/url --
   /metadata

         grid name=googlemaps_grid
            metadata
               titleGoogleMapsCompatible/title

 WellKnownScaleSeturn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible/WellKnownScaleSet
            /metadata
            extent-20037508.3427892480 -20037508.3427892480
 20037508.3427892480 20037508.3427892480/extent
            srsEPSG:3857/srs
            srsaliasEPSG:900913/srsalias
            unitsm/units
            size256 256/size
            resolutions156543.0339280410 78271.51696402048
 39135.75848201023 19567.87924100512 9783.939620502561
 4891.969810251280 2445.984905125640 1222.992452562820
 611.4962262814100 305.7481131407048 152.8740565703525
 76.43702828517624 38.21851414258813 19.10925707129406
 9.554628535647032 4.777314267823516 2.388657133911758
 1.194328566955879 0.5971642834779395 0.29858214173896975
 0.149291070869484875 0.0746455354347424375/resolutions
         /grid

   cache name=disk type=disk
      base/var/mod-geocache/caches/base
      symlink_blank/
   /cache

   format name=PNGQ_FAST type =PNG
      compressionfast/compression  !-- fast or best --
      colors256/colors
   /format
   format name=myjpeg type =JPEG
      quality75/quality
   /format
   format name=PNG_BEST type =PNG
      compressionbest/compression
   /format
   format name=mixed type=MIXED
      transparentPNG_BEST/transparent
      opaqueJPEG/opaque
   /format

   source name=ms_wms type=wms
      getmap
         params
            FORMATimage/png/FORMAT
            LAYERSYORK2009/LAYERS
            TRANSPARENTtrue/TRANSPARENT
         /params
      /getmap
      http
         urlhttp://localhost.jdbarnes.com/cgi-bin/ms_wms/url
      /http
   /source

   tileset name=ms_tileset_8
      sourcems_wms/source
      cachedisk/cache
      !--grid restricted_extent=-79.8205259 43.7179074 -79.1161194
 44.4110187WGS84/grid--
      gridgooglemaps_grid/grid
      formatmixed/format
      metatile8 8/metatile
      metabuffer0/metabuffer
   /tileset

   default_formatJPEG/default_format

   service type=wmts enabled=true/
   service type=tms enabled=true/
   service type=kml enabled=true/
   service type=gmaps enabled=true/
   service type=ve enabled=true/
   service type=demo enabled=true/

   errorsreport/errors

   lock_dir/var/mod-geocache/caches/lock_dir

 /geocache

 On 6 October 2011 10:31, thomas bonfortthomas.bonf...@gmail.com  wrote:

 what seed command were you using, and what kind of cache ?

 On Thu, Oct 6, 2011 at 15:52, Travis Kirstinetraviskirst...@gmail.com
  wrote:

 Thanks Thomas,

 The complete error message is below.  Do you have any idea what would
 cause this error - why would mapcache fail to create or delete the
 lockfile.



 seeding tile 583296 1337304 21failed to remove lockfile
 /var/mod-geocache/cachesseeding tile 583304 1337296 21failed to remove
 lockfile
 /var/mod-geocache/caches/_gc_lock-21-167156-72919-ms_tileset_8:
 No such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167157-72919-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-20-83579-36459-ms_tileset_8: No such
 file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167156-72918-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167159-72918-ms_tileset_8: No
 such file or directoryfailed to remove lockfile
 /var/mod-geocache/caches/_gc_lock-21-167158-72918-ms_tileset_8: No
 such file or directoryfailed to remove 

[mapserver-users] UNION raster layers returns blank image

2011-10-03 Thread Travis Kirstine
Hi All,

I have been having some issues using the UNION option in the mapfile.
I'm trying to set up a WMS server with several source raster layers
and provide them all as a single union layer to the client.   I don't
want the source layers visible in the GetCapabilities, only the union
layer so I have been using a combination of the own_enable_request and
CONNECTIONTYPE UNION.  It seems to work in the GetCapabilites, only
the union layer appears however only blank images are returned from
the GetMap requests.  The layers portion of my mapfile is below, I
have set the ows_enable_request * in the WEB METADATA.  Any help
would be much appreciated


# York Region 2009 - Union
LAYER
NAME 0937york_union
TYPE RASTER
CONNECTIONTYPE UNION
CONNECTION
0937york_1km_mstif,0937york_5km_mstif,0937york_10km_mstif,0937york_overall_mstif
METADATA
wms_title York Region UNION
wms_extent 594999 4842001 64 4918001
END
CLASS
END
PROJECTION
init=epsg:26917
END
END
# York Region 2009 - 15cm
LAYER
NAME 0937york_1km_mstif
TYPE RASTER
TILEINDEX /var/local/data/0937YORK_1km_mstif/york_1km_mstindex
TILEITEM location
MAXSCALEDENOM 7500
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END
LAYER
NAME 0937york_5km_mstif
TYPE RASTER
TILEINDEX /var/local/data/0937YORK_5km_mstif/york_5km_mstindex
TILEITEM location
MINSCALEDENOM 7500
MAXSCALEDENOM 4
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END
LAYER
NAME 0937york_10km_mstif
TYPE RASTER
TILEINDEX /var/local/data/0937YORK_10km_mstif/york_10km_mstindex
TILEITEM location
MINSCALEDENOM 4
MAXSCALEDENOM 40
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END
LAYER
NAME 0937york_overall_mstif
TYPE RASTER
DATA /var/local/data/0937YORK_overall_mstif/0937YORK_100m_overall.tif
MINSCALEDENOM 40
OFFSITE 0 0 0
METADATA
ows_enable_request * !GetCapabilities
END
PROJECTION
init=epsg:26917
END
END


Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapfile config options - scan directory

2011-09-20 Thread Travis Kirstine
Hi All,

I saw Frank's GDAL performance tips presentation at FOSS4G and he
mentioned that a config option in a MS mapfile could be set to stop
GDAL from scanning for auxiliary files when using external tiling.  I
have looked around in the MS documentation and GDAL and cannot find
the option.  If this option was set would it stop GDAL from using
external worldfiles / overviews?

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapserver 6.0 make error

2011-05-17 Thread Travis Kirstine
Hi all,
I have been trying to install Mapserver 6.0 and I am running into the
following error.  I thought this could be related to a older version
of GEOS / GDAL so I installed gdal 1.8 and geos 3.2.2.  Any ideas

# static library if it exists.
if test -r libmapserver.so ; then \
  make shared ; \
fi
gcc -c -g  -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY
-DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FASTCGI  -DUSE_WMS_LYR
-DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH
-DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR   -DUSE_POSTGIS
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS
-DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS-DUSE_GD_GIF
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
-DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG
-DUSE_ZLIB -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2
  -I/usr/include -Irenderers/agg/include   -I/usr/local/include
-I/usr/include-I/usr/local/include  -I/usr/include
-I/usr/include/fastcgi  -I/usr/include/libxml2   shp2img.c -o
shp2img.o
g++ -g  -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT
-DNEED_STRRSTR -DUSE_FASTCGI  -DUSE_WMS_LYR -DUSE_WFS_LYR
-DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH  -DUSE_WCS_SVR
-DUSE_WFS_SVR -DUSE_WMS_SVR   -DUSE_POSTGIS
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS
-DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS-DUSE_GD_GIF
-DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT
-DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
-DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG
-DUSE_ZLIB -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2
  -I/usr/include -Irenderers/agg/include   -I/usr/local/include
-I/usr/include-I/usr/local/include  -I/usr/include
-I/usr/include/fastcgi  -I/usr/include/libxml2   shp2img.o  -L.
-lmapserver -lfreetype -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz
-lXpm -lX11  -lexpat   -lproj -ljpeg -lpng -lgif  -L/usr/local/lib
-lgdal -L/usr/lib -lpq  -L/usr/kerberos/lib -lcurl -ldl -lgssapi_krb5
-lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
-L/usr/local/lib -lgeos_c -lpthread -lc -L/usr/lib -lfcgi   -lz
-L/usr/lib -lxml2 -lz -lm  -lm -lstdc++-o shp2img
/usr/bin/ld: warning: libexpat.so.1, needed by
/usr/local/lib/libgdal.so, may conflict with libexpat.so.0
./libmapserver.a(mapgeos.o): In function `msGEOSFreeWKT':
/root/build/mapserver-6.0.0/mapgeos.c:650: undefined reference to `GEOSFree'
./libmapserver.a(mapgeos.o): In function `msGEOSSimplify':
/root/build/mapserver-6.0.0/mapgeos.c:697: undefined reference to `GEOSSimplify'
./libmapserver.a(mapgeos.o): In function `msGEOSTopologyPreservingSimplify':
/root/build/mapserver-6.0.0/mapgeos.c:719: undefined reference to
`GEOSTopologyPreserveSimplify'
/usr/local/lib/libgdal.so: undefined reference to `GEOSUnionCascaded'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] re mapserver 6.0 make error

2011-05-17 Thread Travis Kirstine
The issue was related to having the Extra Packages for Enterprise
Linux (EPEL) repository configure, this contained a version of GEOS,
removing this version fixed the issue - I hope.

Regards
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] hiding / combining layers in a wms service

2010-12-08 Thread Travis Kirstine
I am trying to combine several layers into a single layer for a wms
server while using the wms_layer_group option.  I have resampled my
source tifs so that is displayed based resolutions and map scale to
hopefully improve performance.  The drawback to this is that clients
see all layers.  Is there a way to group all layers into one while
keeping the hierarchy that is created with the wms_layer_group.

# Waterloo
LAYER
NAME waterloo_2006_10km_wms
TILEINDEX waterloo_2006_10km_wms_tindex
MAXSCALE 1800
MINSCALE 4
METADATA
wms_layer_group /Ontario/Waterloo
Region/Waterloo Region 2006
wms_title Waterloo 2006 Low Resolution
wms_extent 50 479 569998 4840001
wms_abstract Imagery from the spring of
2006.  Maximum resolution 30cm.
END
PROJECTION
 init=epsg:26917
END
TYPE RASTER
STATUS OFF
OFFSITE 0 0 0
PROCESSING RESAMPLE=BILINEAR
END
LAYER
NAME waterloo_2006_5km_wms
TILEINDEX waterloo_2006_5km_wms_tindex
MAXSCALE 4
MINSCALE 7500
METADATA
wms_layer_group /Ontario/Waterloo
Region/Waterloo Region 2006
wms_title Waterloo 2006 Medium Resolution
wms_extent 50 479 569998 4840001
wms_abstract Imagery from the spring of
2006.  Maximum resolution 30cm.
END
PROJECTION
init=epsg:26917
END
TYPE RASTER
STATUS OFF
OFFSITE 0 0 0
PROCESSING RESAMPLE=BILINEAR
END
LAYER
NAME waterloo_2006_1km_wms
TILEINDEX waterloo_2006_1km_wms_tindex
MAXSCALE 7500
METADATA
wms_layer_group /Ontario/Waterloo
Region/Waterloo Region 2006
wms_title Waterloo 2006 High Resolution
wms_extent 50 479 569998 4840001
wms_abstract Imagery from the spring of
2006.  Maximum resolution 30cm.
END
PROJECTION
init=epsg:26917
END
TYPE RASTER
STATUS OFF
OFFSITE 0 0 0
PROCESSING RESAMPLE=BILINEAR
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] wms version 1.3 bbox problems

2010-05-05 Thread Travis Kirstine
Hi,
I'm currently running ms 5.4.2 and am having difficulties with wms
version 1.3.  I am using MapInfo as the client and it seems that it is
hard coded wms version 1.3 if available from the service.  It seems
that there is bbox issue when passing GetMap request to the service.
Is there something I have to add to the mapfile to indicate the
correct bbox or projection?

MAP
NAME Montreal Map
SIZE 256 256
STATUS OFF
UNITS METERS
EXTENT -180 -90 180 90
IMAGECOLOR 155 203 231
SHAPEPATH /home/share1/data
IMAGETYPE JPEG
RESOLUTION 96
PROJECTION
init=epsg:4326
END
WEB
IMAGEPATH /home/share1/data/map_images/
IMAGEURL http:///;
METADATA
wms_onlineresource http://xx;
wms_srs EPSG:32198 EPSG:2138 EPSG:32098
EPSG:4269 EPSG:4326 EPSG:54004 # updated by user
wms_title Montreal Map # defined by user
wms_abstract  # defined by user
ows_sld_enabled false
END
END
OUTPUTFORMAT
NAME png
DRIVER GD/PNG
MIMETYPE image/png
IMAGEMODE RGBA
EXTENSION png
TRANSPARENT ON
END
OUTPUTFORMAT
NAME jpeg
DRIVER GD/JPEG
MIMETYPE image/jpeg
IMAGEMODE RGB
EXTENSION jpg
FORMATOPTION QUALITY=80
END

LAYER
NAME Imagery_1
DATA
/home/share1/www/openstream/mapfiles/xml/31_Imagery_lvl1.xml
METADATA
wms_group_abstract 
wms_group_title Imagery
wms_title Imagery_1
wms_extents -180 -85.05112877980659 180
85.0511287798066
END
PROJECTION
init=epsg:4326
END
MINSCALE 295828775
TYPE RASTER
GROUP Imagery_group
STATUS ON
PROCESSING CLOSE_CONNECTION=DEFER
PROCESSING RESAMPLE=BILINEAR
END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] wms version 1.3 bbox problems

2010-05-05 Thread Travis Kirstine
It appears that the bbox in the reverse order for 1.3, is there a work around?

wms.php?cid=27VERSION=1.3.0REQUEST=GetMapLAYERS=Imagery_groupSTYLES=CRS=EPSG:4269BBOX=-180,-90,180,90WIDTH=636HEIGHT=318FORMAT=image/pngTRANSPARENT=TRUEBGCOLOR=0xFFEXCEPTIONS=XML
HTTP/1.1 200 166460 - C:\\Program
Files\\MapInfo85\\Professional\\MAPINFOW.EXE

On 5 May 2010 12:15, Yewondwossen Assefa yass...@dmsolutions.ca wrote:
 Hi,

  What does the GetMap request looks like, specifically the bbox coordinates
 and the projection?  For wms 1.3.0, bbox coordinates are expected for
 projections such as espg:4326 to use the inverse axe order (lat/long instead
 of long/lat)?

 regards,
 On 05/05/2010 11:54 AM, Travis Kirstine wrote:

 Hi,
 I'm currently running ms 5.4.2 and am having difficulties with wms
 version 1.3.  I am using MapInfo as the client and it seems that it is
 hard coded wms version 1.3 if available from the service.  It seems
 that there is bbox issue when passing GetMap request to the service.
 Is there something I have to add to the mapfile to indicate the
 correct bbox or projection?

 MAP
         NAME Montreal Map
         SIZE 256 256
         STATUS OFF
         UNITS METERS
         EXTENT -180 -90 180 90
         IMAGECOLOR 155 203 231
         SHAPEPATH /home/share1/data
         IMAGETYPE JPEG
         RESOLUTION 96
         PROJECTION
                 init=epsg:4326
         END
         WEB
                 IMAGEPATH /home/share1/data/map_images/
                 IMAGEURL http:///;
                 METADATA
                         wms_onlineresource
 http://xx;
                         wms_srs EPSG:32198 EPSG:2138 EPSG:32098
 EPSG:4269 EPSG:4326 EPSG:54004 # updated by user
                         wms_title Montreal Map # defined by user
                         wms_abstract  # defined by user
                         ows_sld_enabled false
                 END
         END
         OUTPUTFORMAT
                 NAME png
                 DRIVER GD/PNG
                 MIMETYPE image/png
                 IMAGEMODE RGBA
                 EXTENSION png
                 TRANSPARENT ON
         END
         OUTPUTFORMAT
                 NAME jpeg
                 DRIVER GD/JPEG
                 MIMETYPE image/jpeg
                 IMAGEMODE RGB
                 EXTENSION jpg
                 FORMATOPTION QUALITY=80
         END

         LAYER
                 NAME Imagery_1
                 DATA
 /home/share1/www/openstream/mapfiles/xml/31_Imagery_lvl1.xml
                 METADATA
                         wms_group_abstract 
                         wms_group_title Imagery
                         wms_title Imagery_1
                         wms_extents -180 -85.05112877980659 180
 85.0511287798066
                 END
                 PROJECTION
                         init=epsg:4326
                 END
                 MINSCALE 295828775
                 TYPE RASTER
                 GROUP Imagery_group
                 STATUS ON
                 PROCESSING CLOSE_CONNECTION=DEFER
                 PROCESSING RESAMPLE=BILINEAR
         END
 END
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users




 --
 
 Assefa Yewondwossen
 Software Analyst

 Email: yass...@dmsolutions.ca
 http://www.dmsolutions.ca/

 Phone: (613) 565-5056 (ext 14)
 Fax:   (613) 565-0925
 



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


  1   2   >