Re: [mapserver-users] Listing mapfile dependencies

2016-01-22 Thread Newcomb, Doug
Planning on submitting a presentation to one of the upcoming FOSS4G
conferences?

Doug

On Fri, Jan 22, 2016 at 3:08 PM, James Klassen  wrote:

> Is there a good way to list all of the dependencies (files, URLs, database
> connections, etc.) of a mapfile?
>
> I am trying to automate synchronizing mapfiles from our main server to
> Raspberry Pis to be used as mini-servers in the field.  To save space, I'd
> like to automatically get a list of all the files a particular mapfile
> depends on and only copy those instead of copying full directory trees
> which have many (large) unnecessary files.
>
> It seems like a complete solution might be very complex undertaking given
> the number of places resources can be referenced from: TILEINDEX, GDAL/OGR
> connections (vrt), TEMPLATES, data generated URLs formed inside of
> TEMPLATES, database connections, files that are really multiple files
> (.shp, .wld), etc.
>
> I can write something that deals with the subset of MapServer that we use,
> but was wondering if anyone had started something similar.
>
> Jim Klassen
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
Doug Newcomb
USFWS
Raleigh, NC
919-856-4520 ext. 14 doug_newc...@fws.gov
-
The opinions I express are my own and are not representative of the
official policy of the U.S.Fish and Wildlife Service or Dept. of the
Interior.   Life is too short for undocumented, proprietary data formats.
As a federal employee, my email may be subject to FOIA request.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Listing mapfile dependencies

2016-01-22 Thread James Klassen
We are basically building a smaller version of our production server:

* Raspberry Pi 2 Model B running Raspbian Jessie with a fast SD card (a
fast SD card is critical)
* MapServer 6.4 compiled from source (we apply a couple of minor patches),
although I think mapserver is in the OS repository too.
* PostGIS
* GeoMoose
* A bunch of ruby services (in lieu of the standard PHP ones, again to
match our production build, not because of any Pi specific problems with
PHP)

It doesn't compete speed wise with the regular servers (somewhere between
2x and 30x slower depending on the task), but it is usably responsive for
one or two users. The biggest limitation is having to be choosy about what
data goes on it because SD cards are a lot smaller than the SAN.


On Fri, Jan 22, 2016 at 2:47 PM, Fawcett, David (MNIT) <
david.fawc...@state.mn.us> wrote:

> You guys are running Mapserver on a Pi?  I want to hear more about that!
>
>
>
>
>
>
>
> *From:* mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] *On
> Behalf Of *James Klassen
> *Sent:* Friday, January 22, 2016 2:08 PM
> *To:* mapserver-users@lists.osgeo.org
> *Subject:* [mapserver-users] Listing mapfile dependencies
>
>
>
> Is there a good way to list all of the dependencies (files, URLs, database
> connections, etc.) of a mapfile?
>
> I am trying to automate synchronizing mapfiles from our main server to
> Raspberry Pis to be used as mini-servers in the field.  To save space, I'd
> like to automatically get a list of all the files a particular mapfile
> depends on and only copy those instead of copying full directory trees
> which have many (large) unnecessary files.
>
> It seems like a complete solution might be very complex undertaking given
> the number of places resources can be referenced from: TILEINDEX, GDAL/OGR
> connections (vrt), TEMPLATES, data generated URLs formed inside of
> TEMPLATES, database connections, files that are really multiple files
> (.shp, .wld), etc.
>
> I can write something that deals with the subset of MapServer that we use,
> but was wondering if anyone had started something similar.
>
> Jim Klassen
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Listing mapfile dependencies

2016-01-22 Thread Fawcett, David (MNIT)
You guys are running Mapserver on a Pi?  I want to hear more about that!



From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of James Klassen
Sent: Friday, January 22, 2016 2:08 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Listing mapfile dependencies

Is there a good way to list all of the dependencies (files, URLs, database 
connections, etc.) of a mapfile?

I am trying to automate synchronizing mapfiles from our main server to 
Raspberry Pis to be used as mini-servers in the field.  To save space, I'd like 
to automatically get a list of all the files a particular mapfile depends on 
and only copy those instead of copying full directory trees which have many 
(large) unnecessary files.
It seems like a complete solution might be very complex undertaking given the 
number of places resources can be referenced from: TILEINDEX, GDAL/OGR 
connections (vrt), TEMPLATES, data generated URLs formed inside of TEMPLATES, 
database connections, files that are really multiple files (.shp, .wld), etc.

I can write something that deals with the subset of MapServer that we use, but 
was wondering if anyone had started something similar.
Jim Klassen
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Listing mapfile dependencies

2016-01-22 Thread James Klassen
Is there a good way to list all of the dependencies (files, URLs, database
connections, etc.) of a mapfile?

I am trying to automate synchronizing mapfiles from our main server to
Raspberry Pis to be used as mini-servers in the field.  To save space, I'd
like to automatically get a list of all the files a particular mapfile
depends on and only copy those instead of copying full directory trees
which have many (large) unnecessary files.

It seems like a complete solution might be very complex undertaking given
the number of places resources can be referenced from: TILEINDEX, GDAL/OGR
connections (vrt), TEMPLATES, data generated URLs formed inside of
TEMPLATES, database connections, files that are really multiple files
(.shp, .wld), etc.

I can write something that deals with the subset of MapServer that we use,
but was wondering if anyone had started something similar.

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

[mapserver-users] mapscript collapses

2016-01-22 Thread Ahmet Temiz
Hi,

when I work with mapscript  (java), I am getting this error message:
jvm "fatal flex scanner internal error--end of buffer missed"

I am using mapscript 7.

Do you have any idea why this happens ?

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Bilgi İşlem  Dairesi Başkanlığı-CBS Grubu




Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] limit max execution time in cgi?

2016-01-22 Thread Jeff McKenna

On 2016-01-21 1:55 PM, Mark Volz wrote:

Hello,

Is there a way to limit the maximum execution time in mapserver.exe / MS4W?

Thanks

Sincerely,

*Mark Volz, GISP*



Hi Mark,

Please don't forget to share your findings and this discussion direct 
with the MS4W community (subscribe at 
http://lists.ms4w.com/mailman/listinfo/ms4w-users); you may also feel 
like documenting your steps, which you could do on the MS4W wiki at: 
http://www.ms4w.com/trac/wiki  It does very well for karma.


thanks, and have a great weekend,

-jeff


Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



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