Re: [mapserver-users] Cent OS (6) and php-mapscript

2013-04-09 Thread Peter Hopfgartner

On 04/06/2013 04:19 PM, Corey Carpenter wrote:

Hi All,

What is the best way to get php-mapscript for Cent 6? I see it is not 
in ELGIS. Will I have to compile it manually? I can definitely do 
that. If possible I would rather use a prepackaged build if they are 
available.


Thanks.


Hi Corey,

the package is there and it is called php-mapserver.

Peter

--
Peter Hopfgartner
web  : www.r3-gis.com

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


[mapserver-users] zoomable slider (looking) map from Mapserver

2013-04-09 Thread Basques, Bob (CI-StPaul)
All,

Ok, granted weird title for a posting.

I have a little reporting project that I'm thinking about related to GPS 
tracking.  Bouncing the idea off of folks here in the hopes that someone may 
have tried this somewhere else or maybe has a better way.

I need to generate a slider control for handling sorting through the GPS data 
for individual vehicles on a daily basis.  The idea is to build a rapid, 
visually oriented, lookup system for the data.  To begin with, I would like to 
start the process by querying for the data for a single GPS ID for a 24 hour 
period, generate a time based slider control that can be used to pick a point 
in time, and then have a slippy map (OpenLayers) auto zoom to that location, 
once a location has been decided on.

I found an example on the Openlayers site for the slippy map part, I have a 
service (yet to build) that can grab the location data by time increments of 24 
hours, but the slider part is looking like it might be a bit intensive if built 
in a standard way.  The data for the GPS devices can come in all sorts of time 
resolutions, some are based on 15 - 20 sec updating, while others are using 3 
sec update increments.  The resulting 24hr dataset can be somewhat sizeable as 
a result.

Here is my weird idea.  Make the Slider into a  MapServer map call that is 
aggregated at certain time increments (Map tile pyramid levels, only in a 
single direction, left/right)  if the  slider is zoomed more resolution of time 
appears for picking the location in the slippy map.  The slider becomes a real 
wide but not very tall map but only for displaying, and picking by the user a 
new time increment.  This approach should therefore compensate for browser view 
size as well as density of time data, by making an appropriately sized, scaled 
tile on demand.  It should also be adaptable in the future to starting out with 
larger time increments to show where GPS activity was, and then to zoom in on 
that time increment for detailed analysis.

Ok, I'm ready, tell me it's a stupid way to go . . .

Bobb


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


Re: [mapserver-users] zoomable slider (looking) map from Mapserver

2013-04-09 Thread Brent Fraser

Bob,

  I'm not sure I've successfully visualized your solution, but I do 
appreciate your problem.  While the web mapping community has come up 
with decent set of concepts and tools for spatially navigating data 
(pan, zoom, etc), we seem to be lacking a standard, intuitive (?) set of 
tools for temporally exploring data with a strong geospatial connection.


  Some of the temporal concepts stolen from geography that we'll have 
to deal with: event extents, event resolution/density, temporal scale 
(especially with respect to animation),...


  I think the eventual solution will be JavaScript-based, maybe nearly 
the size of OpenLayers effort.  I'm leaning towards having separate 
panel (like we tend to have for the legend, etc) for time navigation.  
For layout and interaction ideas, have a look at the D3 examples 
(https://github.com/mbostock/d3/wiki/Gallery), particularly the 
CrossFilter (http://square.github.com/crossfilter/) example.


  Sorry, no solution; just encouragement...

Best Regards,
Brent Fraser

On 4/9/2013 7:48 AM, Basques, Bob (CI-StPaul) wrote:


All,

Ok, granted weird title for a posting.

I have a little reporting project that I'm thinking about related to 
GPS tracking.  Bouncing the idea off of folks here in the hopes that 
someone may have tried this somewhere else or maybe has a better way.


I need to generate a slider control for handling sorting through the 
GPS data for individual vehicles on a daily basis.  The idea is to 
build a rapid, visually oriented, lookup system for the data.  To 
begin with, I would like to start the process by querying for the data 
for a single GPS ID for a 24 hour period, generate a time based slider 
control that can be used to pick a point in time, and then have a 
slippy map (OpenLayers) auto zoom to that location, once a location 
has been decided on.


I found an example on the Openlayers site for the slippy map part, I 
have a service (yet to build) that can grab the location data by time 
increments of 24 hours, but the slider part is looking like it might 
be a bit intensive if built in a standard way.  The data for the GPS 
devices can come in all sorts of time resolutions, some are based on 
15 -- 20 sec updating, while others are using 3 sec update 
increments.  The resulting 24hr dataset can be somewhat sizeable as a 
result.


Here is my weird idea.  Make the Slider into a  MapServer map call 
that is aggregated at certain time increments (Map tile pyramid 
levels, only in a single direction, left/right)  if the  slider is 
zoomed more resolution of time appears for picking the location in the 
slippy map.  The slider becomes a real wide but not very tall map but 
only for displaying, and picking by the user a new time increment.  
This approach should therefore compensate for browser view size as 
well as density of time data, by making an appropriately sized, scaled 
tile on demand.  It should also be adaptable in the future to starting 
out with larger time increments to show where GPS activity was, and 
then to zoom in on that time increment for detailed analysis.


Ok, I'm ready, tell me it's a stupid way to go . . .

Bobb



___
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] zoomable slider (looking) map from Mapserver

2013-04-09 Thread Stephen Woodbridge

Another idea:

With RFC 96 adding time support to mapcache, maybe it would be possible 
to create a server-side app the can request tiles from mapcache, and 
create and Flash script to display them based on your slider. Or create 
an animated gif, not that you have much control over that after it is 
created. But some ideas to chew on.


-Steve W

On 4/9/2013 11:52 AM, Brent Fraser wrote:

Bob,

   I'm not sure I've successfully visualized your solution, but I do
appreciate your problem.  While the web mapping community has come up
with decent set of concepts and tools for spatially navigating data
(pan, zoom, etc), we seem to be lacking a standard, intuitive (?) set of
tools for temporally exploring data with a strong geospatial connection.

   Some of the temporal concepts stolen from geography that we'll have
to deal with: event extents, event resolution/density, temporal scale
(especially with respect to animation),...

   I think the eventual solution will be JavaScript-based, maybe nearly
the size of OpenLayers effort.  I'm leaning towards having separate
panel (like we tend to have for the legend, etc) for time navigation.
For layout and interaction ideas, have a look at the D3 examples
(https://github.com/mbostock/d3/wiki/Gallery), particularly the
CrossFilter (http://square.github.com/crossfilter/) example.

   Sorry, no solution; just encouragement...

Best Regards,
Brent Fraser

On 4/9/2013 7:48 AM, Basques, Bob (CI-StPaul) wrote:


All,

Ok, granted weird title for a posting.

I have a little reporting project that I’m thinking about related to
GPS tracking.  Bouncing the idea off of folks here in the hopes that
someone may have tried this somewhere else or maybe has a better way.

I need to generate a slider control for handling sorting through the
GPS data for individual vehicles on a daily basis.  The idea is to
build a rapid, visually oriented, lookup system for the data.  To
begin with, I would like to start the process by querying for the data
for a single GPS ID for a 24 hour period, generate a time based slider
control that can be used to pick a point in time, and then have a
slippy map (OpenLayers) auto zoom to that location, once a location
has been decided on.

I found an example on the Openlayers site for the slippy map part, I
have a service (yet to build) that can grab the location data by time
increments of 24 hours, but the slider part is looking like it might
be a bit intensive if built in a standard way.  The data for the GPS
devices can come in all sorts of time resolutions, some are based on
15 – 20 sec updating, while others are using 3 sec update increments.
The resulting 24hr dataset can be somewhat sizeable as a result.

Here is my weird idea.  Make the Slider into a  MapServer map call
that is aggregated at certain time increments (Map tile pyramid
levels, only in a single direction, left/right)  if the  slider is
zoomed more resolution of time appears for picking the location in the
slippy map.  The slider becomes a real wide but not very tall map but
only for displaying, and picking by the user a new time increment.
This approach should therefore compensate for browser view size as
well as density of time data, by making an appropriately sized, scaled
tile on demand.  It should also be adaptable in the future to starting
out with larger time increments to show where GPS activity was, and
then to zoom in on that time increment for detailed analysis.

Ok, I’m ready, tell me it’s a stupid way to go . . .

Bobb



___
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] zoomable slider (looking) map from Mapserver

2013-04-09 Thread Puneet Kishor
With Brent in sentiments. Integration of d3 with OL and Leaflet would go a long 
way to expanding our arsenal of mapping and viz tools.



--
Puneet Kishor
Policy Coordinator for Science and Data
Creative Commons

On Apr 9, 2013, at 8:52 AM, Brent Fraser bfra...@geoanalytic.com wrote:

 Bob,
 
   I'm not sure I've successfully visualized your solution, but I do 
 appreciate your problem.  While the web mapping community has come up with 
 decent set of concepts and tools for spatially navigating data (pan, zoom, 
 etc), we seem to be lacking a standard, intuitive (?) set of tools for 
 temporally exploring data with a strong geospatial connection. 
 
   Some of the temporal concepts stolen from geography that we'll have to deal 
 with: event extents, event resolution/density, temporal scale (especially 
 with respect to animation),...
 
   I think the eventual solution will be JavaScript-based, maybe nearly the 
 size of OpenLayers effort.  I'm leaning towards having separate panel (like 
 we tend to have for the legend, etc) for time navigation.  For layout and 
 interaction ideas, have a look at the D3 examples 
 (https://github.com/mbostock/d3/wiki/Gallery), particularly the CrossFilter 
 (http://square.github.com/crossfilter/) example.
 
   Sorry, no solution; just encouragement...
 Best Regards,
 Brent Fraser
 On 4/9/2013 7:48 AM, Basques, Bob (CI-StPaul) wrote:
 All,
  
 Ok, granted weird title for a posting.
  
 I have a little reporting project that I’m thinking about related to GPS 
 tracking.  Bouncing the idea off of folks here in the hopes that someone may 
 have tried this somewhere else or maybe has a better way.
  
 I need to generate a slider control for handling sorting through the GPS 
 data for individual vehicles on a daily basis.  The idea is to build a 
 rapid, visually oriented, lookup system for the data.  To begin with, I 
 would like to start the process by querying for the data for a single GPS ID 
 for a 24 hour period, generate a time based slider control that can be used 
 to pick a point in time, and then have a slippy map (OpenLayers) auto zoom 
 to that location, once a location has been decided on.
  
 I found an example on the Openlayers site for the slippy map part, I have a 
 service (yet to build) that can grab the location data by time increments of 
 24 hours, but the slider part is looking like it might be a bit intensive if 
 built in a standard way.  The data for the GPS devices can come in all sorts 
 of time resolutions, some are based on 15 – 20 sec updating, while others 
 are using 3 sec update increments.  The resulting 24hr dataset can be 
 somewhat sizeable as a result.
  
 Here is my weird idea.  Make the Slider into a  MapServer map call that is 
 aggregated at certain time increments (Map tile pyramid levels, only in a 
 single direction, left/right)  if the  slider is zoomed more resolution of 
 time appears for picking the location in the slippy map.  The slider becomes 
 a real wide but not very tall map but only for displaying, and picking by 
 the user a new time increment.  This approach should therefore compensate 
 for browser view size as well as density of time data, by making an 
 appropriately sized, scaled tile on demand.  It should also be adaptable in 
 the future to starting out with larger time increments to show where GPS 
 activity was, and then to zoom in on that time increment for detailed 
 analysis.
  
 Ok, I’m ready, tell me it’s a stupid way to go . . .
  
 Bobb
  
  
 
 
 ___
 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] zoomable slider (looking) map from Mapserver

2013-04-09 Thread Basques, Bob (CI-StPaul)
Brent,

I did look at the D3 stuff a while back.  I liked the visualizations, but for 
some reason it looked like overkill for (me and) my temporal needs.

I'm of the mind that whatever I put together now will likely just be a step 
towards something more streamlined as a second coming.  I think more thought 
needs to be applied to the user experience and tech design elements before 
deciding on a best approach.  With that in mind, I think I'm going to build it 
out with the intent that it's not likely going to be the final version.

Bobb



From: Brent Fraser [mailto:bfra...@geoanalytic.com]
Sent: Tuesday, April 09, 2013 10:53 AM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] zoomable slider (looking) map from Mapserver

Bob,

  I'm not sure I've successfully visualized your solution, but I do appreciate 
your problem.  While the web mapping community has come up with decent set of 
concepts and tools for spatially navigating data (pan, zoom, etc), we seem to 
be lacking a standard, intuitive (?) set of tools for temporally exploring data 
with a strong geospatial connection.

  Some of the temporal concepts stolen from geography that we'll have to deal 
with: event extents, event resolution/density, temporal scale (especially with 
respect to animation),...

  I think the eventual solution will be JavaScript-based, maybe nearly the size 
of OpenLayers effort.  I'm leaning towards having separate panel (like we tend 
to have for the legend, etc) for time navigation.  For layout and interaction 
ideas, have a look at the D3 examples 
(https://github.com/mbostock/d3/wiki/Gallery), particularly the CrossFilter 
(http://square.github.com/crossfilter/) example.

  Sorry, no solution; just encouragement...


Best Regards,

Brent Fraser
On 4/9/2013 7:48 AM, Basques, Bob (CI-StPaul) wrote:
All,

Ok, granted weird title for a posting.

I have a little reporting project that I'm thinking about related to GPS 
tracking.  Bouncing the idea off of folks here in the hopes that someone may 
have tried this somewhere else or maybe has a better way.

I need to generate a slider control for handling sorting through the GPS data 
for individual vehicles on a daily basis.  The idea is to build a rapid, 
visually oriented, lookup system for the data.  To begin with, I would like to 
start the process by querying for the data for a single GPS ID for a 24 hour 
period, generate a time based slider control that can be used to pick a point 
in time, and then have a slippy map (OpenLayers) auto zoom to that location, 
once a location has been decided on.

I found an example on the Openlayers site for the slippy map part, I have a 
service (yet to build) that can grab the location data by time increments of 24 
hours, but the slider part is looking like it might be a bit intensive if built 
in a standard way.  The data for the GPS devices can come in all sorts of time 
resolutions, some are based on 15 - 20 sec updating, while others are using 3 
sec update increments.  The resulting 24hr dataset can be somewhat sizeable as 
a result.

Here is my weird idea.  Make the Slider into a  MapServer map call that is 
aggregated at certain time increments (Map tile pyramid levels, only in a 
single direction, left/right)  if the  slider is zoomed more resolution of time 
appears for picking the location in the slippy map.  The slider becomes a real 
wide but not very tall map but only for displaying, and picking by the user a 
new time increment.  This approach should therefore compensate for browser view 
size as well as density of time data, by making an appropriately sized, scaled 
tile on demand.  It should also be adaptable in the future to starting out with 
larger time increments to show where GPS activity was, and then to zoom in on 
that time increment for detailed analysis.

Ok, I'm ready, tell me it's a stupid way to go . . .

Bobb






___

mapserver-users mailing list

mapserver-users@lists.osgeo.orgmailto: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 the GoogleCRS84Quad TileMatrixSet

2013-04-09 Thread Armin Burger

Dear all

I have a question regarding the GoogleCRS84Quad TileMatrixSet defined in 
MapCache. MapCache specifies this in the docs with the first level [0] 
as pixel resolution 0.70312500 deg, and an extent of

  extent-180 -90 180 90/extent

and returns the GoogleCRS84Quad TileMatrixSet in the Capabilities 
response like


TileMatrixSet
  IdentifierWGS84/Identifier
  TitleGoogleCRS84Quad/Title
  SupportedCRSurn:ogc:def:crs:EPSG:6.3:4326/SupportedCRS
  BoundingBox crs=urn:ogc:def:crs:EPSG:6.3:4326
LowerCorner-180.00 -90.00/LowerCorner
UpperCorner180.00 90.00/UpperCorner
  /BoundingBox

WellKnownScaleSeturn:ogc:def:wkss:OGC:1.0:GoogleCRS84Quad/WellKnownScaleSet
  TileMatrix
Identifier0/Identifier
ScaleDenominator279541132.01435887813568115234/ScaleDenominator
TopLeftCorner90.00 -180.00/TopLeftCorner
TileWidth256/TileWidth
TileHeight256/TileHeight
MatrixWidth2/MatrixWidth
MatrixHeight1/MatrixHeight
  /TileMatrix
  .
/TileMatrixSet

This looks clear and logical, but the OGC specs at
  http://portal.opengeospatial.org/files/?artifact_id=35326
define this TileMatrixSet differently as

E.3 GoogleCRS84Quad (urn:ogc:def:wkss:OGC:1.0:GoogleCRS84Quad)
This well-known scale set has been defined to allow quadtree pyramids in 
CRS84. Level 0 allows representing the whole world in a single 256x256 
pixels (where the first 64 and last 64 lines of the tile are left 
blank). The next level represents the whole world in 2x2
tiles of 256x256 pixels and so on in powers of 2. Scale denominator is 
only accurate near the equator.


The level 0 in the OGC specs uses a resolution of 1.40625000.

The tile 0/0/0 in MapCache is not a single tile as in the OGC specs but 
the first out of 2 tiles for this level, correctly defined with 
MatrixWidth 2 and MatrixHeight 1 (level 1 has 4x2 tiles). For me the OGC 
specs are not logical, because the TopLeft corner would correspond to 
180 -180 degrees which makes no sense for me, but somehow they are 
regarded as the default specs...


So the XML definition of the OGC specs should probably result in 
something like


  TileMatrix
Identifier0/Identifier
ScaleDenominator559082264.0287178/ScaleDenominator
TopLeftCorner180.00 -180.00/TopLeftCorner
TileWidth256/TileWidth
TileHeight256/TileHeight
MatrixWidth1/MatrixWidth
MatrixHeight1/MatrixHeight
  /TileMatrix

Unfortunately the OGC doc does not provide this matrix set's full 
definition in XML to check this.



So I'm wondering which is the correct definition? And any idea how to 
deal with this discrepancy?


Thanks
Armin






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


[mapserver-users] How to pass variables to a query template?

2013-04-09 Thread Bistrais, Bob
I have some code which sends query results to a template for display, using the 
MapServer processquerytemplate method.  This works fine, but I'd also like to 
pass a variable to the template to be output in the result as well.  I have 
been looking at the documentation on templates, 
http://mapserver.org/mapfile/template.html , and saw the [post or get variable 
name].  This looks promising but I'm not sure how to use this with 
PHP-Mapscript.  How does one do this?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How to pass variables to a query template?

2013-04-09 Thread Brent Fraser

Bob,

  Since you are using PHP Mapscript, you have to add that step to your 
PHP script yourself.  You may be able to simply put the request array 
into the parameter list:


$results = $map-processquerytemplate($_REQUEST, false);

or you may have to do some array massaging before passing the Request 
keyword/values to the processquerytemplate function...


Best Regards,
Brent Fraser

On 4/9/2013 1:58 PM, Bistrais, Bob wrote:


I have some code which sends query results to a template for display, 
using the MapServer processquerytemplate method.  This works fine, but 
I'd also like to pass a variable to the template to be output in the 
result as well.  I have been looking at the documentation on 
templates, http://mapserver.org/mapfile/template.html 
http://mapserver.org/mapfile/template.html , and saw the [post or 
get variable name].  This looks promising but I'm not sure how to use 
this with PHP-Mapscript.  How does one do this?




___
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] How to pass variables to a query template?

2013-04-09 Thread Bistrais, Bob
Thanks Brent,
That give me something to go on and a few ideas.

From: Brent Fraser [mailto:bfra...@geoanalytic.com]
Sent: Tuesday, April 09, 2013 4:16 PM
To: Bistrais, Bob
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to pass variables to a query template?

Bob,

  Since you are using PHP Mapscript, you have to add that step to your PHP 
script yourself.  You may be able to simply put the request array into the 
parameter list:

$results = $map-processquerytemplate($_REQUEST, false);

or you may have to do some array massaging before passing the Request 
keyword/values to the processquerytemplate function...



Best Regards,

Brent Fraser
On 4/9/2013 1:58 PM, Bistrais, Bob wrote:
I have some code which sends query results to a template for display, using the 
MapServer processquerytemplate method.  This works fine, but I'd also like to 
pass a variable to the template to be output in the result as well.  I have 
been looking at the documentation on templates, 
http://mapserver.org/mapfile/template.html , and saw the [post or get variable 
name].  This looks promising but I'm not sure how to use this with 
PHP-Mapscript.  How does one do this?




___

mapserver-users mailing list

mapserver-users@lists.osgeo.orgmailto: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