Re: [mapserver-users] Need example of using a tabular select to retieve metadata for a label

2018-08-23 Thread Basques, Bob (CI-StPaul)
Steve,

Fuuny,  I already figured out that I (or mapserver) needs a spatial element as 
a return.  I thought about the Extent idea as well, and have been working on 
using a dummy point in a dummy table to get around it, but maybe the extent 
piece is the way to go, and it would be a good addition to the metadata anyway. 
 I can just add the City Bounds enmasse to begin with, and adjust as needed 
down the line.

bobb



On Aug 23, 2018, at 3:49 PM, Lime, Steve D (MNIT) 
mailto:steve.l...@state.mn.us>> wrote:

I think you’d have to associate geometries with the text regardless since 
MapServer will always apply a spatial filter (based on extent) in addition to 
whatever non-spatial filter you populate. I could see tying the extent of your 
project – either a rect or some fancy geometry to each bit of disclaimer text 
so the spatial filter would always evaluate to true. Might also be possible to 
use non-map coordinates. You see that typically with inline layers. I might 
have other ideas if you provided a bit more detail…

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Basques, Bob (CI-StPaul)
Sent: Thursday, August 23, 2018 10:58 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Need example of using a tabular select to retieve 
metadata for a label

I’m trying to use a tabular (no spatial field) SQL metadata call to populate a 
disclaimer notice in a image output.

Anyone tried this and have an example handy?

Thanks

bobb




I took a speed reading course and read ‘War and Peace’ in twenty minutes. It 
involves Russia.
—Woody Allen



The third-rate mind is only happy when it is thinking with the majority. The 
second-rate mind is only happy when it is thinking with the minority. The 
first-rate mind is only happy when it is thinking.
—A. A. Milne

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

Re: [mapserver-users] Need example of using a tabular select to retieve metadata for a label

2018-08-23 Thread Lime, Steve D (MNIT)
I think you’d have to associate geometries with the text regardless since 
MapServer will always apply a spatial filter (based on extent) in addition to 
whatever non-spatial filter you populate. I could see tying the extent of your 
project – either a rect or some fancy geometry to each bit of disclaimer text 
so the spatial filter would always evaluate to true. Might also be possible to 
use non-map coordinates. You see that typically with inline layers. I might 
have other ideas if you provided a bit more detail…

--Steve

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Basques, Bob (CI-StPaul)
Sent: Thursday, August 23, 2018 10:58 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Need example of using a tabular select to retieve 
metadata for a label

I’m trying to use a tabular (no spatial field) SQL metadata call to populate a 
disclaimer notice in a image output.

Anyone tried this and have an example handy?

Thanks

bobb




I took a speed reading course and read ‘War and Peace’ in twenty minutes. It 
involves Russia.
—Woody Allen

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

[mapserver-users] Need example of using a tabular select to retieve metadata for a label

2018-08-23 Thread Basques, Bob (CI-StPaul)
I’m trying to use a tabular (no spatial field) SQL metadata call to populate a 
disclaimer notice in a image output.

Anyone tried this and have an example handy?

Thanks

bobb





I took a speed reading course and read ‘War and Peace’ in twenty minutes. It 
involves Russia.
—Woody Allen

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

Re: [mapserver-users] New mappyfile release (with CLI)

2018-08-23 Thread Seth G
Hi Richard,

Thanks for the feedback. Debian packaging has been created (for
mappyfile 0.7.2):
https://github.com/geographika/mappyfile/issues/59

sudo add-apt-repository ppa:ubuntugis/ubuntugis-experimental sudo apt-
get update sudo apt-get install python-mappyfile sudo apt-get install
python3-mappyfileWith regards to the modulo operator - I wasn't aware it was 
possible! It
isn't documented at https://mapserver.org/mapfile/expressions.html and
doesn't appear in any of the msautotest Mapfiles.It is easy enough to add it to 
the Mapfile grammar, so will be in the
next release.
Thanks Tom for the kind words on the project.

Seth

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


On Thu, Aug 23, 2018, at 3:07 PM, Richard Greenwood wrote:
> Based on Tom's comments I figured that I'd better try out mappyfile. I
> ran into a couple issues.> Installing on Ubuntu 18.04 required 
> python-setuptools (sudo apt-get
> install python-setuptools)> mappyfile validated failed on the '%' modulo 
> operator in an
> expression:> EXPRESSION ( ([height] % 50) = 0 )
> 
> 
> 
> On Wed, Aug 22, 2018 at 7:10 PM Kralidis, Tom (EC)
>  wrote:>> We're using mappyfile in our projects and I 
> must say it is a
>> fantastic tool>>  for mapfile composition workflows.  Great job!
>> 
>>  Thanks for the release (and thanks to Hobu who introduced me to
>>  Seth, who>>  introduced me to mappyfile at the code sprint in Bonn earlier 
>> this
>>  year).>> 
>>  ..Tom
>> 
>>  > -Original Message-
>>  > From: mapserver-users  On>>  > 
>> Behalf Of Seth G
>>  > Sent: August 22, 2018 20:21
>>  > To: mapserver-users@lists.osgeo.org
>>  > Subject: [mapserver-users] New mappyfile release (with CLI)
>>  > 
>>  > Hi list,
>>  > 
>>  > Just to let you know there is a new release of mappyfile (0.7.3).
>>  > If you're not>>  > aware of the project it is a Python library for 
>> working with
>>  > Mapfiles, and can>>  > be installed with "pip install mappyfile".
>>  > 
>>  > The latest release has 2 command line programs for formatting, and>>  > 
>> validating Mapfiles. See
>>  > https://mappyfile.readthedocs.io/en/latest/client.html for
>>  > details. In>>  > summary you can run:
>>  > 
>>  > mappyfile format valid.map valid_formatted.map
>>  > 
>>  > And:
>>  > 
>>  > mappyfile validate valid.map
>>  > 
>>  > 
>>  > The project is released under an MIT licence, and sourcecode
>>  > available at>>  > https://github.com/geographika/mappyfile
>>  > 
>>  > If anyone has valid Mapfiles that don't validate please create an
>>  > issue on>>  > Github, or send them on to me directly.
>>  > 
>>  > Regards,
>>  > 
>>  > Seth
>>  > 
>>  > --
>>  > web:http://geographika.co.uk
>>  > twitter: @geographika
>>  > ___
>>  > 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
> 
> 
> -- 
> Richard W. Greenwood, PLS
> www.greenwoodmap.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

Re: [mapserver-users] New mappyfile release (with CLI)

2018-08-23 Thread Richard Greenwood
Based on Tom's comments I figured that I'd better try out mappyfile. I ran
into a couple issues.
Installing on Ubuntu 18.04 required python-setuptools (sudo apt-get install
python-setuptools)
mappyfile validated failed on the '%' modulo operator in an expression:
EXPRESSION ( ([height] % 50) = 0 )



On Wed, Aug 22, 2018 at 7:10 PM Kralidis, Tom (EC) 
wrote:

> We're using mappyfile in our projects and I must say it is a fantastic tool
> for mapfile composition workflows.  Great job!
>
> Thanks for the release (and thanks to Hobu who introduced me to Seth, who
> introduced me to mappyfile at the code sprint in Bonn earlier this year).
>
> ..Tom
>
> > -Original Message-
> > From: mapserver-users  On
> > Behalf Of Seth G
> > Sent: August 22, 2018 20:21
> > To: mapserver-users@lists.osgeo.org
> > Subject: [mapserver-users] New mappyfile release (with CLI)
> >
> > Hi list,
> >
> > Just to let you know there is a new release of mappyfile (0.7.3). If
> you're not
> > aware of the project it is a Python library for working with Mapfiles,
> and can
> > be installed with "pip install mappyfile".
> >
> > The latest release has 2 command line programs for formatting, and
> > validating Mapfiles. See
> > https://mappyfile.readthedocs.io/en/latest/client.html for details. In
> > summary you can run:
> >
> > mappyfile format valid.map valid_formatted.map
> >
> > And:
> >
> > mappyfile validate valid.map
> >
> >
> > The project is released under an MIT licence, and sourcecode available at
> > https://github.com/geographika/mappyfile
> >
> > If anyone has valid Mapfiles that don't validate please create an issue
> on
> > Github, or send them on to me directly.
> >
> > Regards,
> >
> > Seth
> >
> > --
> > web:http://geographika.co.uk
> > twitter: @geographika
> > ___
> > 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



-- 
Richard W. Greenwood, PLS
www.greenwoodmap.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users