[mapserver-users] SHPXY output formatting, how can I drop the comma in the X/Y separator??

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Thu Mar 2 14:10:48 PST 2017


I had an enmail all written after the first couple of list replies, but thought better of it and didn’t send it.  Maybe it’s simply a matter of autgementing the Docs with additional examples for formatting.

A couple of more lines in the docs like so:

Just add this to the bootom of the SHPXY example(s):


As a(nother) simple example:

 [shpxy precision=“2” xh=“(“ yf=“)”]  will result in: (x1,y1) (x2,y2) (x3,y3)   ## I think this is the correction to the existing line in the Docs . . . at least it’s what I was experiencing.

or

[shpxy precision=“2” xf=“ “ xh="(" yf=")"]  will result in: (x1 y1) (x2 y2) (x3 y3)

bobb




On Mar 2, 2017, at 2:36 PM, Lime, Steve D (MNIT) <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>> wrote:

Seems to me this is confusion on what a coordinate is. X and y are parts of a coordinate so cs is the separator between xy pairs. That could be made a bit clearer I suppose.

-----Original Message-----
From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Thursday, March 02, 2017 2:07 PM
To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] SHPXY output formatting, how can I drop the comma in the X/Y separator??

Maybe the docs should be updated. If nothing else at least open a ticket
with this additional information.

-Steve W

On 3/2/2017 2:09 PM, Lime, Steve D (MNIT) wrote:
The yh would have the same effect IF you set xf to "" - you have to
overcome the defaults. --Steve

------------------------------------------------------------------------
*From:* Basques, Bob (CI-StPaul) [bob.basques at ci.stpaul.mn.us<mailto:bob.basques at ci.stpaul.mn.us>]
*Sent:* Thursday, March 02, 2017 1:07 PM
*To:* Lime, Steve D (MNIT)
*Cc:* mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
*Subject:* Re: SHPXY output formatting, how can I drop the comma in the
X/Y separator??

Thanks Steve,

That did it, but it wasn’t obvious from the docs that the before/after
options would supersede the separators.  I mean, shouldn’t yh= do the
same thing, it doesn’t, is just adds in a space?

Anyway, it worked.


Now that I read the docs in more detail, it does say that the default
for xf=“,”.  So that explains that.

Sorry to bother.




On Mar 2, 2017, at 12:48 PM, Lime, Steve D (MNIT)
<Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us> <mailto:Steve.Lime at state.mn.us>> wrote:

Try xf=” “…

Steve

*From:* mapserver-users
[mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf
Of *Basques, Bob (CI-StPaul)
*Sent:* Thursday, March 02, 2017 12:40 PM
*To:* mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
<mailto:mapserver-users at lists.osgeo.org>
*Subject:* [mapserver-users] SHPXY output formatting, how can I drop
the comma in the X/Y separator??

All,

I’m using this in my Template:


    ([shpxy precision="6" xh="(" yf=")"])


and it’s returning each group of coordinates for a polyline like this:


   ((576829.620110,157690.579906) (576835.359928,157694.480161) (576845.120079,157701.119911))

and I need it to look like this:

   ((576829.620110 157690.579906) (576835.359928 157694.480161) (576845.120079 157701.119911))

No commas.  Is there a way to set a “ “ as the separator?  “the “cs” parameter is not it, that separates the pair groups.

Thanks





"In the end, everything is a gag."
- Charlie Chaplin



Work like you don’t need money, love like you’ve never been hurt, and
dance like no one’s watching
—Unknown Author



_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


"In the end, it's not the years in your life that count. It's the life in your years.”
-  Abraham Lincoln


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170302/784b49b4/attachment-0001.html>


More information about the mapserver-users mailing list