Re: [MapServer-users] [GeoMoose-users] OSGeo Local Chapter meeting - Twin Cities, for Nov. 9th

2023-11-08 Thread Dan Little via MapServer-users
Is this for tonight’s usual meet up (Wednesdays) or really for tomorrow
(the 9th)?

On Wed, Nov 1, 2023 at 17:24 Bob Basques via GeoMoose-users <
geomoose-us...@lists.osgeo.org> wrote:

> All,
>
>
>
> Casting out a call for presenters for our next Local chapter meeting. I
> can set up a Virtual presentation at the meeting for presenters.
>
>
>
> The Meeting will take place at:  https://www.liftbridgebrewery.com/
>
>
>
> https://maps.app.goo.gl/h4cQF9PGDZcNiYgXA
>
>
>
> 1900 Tower Dr. W,
> Stillwater MN 55082
>
>
>
> Time : 4:30pm – 6:00
>
>
>
> Bobb
>
>
>
>
>
>
>
> Get me in Teams
> 
>
> *PW19-S295-C024*
>
>
>
>
> ___
> GeoMoose-users mailing list
> geomoose-us...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] [Geomoose-users] REMINDER: OSGeo Local Chapter (aka TCMUG) Meeting

2018-11-13 Thread Dan Little
See y'all there!

On Tue, Nov 13, 2018 at 10:55 AM Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> All,
>
> Trying something a little different here.  Let me know if the CAL entry
> messes up your incoming email.   Did a little test last week, and there
> didn’t seem to be any big mishaps.
>
> So, reminder, next meeting at Birch’s 
>  Lowertown
>
> https://birchslowertown.com/
>
>
>
> *TCMUG Meeting*
>
> Scheduled: Nov 14, 2018 at 4:30 PM to 6:00 PM
>
> Location: https://goo.gl/maps/bGbAiF5h6Dn
>
> https://birchslowertown.com/
>
> Basques, Bob (CI-StPaul)
> bob.basq...@ci.stpaul.mn.us
>
>
>
> ___
> Geomoose-users mailing list
> geomoose-us...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] enabling browser cache from Mapcache?

2018-05-30 Thread Dan Little
Please take a moment to do a bit more reading about how browser caching
works:
-
https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching

You cannot directly control what the browser chooses to cache but you can
use mod_expiry and friendly-reusable URLs (like XYZ tiles) to help in that
cause.  Repetitive WMS requests will be caught by the cache but it's much
harder to get a hit as it will change when the screen size, resolution, or
small shifts in locations differ.

To directly answer your questions:
1. No, you are not correct. The browser CAN cache those requests.
2. Yes, the browser will cache those images.

Cheers.

On Wed, May 30, 2018 at 11:41 AM Mark Volz  wrote:

> Hello,
>
>
>
> Using Apache, I would like to know if it is possible to set up a browser
> cache for images from mapcache so that images are stored on the client
> machine instead of having to get resent from the server.  I enabled
> mod_expires and noticed that the png files for the buttons are cached
> unfortunately the mapcache png files are not cached.  I presume it might
> not be possible to cache images from mapcache when used in WMS mode, but it
> might be possible when using either WMTS, or TMS mode.
>
>
>
> Questions:
>
> 1.   Am I correct that we cannot use browser or client caching with
> mapcache in wms mode?
>
> 2.   Can we use browser cache when using WMTS or TMS services?
>
>
>
> I am using GeoMOOSE which should be able to consume xyz TMS tiles.
>
>
>
> 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] mapserver 4.8.3 errorsing libgd 2.0.16 (or higher) from ....

2018-03-06 Thread Dan Little
I believe on RedHat-centric systems it's the "-devel" pacakges.  I don't
remember if it's "gd2-devel" or "libgd2-devel" but those would contain the
gd.h file.

That looks like a VERY OLD set of installed software. PHP 4.4.2 is
potentially even unsafe to be using on the server.

On Tue, Mar 6, 2018 at 1:58 PM, DamienZINS  wrote:

> Thanks but
>
> what do you mean by : "Have you installed the headers for GD?" ?
>
> to move to a newer version of MapServer: which one 7.07
>  the question is : which is the good version MapServer for the others
> sources installation
> >> installation de freetype-2.8 <<
> >> installation de zlib-1.2.11 <<
> >> installation de libpng-1.6.32 <<
> >> installation de proj-4.9.3 <<
> >> installation de jpegsrc.v9b <<
> >> installation de libiconv-1.15 <<
> >> installation de libgd-2.2.5 <<
> >> installation de gdal-2.2.1 <<
> >> installation de apr-1.6.2 <<
> >> installation de apr-util-1.6.0 <<
> >> installation de pcre-8.41 <<
> >> installation de httpd-2.4.27 <<
> >> installation de tomcat-connectors-1.2.42-src <<
> >> installation de php-4.4.2 <<
>
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-
> f4226646.html
> ___
> 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 4.8.3 errorsing libgd 2.0.16 (or higher) from ....

2018-03-06 Thread Dan Little
Have you installed the headers for GD? And depending on the complexity of
your Mapfiles, it might be a good time to move to a newer version of
MapServer.  There have been a number of significant improvements since
4.8.3.

On Tue, Mar 6, 2018 at 4:26 AM, DamienZINS  wrote:

> Hi
>
> I must translate a SOLARIS version in CENTOS 7 OS version
> Above i put all versions sourve that i use
>
> In the file configure from mapserver 4.8.3, for me $IS_GD2 will be never
> true
> then compilation stop with
> configure: error: Could not find gd.h or libgd.a/libgd.so in
> /gmao/old/install.  Make sure GD 2.0.16 or higher is compiled before
> calling
> configure. You may also get this error if you didn't specify the
> appropriate
> location for one of GD's dependencies (freetype, libpng, libjpeg or
> libiconv).
>
> Somebody know why ?
>
> ac_cv_lib_gd_gdFontCacheSetup=no
> fi
> rm -f conftest.err conftest.$ac_objext \
>   conftest$ac_exeext conftest.$ac_ext
> LIBS=$ac_check_lib_save_LIBS
> fi
> echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdFontCacheSetup" >&5
> echo "${ECHO_T}$ac_cv_lib_gd_gdFontCacheSetup" >&6
> if test $ac_cv_lib_gd_gdFontCacheSetup = yes; then
>   IS_GD2="true"
> fi
> GD_NEED_ICONV_LIB="$ICONV_LIB"
>   fi
>
>   if test -n "$GD_INCLUDE" -a -n "$GD_LIBDIR" -a "$IS_GD2" = "true"; then
>   GD_INC=-I$GD_INCLUDE
>   GD_LIB="-L$GD_LIBDIR -lgd"
>   GD_XTRA_LIBS="$GD_XTRA_LIBS $GD_NEED_ICONV_LIB"
>   echo "$as_me:$LINENO: result: using libgd 2.0.16 (or higher)
> from $GD_LIB $GD_XTRA_LIBS" >&5
> echo "${ECHO_T}using libgd 2.0.16 (or higher) from $GD_LIB
> $GD_XTRA_LIBS" >&6
>
>
> informations CentOS :
> [root@localhost mapserver-4.8.3]# cat /etc/redhat-release
> CentOS Linux release 7.4.1708 (Core)
>
> informations versions sources compiled :
> [root@localhost old]# grep installation install.log
> >> installation de freetype-2.8 <<
> >> installation de zlib-1.2.11 <<
> >> installation de libpng-1.6.32 <<
> >> installation de proj-4.9.3 <<
> >> installation de jpegsrc.v9b <<
> >> installation de libiconv-1.15 <<
> >> installation de libgd-2.2.5 <<
> >> installation de gdal-2.2.1 <<
> >> installation de apr-1.6.2 <<
> >> installation de apr-util-1.6.0 <<
> >> installation de pcre-8.41 <<
> >> installation de httpd-2.4.27 <<
> >> installation de tomcat-connectors-1.2.42-src <<
> >> installation de php-4.4.2 <<
> checking for Oracle (OCI8) support using ORACLE_HOME installation... no
> | distribution in the file LICENSE.  By continuing this installation |
> | the installation process at this point.|
> >> installation de mapserver-4.8.3 <<
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-
> f4226646.html
> ___
> 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] TIGER data Mapfile update.

2018-01-08 Thread Dan Little
Hey Bob,

Is there any chance you can start a GitHub repo with an appropriate license
and maybe some screenshots for this? It's hard to use dropbox as a
collaboration platform...

Cheers,

-Duck

On Mon, Jan 8, 2018 at 1:39 PM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> Tp whom it may concern . . .
>
> I’ve recently been optimzing some MapServer layer MapFiles in our system
> for TIGER based centerline data to take advantage of the newer capabilities
> of MapServer.  The MapFile I’ve been working on recently  was just over 10
> years old!!  Anyway, lot’s of new stuff for optimizing the Mapfile and I
> wanted to pass the results by the list to see if there is anything I may
> have missed.
>
> For long time list users, you may remember my post in the past about
> setting up a “googlish” type layer style for MapServer way back when.  This
> is my refactoring of that MapFile to the new look and feel of the Google
> style(s).
>
> This mapfile has mutiple CLASSes with many STYLE settings per CLASS.  So
> it ens up a bit complicated.
>
> I’ve also switch all data sourcing over from SHP file to Postgres/PostGIS
> as well as consolidating the all the DATA connection calls into a single
> call.  While the old file ran very fast, this one comes back almost
> instantly now, even for very large images.
>
> Here are a couple of fragments of the MAPFILE that I’ve currently set up,
> and just looking for thoughts on improving it even more.
>
> Sample output is here:
>
> https://www.dropbox.com/s/epdzrod6yvg7143/centerlines_
> stpaul_public.2.map?dl=0
>
>  and the fragment below is for the Interstate roads, darker yellow color
> and Hwy Shields..
>
> Thanks
>
> bobb
>
> . . . .
> LAYER
>
> #DEBUG 5
>
> NAME 'street centerlines'
> TYPE LINE
> STATUS DEFAULT
>
> CONNECTIONTYPE POSTGIS
>
> INCLUDE "../../../../conf/spatial_db/connection_compass.inc"
>
> DATA "wkb_geometry from (select
> objectid,
> -- cmmsparent,
> -- cmmsid,
> -- l_f_add,
> -- r_f_add,
> -- l_t_add,
> -- r_t_add,
> streetall,
> -- f_xstreet,
> -- t_xstreet,
> -- msa_route,
> -- ownership,
> -- maintained,
> -- stp_class,
> -- rowclass,
> -- speed_lim,
> -- length_ft,
> -- base,
> -- surface,
> -- parking_mi,
> -- lane_mi,
> -- oneway,
> -- cmmschgreq,
> -- streetname,
> -- type,
> -- sufdir,
> hwy_numb,
> f_class,
> -- cencty_l,
> -- cenmun_l,
> -- censt_r,
> -- cencty_r,
> -- cenmun_r,
> -- gnis_l,
> -- gnis_r,
> -- fips5_l,
> -- fips5_r,
> -- zip5_l,
> -- zip5_r,
> -- alt_nam1,
> -- alt_nam2,
> -- created_user,
> -- created_date,
> -- last_edited_user,
> -- last_edited_date,
> wkb_geometry
>   from stpgis.stpaul_streetcenterline) as subquery using unique
> objectid using srid=200068"
>
> CLASSITEM 'f_class'
> LABELITEM ‘streetall'
>
> . . . .
>
> —-
>
>
> ###
> # A10
> ###
>
> CLASS
>   #NAME 'US Interstate'  ## Using Interstate Shield Symbol Instead
>   EXPRESSION 'A10' # interstates
>   LABEL
> TYPE TRUETYPE
> FONT bluehigh
> SIZE 10
> COLOR 254 254 254
> MINDISTANCE 100
> MINFEATURESIZE 50
> OFFSET 0 0
> PARTIALS FALSE
> TEXT '[hwy_numb]'   ## be careful here with the call, you need to quote
> the bracketed token !!
> ## Also, this is a multiple LABELITEM.
> STYLE
>   SYMBOL 'interstate1_wide_back'
>   SIZE 18
>   COLOR 254 254 254 ## WHITE banner border
> END
> STYLE
>   SYMBOL 'interstate1_wide_back'
>   SIZE 16
>   COLOR 255 0 0 ## RED banner
> END
> STYLE
>   SYMBOL 'interstate1_wide_front'
>   SIZE 18
>   COLOR 254 254 254 ## WHITE shield border
> END
> STYLE
>   SYMBOL 'interstate1_wide_front'
>   SIZE 16
>   COLOR 56 120 199 ## BLUE(ish) shield color
> END
>   END
>
>
>   STYLE
> OUTLINEWIDTH 1
> OUTLINECOLOR 175 175 175
> WIDTH 9
> COLOR 249 222 77
>   MAXSCALEDENOM 2
>   END
>
>   STYLE
>   MINSCALEDENOM 2
> OUTLINEWIDTH 1
> OUTLINECOLOR 175 175 175
> WIDTH 6
> COLOR 249 222 77
>   MAXSCALEDENOM 25000
>   END
>
>   STYLE
>   MINSCALEDENOM 25000
> OUTLINEWIDTH 1
> OUTLINECOLOR 175 175 175
> WIDTH 2
> COLOR 249 222 77
>   END
>
> END
> TEMPLATE 'TEMPLATES/stpaul_record.html'
>   TOLERANCE 15
>   TOLERANCEUNITS pixels
>
>   END ##end Layer
>
>
>
>
> You miss 100 percent of the shots you never take.
> —Wayne Gretzky
>
>
> ___
> 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] [TCMUG] Nice turnout at the most recent Twin Cities OSGeo Chapeter (TCMUG) Meeting last night.

2017-10-24 Thread Dan Little
All the same to me.

On Oct 24, 2017 13:43, "Basques, Bob (CI-StPaul)" <
bob.basq...@ci.stpaul.mn.us> wrote:

> All,
>
> I’ve gotten a request to move the Meeting to Wednesday Nov. 29th.  Most
> everyone ok with that?
>
> I’l make this official at the end of the day if I don’t hear anything to
> the contrary.
>
> bobb
>
>
> On Oct 24, 2017, at 9:38 AM, Basques, Bob (CI-StPaul) <
> bob.basq...@ci.stpaul.mn.us> wrote:
>
> All,
>
> We had a nice turnout at the last Twin Cities OSGeo Chapter (TCMUG)
> meeting.  See here
> 
> .
>
> Based on discussion at the last meeting, the next meeting is tentatively
> scheduled for Nov. 30th, @ Barrel Theory Beer Company
>  in downtown Saint Paul @4:30
>
> Directions
> 
> .
>
> Let me know how this works for everyone.  The date is somewhat flexible,
> but the Thanksgiving holiday week is just before this date and a couple of
> the group will be out of town the week before that.
>
>
> bobb
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> "Sometimes a scream is better than a thesis." - Ralph Waldo Emerson
>
>
>
>
> ___
> Tcmug mailing list
> tc...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/tcmug
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] [TCMUG] The next local (Saint Paul/Metro Area) OSGeo Chapter (TCMUG) meet up.

2017-10-23 Thread Dan Little
Hope y'all have a good time! I can't make it this week!

On Mon, Oct 23, 2017 at 11:04 AM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> All,
>
> Just a reminder about Meetup tonight.
>
> -
>
>
> The next OSGEO(TCMUG) meet-up is scheduled for Oct. 23rd at the Bulldog
>  in Lowertown Saint Paul, Mn.  Come
> joins us for a drink and discussion of your favorite Open Source project.
>
> Note: This is a quicker turn around than normal, but will accomodate some
> out of town visitors.
>
> Time:  4:30PM
>
> Location:
>
> https://www.google.com/maps/place/The+Bulldog+Lowertown/@
> 44.9501653,-93.0881185,15z/data=!4m12!1m6!3m5!1s0x0:
> 0xbbbf45c9e8201a4d!2sThe+Bulldog+Lowertown!8m2!3d44.
> 9501653!4d-93.0881185!3m4!1s0x0:0xbbbf45c9e8201a4d!8m2!
> 3d44.9501653!4d-93.0881185
>
>
>
>
>
>
>
> ___
> Tcmug mailing list
> tc...@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/tcmug
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Fwd: Zoom to something and display in one shot from MapServer CGI.

2017-07-11 Thread Dan Little
You're likely better off with a simple script that computes the bounding
box and then uses mapserver to render the map.

E.G.: /cgi-bin/parcel-view.py?PIN=[xyz]

def getParcelBBOX(conn, pin):


On Tue, Jul 11, 2017 at 11:22 AM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

>
>
> Hi Steve,
>
> I want to send a CGI request like :  ServerName?pin=202923230045
>
> And zoom to the pin (parcel polygon) in the returned image and also add a
> buffer percentage.  This is for a reporting application.  I can do it with
> an intermediate service, but it’s been awhile since I did this, and was
> wondering if anything new in MapServer might help with this for a single
> pass approach.
>
> The zoom parameters would be hardcoded into the MapFILE in an ideal world,
> I can build an SQL for this for example, but I recall I couldn’t use the
> BBOX returned from the SQL as a BBOX for Mapserver parent call, my memory
> is cloudy on that capability from MapServer though, hence the question.
> Now that you have me talking it through though, I think the last time I
> asked about this it was to inquire about possibly chaining more than one
> MapServer call together to get the result.  I think there were fears at the
> time about possible runaway processes being created . . . .
>
> bobb
>
>
> On Jul 11, 2017, at 10:38 AM, Stephen Woodbridge 
> wrote:
>
> On 7/11/2017 10:39 AM, Basques, Bob (CI-StPaul) wrote:
>
> All,
> It’s probably because it’s Tues. but I think I’ve asked this before in the
> past . . .
> I have a DB with PIN numbers for PARCELS and I want to be able to
> auto-zoom(with buffer)  to a PARCEL by just sending in a PIN number via CGI.
> can the BBOX be pulled from the DB based on the geom in one shot?  I’ve
> done this in the past with a Webservice that went and grabbed the BBOX
> separately, then assembled the url for getting the graphic back from
> Mapserver.
>
>
> Bobb,
>
> What are you trying to zoom? the image or the client?
>
> If it is the client then how is mapserver on the server supposed to tell
> the client it needs to zoom? You have to query the server to get the bbox
> then make the client zoom appropriately.
>
> For the image, assuming you want a static image showing the parcel, then I
> would write a php/python/perl script the you pass the PIN to and it does
> the work to figure out the extents and return the image.
>
> -Steve W
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> "If you're going through hell, keep going. “
> - Winston Churchill
>
>
>
>
>
> "Be nice to people on your way up because you meet them on your way down."
>  - Jimmy Durante
>
>
>
>
> ___
> 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] Oracle SYSDATE in EXPRESSION

2016-03-29 Thread Dan Little
Again, you could do that with the stored procedure or in SQL with a view.
And have a column that returns the logical style class. For example,

CREATE VIEW
SELECT
  CASE WHEN permit_date < SYSDATE - 365 * 5 THEN 'old_permit'
   ELSE 'active_permit' END as permit_class,
   ... other columns ...
FROM permits;


Then in the mapbook...

CLASS
 EXPRESSION "[permit_class] == 'old_permit'"
 STYLE
   [ style stuff ]
 END
END

On Tue, Mar 29, 2016 at 11:20 AM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> Dan,
>
> That would work, but I was trying to color a 5 year old class one color,
> and the rest of them another, and do it all in one SQL call (single layer)
>
> I got it to work in the DATA connection, but was trying to do the STYLE
> based query in the CLASS block.
>
> Seems like it would be doable, but I’m not having any luck yet.  I’m
> guessing that the SYSDATE is not getting passed in correctly along with the
> INDATE value, at least based on what I see when I intentionally break the
> SQL to see the error.
>
> Also, there are only 1700 records to work with in there right now, quick
> return no matter what.
>
> bobb
>
>
> On Mar 29, 2016, at 11:10 AM, Dan Little <theduckylit...@gmail.com> wrote:
>
> You're probably better off with a view or querying against a stored
> procedure. There are a few advantages:
> 1. With a view you can create multiple arbitrary views.
> 2. It keeps the syntax of the mapfile cleaner.
> 3. A view is easy to change to a materialized view in Oracle.  That has a
> pile of performance benefits.
> 4. A stored procedure can be used to normalize the data better between
> Oracle and mapserver.
>
>
> On Tue, Mar 29, 2016 at 10:53 AM, Basques, Bob (CI-StPaul) <
> bob.basq...@ci.stpaul.mn.us> wrote:
>
>> All Oracle Guru’s,
>>
>> How do I handle an expression for doing a timed query in Oracle:
>>
>> CLASS
>> *EXPRESSION ('[indate] > SYSDATE - 1825')*
>> COLOR 255 255 254
>> OUTLINECOLOR 0 0 0
>>   SIZE 10
>>   SYMBOL 'circle'
>> NAME "PW Sidewalk Permits"
>> END
>>
>> I want to get all the Permits up to 5 years old to plot.  What should the
>> EXPRESSION line look like above.  I’ve tried all sort of different
>> combinations of quoting, etc.  I either get everything, or nothing.
>>
>> Thanks
>>
>> 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] Oracle SYSDATE in EXPRESSION

2016-03-29 Thread Dan Little
You're probably better off with a view or querying against a stored
procedure. There are a few advantages:
1. With a view you can create multiple arbitrary views.
2. It keeps the syntax of the mapfile cleaner.
3. A view is easy to change to a materialized view in Oracle.  That has a
pile of performance benefits.
4. A stored procedure can be used to normalize the data better between
Oracle and mapserver.


On Tue, Mar 29, 2016 at 10:53 AM, Basques, Bob (CI-StPaul) <
bob.basq...@ci.stpaul.mn.us> wrote:

> All Oracle Guru’s,
>
> How do I handle an expression for doing a timed query in Oracle:
>
> CLASS
> *EXPRESSION ('[indate] > SYSDATE - 1825')*
> COLOR 255 255 254
> OUTLINECOLOR 0 0 0
>   SIZE 10
>   SYMBOL 'circle'
> NAME "PW Sidewalk Permits"
> END
>
> I want to get all the Permits up to 5 years old to plot.  What should the
> EXPRESSION line look like above.  I’ve tried all sort of different
> combinations of quoting, etc.  I either get everything, or nothing.
>
> Thanks
>
> 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] Oracle Layer: how to set context prior to fetching the data

2016-03-24 Thread Dan Little
The other option is to create yet-another stored procedure wrapper.  In the
Mapfile, you'd call the special wrapper stored procedure and it would
return the rows to map.

On Thu, Mar 24, 2016 at 8:16 AM, Jeff McKenna  wrote:

> Hi Martin,
>
> Have you tried using a virtual spatial layer (.ovf) file to manage this?
> You can include a "" tag to run your stored procedure.  See
> examples at http://mapserver.org/input/vector/VirtualSpatialData.html
> More details of that driver at: http://www.gdal.org/drv_vrt.html
>
> Otherwise, I have seen others on this mailing list use stored procedures
> in the DATA statement of the mapfile, such as:
>
> DATA "the_geom from (select the_geom, id, name, myprocedure() as style
> from states) as foo using srid=4326 using unique id"
>
> Maybe the ovf is the way to go for your case, not sure.
>
> -jeff
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
>
> On 2016-03-24 6:59 AM, Martin Icking wrote:
>
>> One of the Oracle based sources we are publishing is using Oracle context
>> variables to enable Oracle's fine grained access control.
>> So we are in the need to set these context variables (e.g. current
>> username)
>> prior to doing the select defined by MapServer's DATA statement. In other
>> applications we do that by calling a set_context (...) stored procedure
>> prior to any data requests.
>> Is there any possibility in MapServer to send a pre-request statement to
>> the
>> database? A current work-around is to set the context at logon time but
>> that
>> means that we need a new logon for every request that needs a different
>> user
>> context, not optimal for websites with many users. We'd prefer to have a
>> single logon that can be re-used for all requests.
>> If there is currently no way to handle this in MapServer we'd like to
>> extend
>> the Oracle layer's capabilities. Any suggestion by the MS developers on
>> where we should place the needed extension in the mapfile (e.g. adding an
>> additional keyword at the USING part of the data statement or using new
>> layer metadata)?
>> Any interest in generalizing this approach?
>>
>> Tx
>> Martin
>>
>>
> ___
> 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] PHP 7.0.0. experience

2015-12-01 Thread Dan Little
I am always "new version averse" having been burned by the latest and
greatest so many times.

That said, its probably worthwhile to try a build and see if the testing
suite passes.
On Dec 1, 2015 11:11 AM, "Marco Afonso"  wrote:

> Hello Jeff,
>
> I don't know which criteria you use to decide about php version to use
> with mapscript but here are some facts:
>
> Debian 8 (2015-04-26) uses PHP 5.6
> Ubuntu 14.04 uses PHP 5.5.9
> Fedora 22 (2015-05-26) uses PHP 5.6
> CentOS 7 uses PHP 5.4
> Ubuntugis Unstable has a built for trusty (14.04) which uses 5.5
>
> So I think mapscript should stick with version 5.5 for now...
>
> Cheers :)
>
> 2015-12-01 16:24 GMT+00:00 Jeff McKenna :
>
>> Hi everyone,
>>
>> I saw a brief mention that PHP-7.0.0 release was being tagged today by
>> the PHP team; I am not sure if that is true or not, but it made me wonder
>> if anyone out there in the MapServer community has tried PHP 7 (any of the
>> release candidates) and mapscript yet.  Anyone have any experience or
>> thoughts?
>>
>> I am of course keen to upgrade to PHP7 for the MS4W (http://ms4w.com)
>> community, and am looking for advice or experience using PHP7.
>>
>> Thanks everyone,
>>
>> -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
>
>
>
>
> --
> Regards,
> Marco Afonso
> http://goo.gl/ZDtQjm
>
>
> ___
> 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] Segfaults with MapScript from Python

2015-02-12 Thread Dan Little
I don't see any debugging symbols in there making life a little bit
more difficult.

Is your Python code very complex? Could a useful snippet be posted to a gist?

On Thu, Feb 12, 2015 at 9:44 AM, Jelmer Baas b...@speerit.nl wrote:
 Hi List,

 Some of my automated renders are failing because Python crashes with an 
 Segmentation fault. I've finally found at least some logs of this:
 Feb 12 16:16:19 vm-ctwrender07 kernel: [276759.889265] traps: python[8002] 
 general protection ip:7f104ec4f50f sp:7fff17d8d790 error:0 in 
 libmapserver.so.6.4.1[7f104eb91000+1d8000]
 Feb 12 15:08:01 vm-ctwrender07 kernel: [272664.046597] traps: python[7841] 
 general protection ip:7f80558877b6 sp:7fff641f27c0 error:0 in 
 libmapserver.so.6.4.1[7f80557c9000+1d8000]
 Feb 12 13:53:01 vm-ctwrender07 kernel: [268166.881041] python[7614]: segfault 
 at fffc ip 7f805588750f sp 7fff641f27c0 error 5 in 
 libmapserver.so.6.4.1[7f80557c9000+1d8000]

 Unfortunatly, I have no idea how to continue. I suspect this has something 
 todo with odd font rendering (too large, too small), since I had issues with 
 that before. Can someone match these addresses with code and find out where 
 it crashes?

 Thanks in advance!

 Regards,
 Jelmer
 ___
 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] Spatial access restriction based on secret in URL, WMS Getcapabilities

2015-01-10 Thread Dan Little
If you launder everything through a script (in any of your favorite
languages) you can capture the output stream before you send it back
to the user.  When my Mapserver-fu runs out I tend to go with
scripting.

On Sat, Jan 10, 2015 at 6:55 AM, Arne Kepp a...@tiledmarble.org wrote:
 If I go with environment variables and 1), how do I get SECRET_CODE into the
 URLs in the GetCapabilities document ?

 I'm assuming I need to modify wms_onlineresource ?


 It would be really cool if .map files automatically substituted $variables
 in general, beyond what [1] covers.

 -Arne

 1: https://trac.osgeo.org/mapserver/wiki/EnvironmentVariables




 On 10/01/15 13:30 , Dan Little wrote:

 I'd probably do something with a script and some URL rewriting.

 For example, a URL like...
 - http://myserver.whee/path/SECRET_CODE/mapserv?[WMS parameters]

 Then do the following:
 1. Low-buck: Use apache rewrite rules to set an environment variable.
 Then use the environment variable for my substitutions.
 2. Using WSGI (I'm a python kind of guy): Parse the URL to get the
 secret to do the limiting.

 Really this kind of stuff is always application specific, and you are
 ultimately the person who needs to maintain it, so stick to what
 you'll be able to understand 6-months after you've implemented it. :-)


 On Sat, Jan 10, 2015 at 5:41 AM, Arne Kepp a...@tiledmarble.org wrote:

 Hi,

 I would like to restrict different users to different geographic regions
 based on a secret in the URL they are using to access MapServer.

 I intend to use an inner join on a table with secrets / polygons, and
 then
 use the run-time substitution in MapServer to insert the sanitized secret
 into the Postgis query.

 The crux, I think, is that I have to send WMS 1.3.0 GetCapabilities URLs
 to
 our users. And I don't think I can make the getcapabilties document
 include
 the (variable) secret in the OnlineResource elements ?

 So I am thinking about writing a wrapper that rewrites the
 GetCapabilities
 document on the fly. My question is, is there a better way that I have
 not
 thought of?

 Kind regards,
 Arne

 ___
 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] Spatial access restriction based on secret in URL, WMS Getcapabilities

2015-01-10 Thread Dan Little
I'd probably do something with a script and some URL rewriting.

For example, a URL like...
- http://myserver.whee/path/SECRET_CODE/mapserv?[WMS parameters]

Then do the following:
1. Low-buck: Use apache rewrite rules to set an environment variable.
Then use the environment variable for my substitutions.
2. Using WSGI (I'm a python kind of guy): Parse the URL to get the
secret to do the limiting.

Really this kind of stuff is always application specific, and you are
ultimately the person who needs to maintain it, so stick to what
you'll be able to understand 6-months after you've implemented it. :-)


On Sat, Jan 10, 2015 at 5:41 AM, Arne Kepp a...@tiledmarble.org wrote:
 Hi,

 I would like to restrict different users to different geographic regions
 based on a secret in the URL they are using to access MapServer.

 I intend to use an inner join on a table with secrets / polygons, and then
 use the run-time substitution in MapServer to insert the sanitized secret
 into the Postgis query.

 The crux, I think, is that I have to send WMS 1.3.0 GetCapabilities URLs to
 our users. And I don't think I can make the getcapabilties document include
 the (variable) secret in the OnlineResource elements ?

 So I am thinking about writing a wrapper that rewrites the GetCapabilities
 document on the fly. My question is, is there a better way that I have not
 thought of?

 Kind regards,
 Arne

 ___
 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] Web Client

2014-08-12 Thread Dan Little
For something simpler, you may want to consider GeoMOOSE.

1. It has a very nice catalog that has been really refined over the years.
2. The Zoom-in/Zoom-out and other capabilities are built atop the
well-proven OpenLayers 2.X code base.
3. It is highly customizable with CSS but comes with a nice set of icons
from the start.  It also uses Dojo for its widget library and can be highly
customized with that toolset.
4. The services (such as search, etc.) are based on PHP but are also very
small, light weight, and easy to change.

GeoMOOSE has some other advantages:
- The install is not very large.
- It requires no more PHP dependencies than MapScript (the windows/MS4W
deploy is very easy)
- It can be configured with an XML file.
- We are constantly working on documentation and have a lot of it at our
website www.geomoose.org along with a handy demo at demo.geomoose.org

/me will now stop self promoting. :-)


On Tue, Aug 12, 2014 at 5:58 AM, Marco Afonso mafonso...@gmail.com wrote:

 Hi,

 Have a look at MapIgniter
 https://github.com/taviroquai/MapIgniter

 - Based on PHP, CodeIgniter, MapServer, Postgis and OpenLayers 2.11
 - Interface as a CMS (like Joomla or Drupal)
 - 3 default roles with specific menus: public, user, administrator
 - [Your requirements here]

 The MapIgniter project is not ready for production but can be a very good
 start for your development version.

 There will be a MapIgniter version 2 based on a recent framework/cms :)

 Cheers,
 Marco Afonso


 2014-08-12 11:37 GMT+01:00 Ceyhun Ganioglu ceyhunganio...@gmail.com:

  Hi,

 First of all I would like to say Hello to everybody as I am a newbie of
 both MapServer and the mailing list.  I need some suggestions about the web
 based client to send WMS and WFS requests to Map Server to display map and
 database records.

 I had a look at the internet and found some projects. But it takes
 unbelievable long time to read all documentations to see if it provides a
 few things I need. The basic functions I need are:

 - Possible to list layers
 - Solid zoom in/out functions
 - Design/icons and display functions customizable
 - Preferably written in PHP (not a must)

 I won't say no if there's one provides more functions :)

 So I wanted to ask which clients are good enough just like a daily chat
 with friends :) I hope I am not breaking any rules of the group at the
 first day.

 Any suggestions?

 Many thanks in advance
 Ceyhun

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




 --
 Regards,
 Marco Afonso
 http://goo.gl/ZDtQjm


 ___
 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] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript?

2014-05-27 Thread Dan Little
You might want to reconsider how your script is built.  Instead of
loading up the Mapfile and tweaking small parameters with MapScript,
consider converting your mapfile to a template language.  This way you
can forumulate the mapfile, load it as a string, do the appropriate
substitutions, then use PHP to serve it as WxS.

This usually ends up being faster, easier to maintain, and more
flexible over the long term.

On Tue, May 27, 2014 at 6:33 AM, Michael Schulz
mandsch...@googlemail.com wrote:
 Hi Jorrit,

 maybe it's just a type in the second setprocessing line of your example:

 $current_layer-setprocessing('BANDS=1,2');  #removed second bracket

 Cheers, Michael


 2014-05-27 11:50 GMT+02:00 Jorrit Goddijn jorrit.godd...@meteogroup.com:

 Hi all,



 I’m drawing layers based on GRIB data files. Each file contains several
 bands (datasets). I can access these datasets by setting the PROCESSING
 attribute on the LAYER object. As in this example:



 #

 LAYER

   NAME current_grid

   TYPE POINT

   CONNECTIONTYPE uvraster

   DATA
 /var/www/mapserver/data/grib/routeguard/4nwwin99_2013110412.grb2#v and
 u-component of current

   PROCESSING BANDS=1,2

   PROCESSING UV_SPACING=20

   CLASS

 STYLE

   SYMBOL arrow

   ANGLE [uv_angle]

   SIZE [uv_length]

   COLOR 255 0 0

 END # style

   END # class



   PROJECTION

   #init=epsg:4326

   +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +pm=-360

   END

 END # layer

 



 This works fine. But I need to set the PROCESSING values dynamically
 through mapscript. If I add this code to my script (which works fine without
 these lines):



 

 $map = ms_newMapObj($_GET['MAP']);

 $current_layer = $map-getlayerbyname('current_grid');

 // both of these do not work

//$current_layer-set('processing', 'BANDS=1,2'));

 //$current_layer-setprocessing('BANDS=1,2'));

 $request = createRequest();

$result = $map-owsdispatch($request);

 



 I get an internal server error (500). It seems that setting any attribute
 via the layer-set() method causes this behavior. I’m migrating from MS 5.4,
 does the set method still work as expected?



 Thank you



 Jorrit Goddijn

 jorrit.godd...@meteogroup.com

 MeteoGroup




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




 --
 ---
 Michael Schulz

 Bahnhofstr. 62
 D-63477 Maintal


 ___
 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] GeoMOOSE

2014-02-25 Thread Dan Little
(This might be a double post, I forgot my Gmail is not subscribed...)

This isn't really the right list for this (try GeoMOOSE Users).

But, since I'm here, I can answer the question: No, the current
catalog doesn't support that kind of reference.  I don't think it
would be that hard to add an enhancement that can handle such tasks
but we'd need to add code to the base.

If it's something you really need in the short term then I'm always
available for GeoMOOSE contracts big and small.

If it's something you can wait on then please add an enhancement
request to our github issues repository:
https://github.com/geomoose/geomoose/issues/new

On Tue, Feb 25, 2014 at 9:12 AM, Dan Little theduckylit...@gmail.com wrote:
 This isn't really the right list for this (try GeoMOOSE Users).

 But, since I'm here, I can answer the question: No, the current
 catalog doesn't support that kind of reference.  I don't think it
 would be that hard to add an enhancement that can handle such tasks
 but we'd need to add code to the base.

 If it's something you really need in the short term then I'm always
 available for GeoMOOSE contracts big and small.

 If it's something you can wait on then please add an enhancement
 request to our github issues repository:
 https://github.com/geomoose/geomoose/issues/new



 On Tue, Feb 25, 2014 at 9:06 AM, jcwalz jennaw...@co.stevens.mn.us wrote:
 In GeoMOOSE I would like to create a folder in the catalog section. This
 folder would not contain any data layers, it would just connect to multiple
 html documents that connect to PDFs and jpeg images. Is this possible to do?



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/GeoMOOSE-tp5105851.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] lighttpd, TNS:could not resolve...

2010-09-30 Thread Dan Little
Does shp2img work with your Mapfile?


From: Sebastian E. Ovide sebastian.ov...@gmail.com
To: Rahkonen Jukka jukka.rahko...@mmmtike.fi
Cc: mapserver-users@lists.osgeo.org
Sent: Thu, September 30, 2010 4:47:30 AM
Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve...

the message says: 


ORA-12154: TNS:could not resolve the connect identifier specified in unnamed


so... does unnamed mean that gdal didn't get any name for the connection ?





On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide 
sebastian.ov...@gmail.com 
wrote:

no luck...


renamed servicename to capital.. so now connection name==service name...


same problem... ogrinfo works, mapserver doesn't



On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi 
wrote:

Hi,
 
For me, sometimes with some Oracle user name from some  computers SQL*Plus 
does 
not understand if I am using the SERVICE_NAME.  It  you happen to have the 
same 
situation you should be able to connect with the  connection name, which 
seems 
to be MFUATDB for you. 
 
Actually, the error message TNS:could not resolve the  connect identifier 
specified may mean that you should not use service name but  the connect 
identifier.  Have a try and tell how it  went.
 
 
-Jukka  Rahkonen- 




 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Sebastian E.Ovide
Lähetetty: 30. syyskuuta 2010 11:15
Vastaanottaja: Dan Little
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] lighttpd, TNS:could not resolve...


yes. 




g...@mapserver:~$ ls -la /home/gis/conf/tnsnames.ora
-rw-r--r-- 1 gis gis 184 2010-09-29 16:19/home/gis/conf/tnsnames.ora
g...@mapserver:~$ sudo su www-data -c 'cat/home/gis/conf/tnsnames.ora'
MFUATDB =
  (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT= 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = mfuatdb)
)
  )



On Wed, Sep 29, 2010 at 7:58 PM, Dan Little danlit...@yahoo.com wrote:

Is tnsnames.ora accessible by the web-server user? (Check the  
permissions.)


Ist

From: Sebastian E. Ovide sebastian.ov...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Wed, September 29, 201011:10:09 AM
Subject: [mapserver-users] lighttpd, TNS:could not resolve...
 

Hi All, 


I have installed MapServer on lighttpd + fastcgi.


fastcgi.server = (
/mapserver =
( localhost =
(
   socket = 
/tmp/mapserver-fastcgi.socket,
   bin-path = /home/gis/bin/mapserv,
   bin-environment =
   (
   TNS_ADMIN =
/home/gis/conf/
   ),
   max-procs = 2,
   check-local = disable
)
)
)




g...@mapserver:~$ cat /home/gis/conf/tnsnames.ora
MFUATDB =
  (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.60.70)(PORT = 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = mfuatdb)
)
  )


and I'm getting: 


msDrawMap(): Image handling error. Failed to draw layer named
'TESTII'. 
msOGRFileOpen(): OGR error. Open failed for OGR connection in
layer 
`TESTII'. ORA-12154: TNS:could not resolve the connect identifier
specified in unnamed


from the logs:


[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513
[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open
failed 
for OGR connection in layer `TESTII'.
ORA-12154: TNS:could not resolve the connect identifierspecified
 in unnamed


[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error.  
  
Failed to draw layer named 'TESTII'.
[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at
0xa00f298.
[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at
0xa0237a0.
[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at
0xa024718.




in mapserver:


  LAYER
NAME TESTII
TYPE POLYGON
STATUS ON
CONNECTIONOCI:GEO_US_DATA/geo_us_d...@mfuatdb
CONNECTIONTYPE OGR
DATA CA_WILDFIRE
PROJECTION
  init=epsg:3857
END
CLASS
#  NAME local_shape
  COLOR 0 0 255
  OUTLINECOLOR 0 0 255
END
  END






The connection string is right as I'm using it from gdal:


g...@mapserver:~$ ogrinfo
OCI:GEO_US_DATA/geo_us_d...@mfuatdb:CA_WILDFIRE
INFO: Open of `OCI:GEO_US_DATA/geo_us_d...@mfuatdb:CA_WILDFIRE'
  using driver `OCI' successful.
1: CA_WILDFIRE




any ideas ?




-- 
Sebastian E.Ovide








-- 
Sebastian E. Ovide







-- 
Sebastian E. Ovide







-- 
Sebastian E. Ovide






  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-30 Thread Dan Little
I was starting to suspect MapServer is just no seeing the environment 
variables...

Try this... write a wrapper script mapserv.sh

#!/bin/bash

TNS_ADMIN=/home/gis/conf

/home/gis/bin/mapserv

Then update your script to point to mapserv.sh.





From: Sebastian E. Ovide sebastian.ov...@gmail.com
To: Dan Little danlit...@yahoo.com
Cc: Rahkonen Jukka jukka.rahko...@mmmtike.fi; mapserver-users@lists.osgeo.org
Sent: Thu, September 30, 2010 8:01:22 AM
Subject: Re: [mapserver-users] lighttpd, TNS:could not resolve...

on the same machine, with the same data and same tns file it works fine with 
APACHE the problems is only with LIGHTTPD... it looks like TNS_ADMIN = 
/home/gis/conf/ is ignored (in apache I've used SetEnv and PassEnv


???


On Thu, Sep 30, 2010 at 12:22 PM, Dan Little danlit...@yahoo.com wrote:

Does shp2img work with your Mapfile?


From: Sebastian E. Ovide sebastian.ov...@gmail.com
To: Rahkonen Jukka jukka.rahko...@mmmtike.fi
Cc: mapserver-users@lists.osgeo.org
Sent: Thu, September 30, 2010 4:47:30 AM
Subject: Re: [mapserver-users] lighttpd, TNS:could not  resolve...


the message says: 


ORA-12154: TNS:could not resolve the connect identifier specified in 
unnamed


so... does unnamed mean that gdal didn't get any name for the connection ?





On Thu, Sep 30, 2010 at 9:54 AM, Sebastian E. Ovide 
sebastian.ov...@gmail.com 
wrote:

no luck...


renamed servicename to capital.. so now connection name==service name...


same problem... ogrinfo works, mapserver doesn't



On Thu, Sep 30, 2010 at 9:37 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi 
wrote:

Hi,
 
For me, sometimes with some Oracle user name from some  computers SQL*Plus 
does 
not understand if I am using the SERVICE_NAME.  It  you happen to have the 
same 
situation you should be able to connect with the  connection name, which 
seems 
to be MFUATDB for you. 
 
Actually, the error message TNS:could not resolve the  connect identifier 
specified may mean that you should not use service name but  the connect 
identifier.  Have a try and tell how it  went.
 
 
-Jukka  Rahkonen- 




 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Sebastian E.Ovide
Lähetetty: 30. syyskuuta 2010 11:15
Vastaanottaja: Dan Little
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] lighttpd, TNS:could not resolve...


yes. 




g...@mapserver:~$ ls -la /home/gis/conf/tnsnames.ora
-rw-r--r-- 1 gis gis 184 2010-09-29 16:19/home/gis/conf/tnsnames.ora
g...@mapserver:~$ sudo su www-data -c 'cat/home/gis/conf/tnsnames.ora'
MFUATDB =
  (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT= 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = mfuatdb)
)
  )



On Wed, Sep 29, 2010 at 7:58 PM, Dan Little danlit...@yahoo.com wrote:

Is tnsnames.ora accessible by the web-server user? (Check the  
permissions.)


Ist

From: Sebastian E. Ovide sebastian.ov...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Wed, September 29, 201011:10:09 AM
Subject: [mapserver-users] lighttpd, TNS:could not resolve...
 

Hi All, 


I have installed MapServer on lighttpd + fastcgi.


fastcgi.server = (
/mapserver =
( localhost =
(
   socket = 
/tmp/mapserver-fastcgi.socket,
   bin-path = /home/gis/bin/mapserv,
   bin-environment =
   (
   TNS_ADMIN =
/home/gis/conf/
   ),
   max-procs = 2,
   check-local = disable
)
)
)




g...@mapserver:~$ cat /home/gis/conf/tnsnames.ora
MFUATDB =
  (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.60.70)(PORT = 
1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = mfuatdb)
)
  )


and I'm getting: 


msDrawMap(): Image handling error. Failed to draw layer named
'TESTII'. 
msOGRFileOpen(): OGR error. Open failed for OGR connection in
layer 
`TESTII'. ORA-12154: TNS:could not resolve the connect identifier   
 
specified in unnamed


from the logs:


[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513
[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open  
  failed 
for OGR connection in layer `TESTII'.
ORA-12154: TNS:could not resolve the connect identifierspecified
 in unnamed


[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error.

Failed to draw layer named 'TESTII'.
[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at
0xa00f298.
[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at
0xa0237a0.
[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at
0xa024718.




in mapserver

Re: [mapserver-users] lighttpd, TNS:could not resolve...

2010-09-29 Thread Dan Little
Is tnsnames.ora accessible by the web-server user? (Check the permissions.)

Is t

From: Sebastian E. Ovide sebastian.ov...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Wed, September 29, 2010 11:10:09 AM
Subject: [mapserver-users] lighttpd, TNS:could not resolve...

Hi All,


I have installed MapServer on lighttpd + fastcgi.


fastcgi.server = (
/mapserver =
( localhost =
(
socket = /tmp/mapserver-fastcgi.socket,
bin-path = /home/gis/bin/mapserv,
bin-environment =
(
TNS_ADMIN = /home/gis/conf/
),
max-procs = 2,
check-local = disable
)
)
)




g...@mapserver:~$ cat /home/gis/conf/tnsnames.ora
MFUATDB =
  (DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.60.70)(PORT = 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = mfuatdb)
)
  )


and I'm getting: 


msDrawMap(): Image handling error. Failed to draw layer named 'TESTII'. 
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `TESTII'. 
ORA-12154: TNS:could not resolve the connect identifier specified  in unnamed


from the logs:


[Wed Sep 29 17:00:13 2010].649965 CGI Request 1 on process 1513
[Wed Sep 29 17:00:13 2010].717290 msOGRFileOpen(): OGR error. Open failed for 
OGR connection in layer `TESTII'.
ORA-12154: TNS:could not resolve the connect identifier specified
 in unnamed


[Wed Sep 29 17:00:13 2010].717319 msDrawMap(): Image handling error. Failed to 
draw layer named 'TESTII'.
[Wed Sep 29 17:00:13 2010].717454 msFreeMap(): freeing map at 0xa00f298.
[Wed Sep 29 17:00:13 2010].717579 freeLayer(): freeing layer at 0xa0237a0.
[Wed Sep 29 17:00:13 2010].717591 freeLayer(): freeing layer at 0xa024718.




in mapserver:


  LAYER
NAME TESTII
TYPE POLYGON
STATUS ON
CONNECTION OCI:GEO_US_DATA/geo_us_d...@mfuatdb
CONNECTIONTYPE OGR
DATA CA_WILDFIRE
PROJECTION
  init=epsg:3857
END
CLASS
#  NAME local_shape
  COLOR 0 0 255
  OUTLINECOLOR 0 0 255
END
  END






The connection string is right as I'm using it from gdal:


g...@mapserver:~$ ogrinfo OCI:GEO_US_DATA/geo_us_d...@mfuatdb:CA_WILDFIRE
INFO: Open of `OCI:GEO_US_DATA/geo_us_d...@mfuatdb:CA_WILDFIRE'
  using driver `OCI' successful.
1: CA_WILDFIRE




any ideas ?




-- 
Sebastian E. Ovide







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


[mapserver-users] GeoMOOSE 2.2 Released!

2010-02-18 Thread Dan Little
Hello MapServer Users,

We here at the GeoMOOSE project are pretty excited for our latest release and 
believe it deserves some bragging on the lists.  We are actively looking for 
additional contributors (developers, documenters, designers) and would like to 
share our latest progress!

This latest version provides exciting new features that users have been 
requesting.  Some new features to GeoMOOSE 2.2 include:

* New website with more documentation and a redesigned gallery
* Implementation of Trac to submit bug and enhancement tickets
* New layer types such as Bing Maps, Google Maps, Yahoo Maps, 
OpenStreetMap tiles and ArcGIS Server Rest services
* A new demo application to highlight the additional layer types in a 
Web Mercator projection
* Enhancements to the selection/buffer services and ability to download 
selection results
* Bug fixes to the geocode and popup services
* Addition of a feature report service
* Addition of a query builder service
* Addition of a user extensions framework to add your own code to GM 
without modifying the core libraries, an example of this is a dynamic zoom 
service
* Addition of custom cursors and scale bars
* More catalog presentation optionsPlease visit the gallery 
http://www.geomoose.org/gallery to see what users have been using GeoMOOSE for 
or to submit your own application.  You can also visit the live demo from the 
main website link at the top of the page.
GeoMOOSE (www.geomoose.org) is an open source web application framework for 
displaying geographic data.  What makes GeoMOOSE unique is it provides an 
out-of-the-box solution that makes it easy for non-developers to create 
web-mapping applications with typical tools such as navigate, search, measure 
and print. Non-developers only need to be comfortable with configuration files. 
 GeoMOOSE has a number of strengths including modularity, configurability, and 
delivers a number of core functionalities in its packages.  The project has 
targeted local government business cases to distribute land records 
information, but many other users have used it for much more.  Since GeoMOOSE 
is open source project it built on other popular open source projects such as 
OpenLayers (www.openlayers.org) and MapServer (www.mapserver.org).  To get 
started with GeoMOOSE, simply go to the download page and install the software 
demo.


We are excited to see the inception of this project go from a an application 
developed by the City of St. Paul, MN to FGDC CAP grant to a robust open source 
software project used by hundreds of people across the world in the last 3 
years.  We hope you find the investment made by all the developers a resource 
to the GIS community.  We are excited to see this project grow and we envision 
continued growth as more and more users find it.  We welcome feedback on the 
GeoMOOSE project and hope you give the software a try.

Contact the project steering committee for more information:

* Dan Ducky Little: danlit...@yahoo.com
* Brian Fischer: bfisc...@houstoneng.com
* Bob Basques: bob.basq...@ci.stpaul.mn.us
* Jim Klassen: jim.klas...@ci.stpaul.mn.us
* Len Kne: l...@houstoneng.com
* Brent Fraser: bfra...@geoanalytic.com


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


Re: [mapserver-users] hyper-threading and performance

2010-02-10 Thread Dan Little
Hey Mark,

If you're looking to speed up GeoMOOSE (or any MapServer Installation) there 
are a few general rules to follow:

1) GM Specific - As of 2.0+ it's actually A LOT easier to have multiple layers 
in a single image.  The CPU capabilities doesn't help here, but the client has 
less images to download and will appear to be a bit faster.
2) MS General - INDEXES, TILING, INDEXES.  If you don't want to use shptree and 
the various shp* utils for indexing and tiling your dataset then you might want 
to try putting the data into PostGIS.  Especially datasets like road ways and 
parcels.  

Your aerials will generally better from more CPU capability.

- Original Message 
 From: Andy Colson a...@squeakycode.net
 To: Mark Volz markv...@co.lyon.mn.us
 Cc: mapserver-users@lists.osgeo.org
 Sent: Mon, February 8, 2010 3:03:38 PM
 Subject: Re: [mapserver-users] hyper-threading and performance
 
 Yeah, I've heard the same thing.  If your system is cpu bound then I'd 
 bet the difference between enabled and disabled is minimal (regardless 
 if the difference is faster or slower).  20% either way is not very much.
 
 If your not cpu bound, I'd bet you see no difference at all.
 
 Of course, these are hugely big guesses.  And probably wrong.  I dont 
 have any numbers to share.  Sorry.
 
 -Andy
 
 
 On 2/8/2010 2:48 PM, Mark Volz wrote:
  Andy,
 
  To be more specific:
 
  I am using GeoMoose.  GeoMoose draws each layer separately so we do benefit
  by having a multi-core processor even if there is only one user.  We also 
  are
  using a WMS Service so air photos is for the most part a non issue.  If my
  understanding is correct hyper-threading has up to a 20 percent increase in
  speed.  However, the performance increase is highly application specific and
  in some cases performance may actually be lower with Hyper-Threading 
  enabled.
 
 
  Mark Volz
  GIS Specialist
  Lyon County, MN
 
  -Original Message-
  From: Andy Colson [mailto:a...@squeakycode.net]
  Sent: Monday, February 08, 2010 2:30 PM
  To: Mark Volz
  Cc: mapserver-users@lists.osgeo.org
  Subject: Re: [mapserver-users] hyper-threading and performance
 
  On 2/8/2010 2:20 PM, Mark Volz wrote:
  Hello,
 
  Does anyone know if the performance of Mapserver is increased if
  hyper-threading is enabled? If so how much?
 
  Mark Volz
 
  GIS Specialist
 
  Lyon County, MN
 
 
  Hey Mark,
 
  What sort of usage are we talking?  Web hosting?  Shapefiles and arials?
 I'm not sure if mapserver itself will use mult-threads, but if you
  have multiple requests comming into a website, apache/cgi/mapserver/etc
  will use multi process/threads/etc.
 
  Its tough to say the performance increase.  I'm host several maps on a
  dual-core box, and the cpu's sit around 2 percent.  And with lots of
  arial imagery you might hit disk io limit before you hit cpu limit.
  (However, I have had some mrsid files that were really cpu intensive to
  uncompress, they were cpu bound).  Are your cpu's even pegged?
 
  So, I guess, the answer is, it really depends on a lot of different
  variables.
 
 
  -Andy
 
 ___
 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] Premature end of script headers: mapserv

2010-01-09 Thread Dan Little
Try testing it with shp2img and see if you still get the same error.  Also, you 
may need to try the whole thing under GDB or with debugging turned on.


From: Shaz N geo.engineer...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Fri, January 8, 2010 11:27:12 PM
Subject: [mapserver-users] Premature end of script headers: mapserv


Hi users..
 
I have been adding a few new shapefiles to my existing map file. I am a facing 
a new problem since last evening. I added 9 shapefiles successfully and could 
view the map in the browser. While adding the 10th shapefile I got an error. 
All the new shapefiles are simple point shapefiles. 
Example: LAYER
NAME 'sc'
CONNECTIONTYPE postgis
CONNECTION  
DATA the_geom from sc
TEMPLATE dummy.html
DEBUG ON
TYPE POINT
MAXSCALE 1
MINSCALE 2000
STATUS DEFAULT
LABELITEM name
LABELCACHE ON
 
CLASS
  MAXSCALE 1
  MINSCALE 2000

STYLE
  ANTIALIAS TRUE
  SYMBOL square
  SIZE 9
  COLOR 153 0 102
  OUTLINECOLOR 255 255 255
END #end style

LABEL
  ANGLE auto
  COLOR 153 0 102
  ANTIALIAS TRUE
  FONT vera_sans-bold
  TYPE TRUETYPE
  SIZE 9
  POSITION auto
  PARTIALS false
  BUFFER 1
END #end label
END#end class
END #end layer
 
This is the error from the error log:
 
Premature end of script headers: mapserv
 
And this is what I got using WMS get map request on the browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to 
complete your request.
Please contact the server administrator, [no address given] and inform them of 
the time the error occurred, and anything you might have done that may have 
caused the error.
More information about this error may be available in the server error log.
 
I checked the shapefile and map file for errors and couldn’t find any. And 
mapserver has been installed correctly and has been working well. The problem 
only arises when I add the extra layer. It works well with all the existing 
ones. 
The map file works on my PHP map display page but when I try it using WMS it 
does not work.  

I use MapServer 5.0.
  
Any help would be greatly appreciated. 
Thanks in advance.  


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


Re: [mapserver-users] Tilemode Projection Problem

2010-01-07 Thread Dan Little
It's in the share/proj directory... but that will depend on where proj is 
installed... could be /usr /usr/local /opt /opt/local ... or if you're me ... 
/opt/mapserver/ (primarily because I'm anal and isolate the crap out of things).


From: Ian Dees ian.d...@gmail.com
To: Fawcett, David (MPCA) david.fawc...@state.mn.us
Cc: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
Sent: Thu, January 7, 2010 8:22:12 AM
Subject: Re: [mapserver-users] Tilemode Projection Problem

After getting all the projection sections into my .map file without any 
correctly-drawn tiles, I've given up on tilemode for now and am trying out 
tilecache with MapServer's WMS. However, it appears that EPSG:900913 is not 
known in my system. On a Linux install, where is the list of projections/WKT?

I've tried using upper and lower-case namespace (epsg and EPSG) to no avail.

I get the following error through tilecache when it attempts to hit my WMS:

ServiceExceptionReport version=1.1.1

ServiceException code=InvalidSRS
msWMSLoadGetMapParams(): WMS server error. Invalid SRS given : SRS must be 
valid for all requested layers.

/ServiceException
/ServiceExceptionReport
URL it tries:
http://209.98.160.119:8080/cgi-bin/mapserv?map=/var/www/map/map.maplayers=statesstyles=service=WMSwidth=256format=image%2Fpngrequest=GetMapheight=256srs=EPSG%3A900913version=1.1.1bbox=-20037508.34%2C-20037508.34%2C20037508.3384%2C20037508.3384


On Wed, Jan 6, 2010 at 2:56 PM, Ian Dees ian.d...@gmail.com wrote:

I tried this and am still not getting anything from my TIFFs. I switched over 
to using the statesp020.shp data (which is epsg:4326, right?) and am getting 
very oddly-garbled tiles:

http://209.98.160.119:8080/map.html


On Wed, Jan 6, 2010 at 2:41 PM, Fawcett, David (MPCA) 
david.fawc...@state.mn.us wrote:













Ian, 
 
I haven’t used tilemode, but my assumption is that the map
projection block is used to define what the output projection for your tile 
is
(like in the other MapServer modes).  
 
Try setting map projection to epsg:3785 or using the proj4 text:
 
+proj=merc
+lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0
+units=m +no_defs 
 
If tilemode requires a map extent, it should be expressed in
units of the output projection.
 
David.
 

From:mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ian Dees
Sent: Wednesday, January 06, 2010 2:24 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Tilemode Projection Problem

 
Hi everyone,

I've spent the better part of today scouring the internet for 
documentation and
help on the tile mode present in mapserver, but I couldn't find an answer to 
my
problem, so please forgive me if I'm missing some obvious documentation some
where...

I am attempting to show some GeoTIFFs (from here: 
ftp://geoftp.ibge.gov.br/mapas/ortofoto/).
My research says they're in epsg:31984.

I'm trying to use MapServer's tile mode to display them on a Google Map 
API
instance, but can't seem to get any of the images to show up.

Also, why am I required to give a PROJECTION statement as a child to the 
MAP
statement (what I assume is the viewing projection) if the tile mode
is just going to reproject to spherical mercator?

My .map file is below.

Thanks!

MAP
NAME GMAP_TILE
STATUS ON

PROJECTION
init=epsg:31984 END

IMAGECOLOR 192 192 192
IMAGEQUALITY 95
IMAGETYPE png

OUTPUTFORMAT
   
NAME png
   
DRIVER 'GD/PNG'
   
TRANSPARENT ON
END

LAYER  
   
NAME brazil
   
TYPE raster
   
DATA /var/www/map/2414-1-SO.tif
   
STATUS ON
   
PROJECTION init=epsg:31984 END
END
END




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


Re: [mapserver-users] Accessing mapserver from Flash Script

2009-12-20 Thread Dan Little
Escape the ampersands by using the amp; entity.




From: Ken S. Elvehjem e...@runestone.net
To: mapserver-users@lists.osgeo.org
Sent: Sat, December 19, 2009 8:02:53 PM
Subject: [mapserver-users] Accessing mapserver from Flash Script

 

Hi, 


I have set up a Mapserver which serves up aerial photography. 
 Works better than just great! 

Now, I'm trying to write some 
web/flash based software using the OpenLaszlo software.  This product 
allows me to write a script in a kind of XML, which then gets compiled to a 
Flash .swf file. 

With this tool, I can set an image(JPEG) on my page 
from anywhere on the web, simply by using the correct URL.  However, I 
cannot understand how to create the URL to get a JPG file from the mapserver. 
 The troubleshooting data suggests that the problem is with an unescaped 
ampersand () ... is there a way to escape this escape madness?   


URL: 

http://mapserver.soilsampling.com/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\ND\ND_griggs-wms.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetMapLAYERS=NAIP2006STYLES=SRS=EPSG:4269BBOX=554649,5245688,557949,5248988WIDTH=1650HEIGHT=1650FORMAT=image/jpeg
 

This URL is also problematic, tho it's not a MapServer url: 

http://cairo.gis.iastate.edu/server.cgi/Aerial.jpg?layer=naip_2007zoom=1X0=222375y0=4744771pwidth=858pheight=738format=jpg

Any 
ideas would be greatly appreciated! 

sincerely, 

Ken S. Elvehjem 

Ken S. Elvehjem
PO Box 37
Lowry MN  
56349
 
320.283.5684
320.424.1299 c
320.283.5247 
h


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


Re: [mapserver-users] attribute bindings for SYMBOL and FONT?

2009-12-18 Thread Dan Little
http://research.dmsolutions.ca/?p=118

This would indicate the answer is yes.


- Original Message 
 From: Brent Fraser bfra...@geoanalytic.com
 To: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
 Sent: Fri, December 18, 2009 11:05:28 AM
 Subject: [mapserver-users] attribute bindings for SYMBOL and FONT?
 
 The short story:
 
   Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e store 
 the 
 symbol name as a attribute of a feature)?  And the LABEL objects FONT name?
 
 The Long Story:
 ---
 I've been working with the yet-to-be-released Feature Editor in Geomoose v2. 
 It 
 allows the user to digitize features (points, lines, and polygons) and assign 
 attributes, then stores them in PostGIS.
 
 I want to allow simple styling and don't want to have a map file the size of 
 War and Peace, so I thought I would use the attribute/item/column binding 
 abilities of Mapserver's CLASS and LABEL objects.
 
 To that end, one of the columns the feature table will be style name (or 
 maybe 
 feature class), which I'll use to join to a style table (with COLOR, WIDTH, 
 etc columns) to get the feature rendered in a simple style.
 
 After a quick review of Mapserver's doc, most of the most important objects 
 can 
 be bound to attributes, with two exceptions, SYMBOL 'name' and FONT 'name':
 
 CLASS
   STYLE
 ANGLE [angle]
 COLOR [color]  #R G B
 OUTLINECOLOR [olcolor] #R G B
 SIZE [size]
 WIDTH [width]  # v5.2
 
 SYMBOL 'name' # in SYMBOLSET
 
   END #STYLE
 
   TEXT ([label])
   LABEL
 ANGLE  [label_angle]
 COLOR [label_color]
 OUTLINECOLOR [label_olcolor]
 PRIORITY [label_priority]
 SIZE [label_size]
 
 FONT 'name' # in FONTSET
 
   END #LABEL
 END # CLASS
 
 How difficult would it be to have attribute binding for SYMBOL and FONT?  I 
 suppose I could use mapscript, but I'd rather not.
 
 Thanks!
 Brent Fraser
 
 ___
 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 draw a circle using MapScript?

2009-12-17 Thread Dan Little
Totally off the cuff

$shape = ms_shapeObjFromWKT('POINT('+$x+' '+$y+')');
$shape = $shape-buffer($radius);


From: Helen Eskina hesk...@ubitech.com
To: mapserver-users@lists.osgeo.org
Sent: Thu, December 17, 2009 3:50:20 PM
Subject: [mapserver-users] How to draw a circle using MapScript?

 

Hello List,
 
I want to be able to draw a circle dynamically using PHP MapScript. The
circle is defined by the coordinates of the centre and the radius in 
kilometers.
I realize that the circle is a polygon and I should probably calculate all
points. What is the best way to do it? 
 
I would really appreciate any help!
 
Thank you,
Helen


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


Re: [mapserver-users] Web interface

2009-12-11 Thread Dan Little
Like Bob said, there isn't any creation/management tools.  I've been running a 
general philiosophy that, at some points, users will need to hack mapfiles.  In 
the downloadable demo, we've been trying to give users enough exmaples to make 
it easy to learn and modify to their specific needs.  We also try to provide an 
example structure on how to make the management, of even large sites, sane.  
And that sanity can be acheived with basic tools instead of needing to 
convolute the whole process.

I have been considering writing some code that would:
a) Provide online editing services with a database short of needing PostGIS, 
like oh, SpatialLite.  Something we could distribute more easily with the 
project.
b) Work with Bob (and the team he has) to generalize some of the tools they 
have developed, get them working with Spatial/SQLite and try to make them 
publically available.
c) Porting the code to Ruby and/or Python.  Ruby is my new favorite language 
but Python is more practical for a ton of reasons.  The PHP works and is 
fairly accessible to novice users but I find the language ugly and more 
difficult to maintain than the others.  Of course, PHP seems to be the defacto 
language of MS4W ... which is why we've stayed married to it.  I'm probably 
more likely to develop more user tools if it's in a language other than PHP.

Of course, any assistance in either man-hours or funding is greatly appreciated 
towards any of these ends.




- Original Message 
 From: Bob Basques bo...@gritechnologies.com
 To: Jeff McKenna jmcke...@gatewaygeomatics.com
 Cc: mapserver-users@lists.osgeo.org
 Sent: Fri, December 11, 2009 8:20:17 AM
 Subject: Re: [mapserver-users] Web interface
 
 All,
 
 I can chime in here on something related.  While GeoMoose doesn't (currently) 
 have any Mapfile tools, I'm currently in the middle of a project that has 
 built 
 out some autoconfigure items for MapServer.  The project is fairly specific 
 in 
 it's business tasks so the configure aspects are in their infancy, but it's 
 got 
 a real nice framework around it that will be very extensible.  We're using 
 GeoMoose, so it also (will) autoconfigure the GeoMoose interface to some 
 degree, 
 and hopefully future versions will be able to more fully control things.
 
 BTW, the initial ease of setup of GeoMoose has enabled this type of control 
 structure very nicely.  Some of the future items to figure out, is how to 
 best 
 accommodate those folks that also want to get into the MAPFILES and tweak 
 them 
 manually while still maintaining the autoConfigure aspects.
 
 Look for something in the next 30-60 days.
 
 bobb
 
 
 Jeff McKenna wrote:
  Dan Little wrote:
  (shameless plug) GeoMOOSE is very easy to setup and configure as a 
  front-end 
 to MapServer. (end)
  
  
  Hi Dan,
  
  I'm curious, does GeoMOOSE have any mapfile creation/management tools? If 
  yes, 
 maybe you can point us all to a demo.
  
  thanks.
  
  -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] Web interface

2009-12-11 Thread Dan Little
I would highly suggest a visit to www.geomoose.org :-) 



- Original Message 
 From: Patricio Gigoux pgig...@munistgo.cl
 To: mapserver-users@lists.osgeo.org
 Sent: Fri, December 11, 2009 9:25:10 AM
 Subject: Re: [mapserver-users] Web interface
 
 Bart:
 My idea is for client,  that they can do zoom as natural as you do it in
 arcview or jump for example, but in their browser. Similar to google may be.
 Behind of this frontend we have a phpmascript.
 
 Thanks
 
 Patricio
 
 
 
 bart...@osgis.nl escribió:
  Not sure if you actually mean a web mapping client [1] or an
  administration tool [2] for Mapserver, but:
 
  [1] http://www.openlayers.org
  [2]
  http://mapfishblog.blogspot.com/2009/03/studio-beta-for-mapfile-manager.html
 
  Best regards,
  Bart
 
   
  Hi everybody:
 
  Do you know a good web frontend for display and manipulate maps that has
  been produced in mapserver?
 
  Thanks a lot in advance
 
 
  Patricio
  ___
  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] Dynamically update layers without service interruption

2009-12-10 Thread Dan Little
Yes, it's a matter of how you do your data management.

Generally, if you're using MapServer in CGI mode you can update the data, or 
the mapfile, and the next time a request comes in, it will see the updated 
version of your image.



- Original Message 
 From: Björn Harrtell bjorn.harrt...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Sent: Mon, December 7, 2009 3:11:36 PM
 Subject: [mapserver-users] Dynamically update layers without service 
 interruption
 
 Is it possible to dynamically add and/or update layer definitions that
 also might involve updates to the underlying data without *any*
 service interruption? I'm primarily interested in this use case when
 using raster layers.
 
 I have indications that service interruptions can happen but cannot
 verify yet. I found
 http://www.mapserver.org/development/rfc/ms-rfc-44.html#rfc44
 describing the feature of dynamic updates (I assume?) but no mention
 about if service interruption can be expected and/or how to avoid it.
 
 Regards,
 
 Björn Harrtell
 ___
 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] Expression Syntax

2009-12-10 Thread Dan Little
You might want to check out the code for query.php in the GM2 branch.


From: Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us
To: Emiliano Castañeda emilianocastan...@suremptec.com.ar
Cc: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
Sent: Thu, December 10, 2009 3:20:58 PM
Subject: RE: [mapserver-users] Expression Syntax

 

Emiliano thanks for the response….yea I looked at the
documentation and it was a bit fuzzy to me…
 
If I do them individually it works:
#FILTERITEM 'USE1_DESC'
#FILTER /.*%idOwnerQueryDESC%.*/i
#FILTERITEM 'BLOCK'
#FILTER /.*%idOwnerQueryBLOCK%.*/i
 
FILTER ([USE1_DESC]=%idOwnerQueryDESC% AND
[BLOCK]=%idOwnerQueryBLOCK%)
ERROR: msEvalExpression: Expression parser error.  Failed to
parse expression: =Residential AND  =006
 
FILTER (USE1_DESC=%idOwnerQueryDESC% AND
BLOCK=%idOwnerQueryBLOCK%)
I seemed to get a bunch of returns that were incorrect...seems
like it grabbed all of them.
 
Thoughts?
 
 

From:Emiliano Castañeda
[mailto:emilianocastan...@suremptec.com.ar] 
Sent: Thursday, December 10, 2009 2:13 PM
To: Jay Kapalczynski
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Expression Syntax
 

Jay,

 

you must use FILTERITEM only for simple FILTER expressions
(string comparison only)

for example: 

FILTER 2005 -fieldvalue
FILTERITEM year -fieldname

 

For Logical FILTER expressions you do not define
FILTERITEM. In this case you must place the FILTER between parentheses,
and fieldnames between brackets 

 

for example:

FILTER ([field1]4000 AND
[field2]==Museum) --observe quotes on both sides on
text fields

 

See http://mapserver.org/mapfile/expressions.html#expressions for
detail on how to build logical expressions

 

Regards,

Emiliano

2009/12/10 Jay Kapalczynski jkapalczyn...@ci.maple-grove.mn.us


I
looked on map server website in the documentation and cant get the synstax
correct
 
I
have two textboxes idOwner and idOwner2
I
am a bit confused on the FILTERITEM because I am trying to write the expression
to include two fields.
 
USE1_DESC
and BLOCK are the two fields that form the query
 
  LAYER # Parcels Owner Layer
   
NAME 'Parcels'
   
DATA 'parcels/parcels.shp'
   
STATUS DEFAULT
   
TYPE POLYGON
   
METADATA
   
   
   
qstring_validation_pattern '.'
   
END
   
TEMPLATE 'parcels/itemquery_parcels_Owner.html'
 
   
FILTERITEM 'USE1_DESC'
 
   
FILTER (* WHERE USE1_DESC = '%idOwner%' and BLOCK =
'%idOwner2%') 
 
  END  
 
 

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



-- 
Ing. Emiliano Castañeda
SUR Emprendimientos Tecnológicos

Ing. Huergo 1189 (C1007AOL)
Ciudad de Buenos Aires, Argentina
Tel. +54 (11) 5811-4552   ext. 107
emilianocastan...@suremptec.com.ar
www.suremptec.com


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


Re: [mapserver-users] PGeo (Personal Geodatabases) options under Linux

2009-11-30 Thread Dan Little
I am making the gross assumption that someone, who is producing the PGeo file 
is on Windows and that person(s) would be available to do the conversion...


- Original Message 
 From: Stephen Woodbridge wood...@swoodbridge.com
 To: Dan Little danlit...@yahoo.com
 Cc: Chuck Jungmann ch...@cpjj.net; mapserver-users@lists.osgeo.org
 Sent: Sun, November 29, 2009 10:22:37 PM
 Subject: Re: [mapserver-users] PGeo (Personal Geodatabases) options under 
 Linux
 
 Dan Little wrote:
  not that this answers the problem... but is there any reason this
  cannot be exported to a shapefile and then served with mapserver?
 
 Good question. I think you would have to do that on a Windows box because the 
 MDBTools on Linux is just not up to the task. If you could export it on Linux 
 then you could also probably serve it directly via mapserver and ogr.
 
 -Steve W
 
  - Original Message 
  From: Chuck Jungmann To: Stephen Woodbridge
  Cc: mapserver-users@lists.osgeo.org Sent:
  Fri, November 27, 2009 5:17:03 PM Subject: Re: [mapserver-users]
  PGeo (Personal Geodatabases) options under Linux
  
  I've read that page several times. I have also built MDBTools,
  unixODBC and GDAL from CVS sources and applied patches, etc, so I
  could try to trace execution to the errors.  What I've found are
  instances where the code ultimately ends up in an empty function
  that simply returns SQL_SUCCESS or SQL_OK or whatever without doing
  anything.  That seems to be why MDBTools has trouble with SELECT
  COUNT(*) FROM xxx and why it can't find a primary key.
  
  While I can see that these database features are not working, it's
  also possible that they are not necessary.  I'm wondering if anyone
  has had success, either despite these errors, or by not
  encountering these errors, in which case I may find some success if
  I can duplicate their environment.
  
  Thanks for the quick reply, Chuck Jungmann
  
  On Fri, 2009-11-27 at 18:00 -0500, Stephen Woodbridge wrote:
  Chuck Jungmann wrote:
  I have a Personal Geodatabase (PGeo) from which I would like to
  display layers in MapServer on Ubuntu 9.04.  I have been
  fighting with MDBTools, unixODBC, and GDAL for what seems like
  forever.  The ogrinfo and isql fail with Segmentation Faults.
  
  I have two questions:
  
  1. Has anyone successfully used a PGeo file to display maps on
  MapServer under Linux?  Perhaps my efforts were doomed from the
  start.
  
  2. Since GDAL is using ODBC to read the MDB file, would using
  ODBC to access MySQL be a transparent replacement, assuming I
  copy all of the tables and indexes from the PGeo file to MySQL?
  Has anyone done this? I don't want to waste a lot of time on
  this if it's another dead end.
  Chuck,
  
  There was a recent thread related to these problems on the GDAL
  list. Frank posted the follow link and commented that there are
  also probable some open bugs. Evidently, the mdbtools are not
  well supported and buggy which makes using them problematic.
  
  http://trac.osgeo.org/gdal/wiki/mdbtools
  
  Check out this thread on the gdal-dev archives: [gdal-dev] mdb to
  shape conversion: no geometry exported
  
  -Steve
  
  ___ 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] PGeo (Personal Geodatabases) options under Linux

2009-11-29 Thread Dan Little
not that this answers the problem... but is there any reason this cannot be 
exported to a shapefile and then served with mapserver?


- Original Message 
 From: Chuck Jungmann ch...@cpjj.net
 To: Stephen Woodbridge wood...@swoodbridge.com
 Cc: mapserver-users@lists.osgeo.org
 Sent: Fri, November 27, 2009 5:17:03 PM
 Subject: Re: [mapserver-users] PGeo (Personal Geodatabases) options under 
 Linux
 
 I've read that page several times. I have also built MDBTools, unixODBC
 and GDAL from CVS sources and applied patches, etc, so I could try to
 trace execution to the errors.  What I've found are instances where the
 code ultimately ends up in an empty function that simply returns
 SQL_SUCCESS or SQL_OK or whatever without doing anything.  That seems to
 be why MDBTools has trouble with SELECT COUNT(*) FROM xxx and why it
 can't find a primary key.
 
 While I can see that these database features are not working, it's also
 possible that they are not necessary.  I'm wondering if anyone has had
 success, either despite these errors, or by not encountering these
 errors, in which case I may find some success if I can duplicate their
 environment.
 
 Thanks for the quick reply,
 Chuck Jungmann
 
 On Fri, 2009-11-27 at 18:00 -0500, Stephen Woodbridge wrote:
  Chuck Jungmann wrote:
   I have a Personal Geodatabase (PGeo) from which I would like to display
   layers in MapServer on Ubuntu 9.04.  I have been fighting with MDBTools,
   unixODBC, and GDAL for what seems like forever.  The ogrinfo and isql
   fail with Segmentation Faults.
   
   I have two questions:
   
   1. Has anyone successfully used a PGeo file to display maps on MapServer
   under Linux?  Perhaps my efforts were doomed from the start.
   
   2. Since GDAL is using ODBC to read the MDB file, would using ODBC to
   access MySQL be a transparent replacement, assuming I copy all of the
   tables and indexes from the PGeo file to MySQL?  Has anyone done this?
   I don't want to waste a lot of time on this if it's another dead end.
  
  Chuck,
  
  There was a recent thread related to these problems on the GDAL list. 
  Frank posted the follow link and commented that there are also probable 
  some open bugs. Evidently, the mdbtools are not well supported and buggy 
  which makes using them problematic.
  
  http://trac.osgeo.org/gdal/wiki/mdbtools
  
  Check out this thread on the gdal-dev archives:
  [gdal-dev] mdb to shape conversion: no geometry exported
  
  -Steve
  
 
 ___
 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] layer-getExtent() on raster layer

2009-11-18 Thread Dan Little
Add the EXTENT directive under the LAYER definition...

LAYER
... stuff ...
EXTENT MINX MINY MAXX MAXY
... stuff...
END


- Original Message 
 From: Josh Hevenor jheve...@rogers.com
 To: mapserver-users mapserver-users@lists.osgeo.org
 Sent: Wed, November 18, 2009 4:23:39 PM
 Subject: [mapserver-users] layer-getExtent() on raster layer
 
 I have a couple raster layers (ECW) and I'm trying to get the extent
 using php mapscripts' layer-getExtent method. I don't get an error on
 the call but when I try to use the resulting rectObj (eg.
 $rectRasterExtent-minx) I get an error trying to access a non-object.
 
 Does this function work on raster layers? What might I need in the map
 file layer definition to facilitate this?
 
 Thanks,
 
 Josh
 ___
 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] Mixed geometry in one layer

2009-11-16 Thread Dan Little
You'll need to create three separate layers and filter them based on the 
geometry type.
From: Rogério Borba rogerio.bo...@yahoo.com.br
To: mapserver-users@lists.osgeo.org
Sent: Mon, November 16, 2009 12:47:46 PM
Subject: [mapserver-users] Mixed geometry in one layer




Hi all, 
How can i display one layer with mixed
 geometry(On table there are rows of type:Point Linestring and Polygon)? 
I am using postgres/postgis.My table has a column of type Geometry( on table 
geometry_columns).
thanks,
  Rogério  

Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - 
Celebridades - Música - Esportes


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


Re: [mapserver-users] Is it possible to Cache online maps?

2009-11-12 Thread Dan Little
Caching Google Maps or Virtual Earth is strictly prohibited by their licensing 
agreements.

You can, however, create TileCaches of your own data that can be on a server or 
distributed to a desktop.




From: jbloc1...@googlemail.com jbloc1...@googlemail.com
To: mapserver-users@lists.osgeo.org
Sent: Thu, November 12, 2009 3:19:21 AM
Subject: [mapserver-users] Is it possible to Cache online maps?

Hi,

Is it possible to cache online maps such as google maps, ordinance survey, or 
virtual earth using mapserver?

Thanks for any help

___
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] entities one upon the other

2009-11-12 Thread Dan Little
You have a few options based on what you know about ahead of time:

1) If you know the stacking order ahead of time you can create separate layers 
that force the stacking to happen properly.

2) If you don't know the stacking order ahead of time, you can try using 
patterned fills instead of opaque fills.





From: Leonardo Olivieri leonardo.olivi...@imteam.it
To: mapserver-users@lists.osgeo.org
Sent: Thu, November 12, 2009 8:32:40 AM
Subject: [mapserver-users] entities one upon the other

Hello,

I have a polygon layer with entities, one located upon the other.

The result that I have is:
The entity located upon, hides the entity underneath.

Is it possible to configure mapfile  in such a way that where the
entities are located ones upon the others,
the colour becomes evidenced and different to the case in which the
entities aren't located ones upon the others?

Thank in advance
Leonardo





___
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] SUA convert

2009-11-09 Thread Dan Little
Shapefiles tend to be faster for processing than KML, however, KML gives you 
the benefit (?) of being able to present your data in Google Earth.  If you're 
just looking to display the data in Mapserver then I would definitely consider 
writing shapefiles.

MapScript (Python, Perl, PHP, whatever) has the ability to write shapefiles 
pretty easily and in Python you can write the DBF file using dbfpy, in perl you 
can use DBD::Xbase.




- Original Message 
 From: Scott Penrose sco...@dd.com.au
 To: mapserver-users@lists.osgeo.org
 Sent: Mon, November 9, 2009 6:06:09 AM
 Subject: [mapserver-users] SUA convert
 
 Hey team
 
 I am using Mapserver to show some airspace, and the data comes in a standard 
 format called SUA or OpenAir. Both a basic text files using LatLong and 
 descriptives shapes, such as:
 
 TYPE=CTA/CTR
 TITLE=ADELAIDE
 TOPS=FL245
 BASE=FL180
 POINT=S353001 E1364920
 POINT=S351526 E1373454
 POINT=S351526 E1373454
 ANTI-CLOCKWISE RADIUS=49.97 CENTRE=S345649 E1383128 TO=S354540 E1381803
 POINT=S354540 E1381803
 POINT=S362422 E1380512
 POINT=S362422 E1380512
 ANTI-CLOCKWISE RADIUS=89.95 CENTRE=S345649 E1383128 TO=S353001 E1364920
 
 What would be the best (probably read here - easiest) way to display the data 
 on 
 mapserver?
 Which probably translates to - what is the easiest file format or tools to 
 use 
 to convert and display the data above?
 
 E.g. I could write some Perl/XSL to convert the files into KML - but is that 
 the 
 right format? Perhaps shape files?
 
 Or... hope above hope... maybe someone has done this already? or knows 
 another 
 way to show Airspace files?
 
 Thanks
 
 Scott
 
 ___
 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] Designing a wrapper around mapserv which can be used with fcgi

2009-11-04 Thread Dan Little
If you can you might want to consider python... the syntax is a little cleaner 
with Mapscript.  Of course, that's an opinion but I also am a little allergic 
to sigils (I get all itchy).


- Original Message 
 From: Andy Colson a...@squeakycode.net
 To: Adrian Popa adrian_gh.p...@romtelecom.ro
 Cc: mapserver-users@lists.osgeo.org
 Sent: Wed, November 4, 2009 8:38:52 AM
 Subject: Re: [mapserver-users] Designing a wrapper around mapserv which can 
 be used with fcgi
 
  
  Andy Colson wrote:
  Andy Colson wrote:
  Adrian Popa wrote:
  Hello everyone,
  
  I am currently using a wrapper around mapserv which receives the URL 
 parameters, builds the map file (actually I only need to set some filters in 
 the 
 map file, but the filters need to be built after running some SQL queries 
 with 
 the passed in parameters). After the map file is built, mapserv is called (as 
 a 
 shell script), and the map gets sent to the user. Currently this wrapper is 
 written in perl - so it's not terribly fast as a cgi process.
  
  While this approach works, it is terribly inefficient. I would like to 
  use 
 mapserv as a fcgi process (or something faster than plain cgi). My question 
 is - 
 how can I /should I build a wrapper around mapserv that can customize the 
 MAP 
 file on the fly and run as a fcgi process?
  
  Any ideas on where I should start? An example of such a wrapper?
  
  Also, I suspect I can send parameters to mapserver and use some sort of 
 variables in the map file to set up my filters - but I haven't seen an 
 example. 
 Can someone point me to such a documentation?
  
  Thanks,
  Adrian
  
  Have you seen mapscript?  You can use mapserver directly from perl.  And 
 perl can do fast-cgi.  Here is a little, ad-hoc, non-tested, perl fcgi:
  
  
  #!/usr/bin/perl
  
  use strict;
  use mapscript;
  use FCGI;
  
  
  my $request = FCGI::Request( );
  while($request-Accept() = 0)
  {
  my($req, $x, $at, $xmap, $xpin, $sid, $y, $q);
  
  $req = new mapscript::OWSRequest();
  $req-loadParams();
  
  $xmap = $req-getValueByName('map');
  $xpin = $req-getValueByName('pin');
  
  my $map = new mapscript::mapObj( /maps/$xmap.map );
  if (! $map)
  {
  #print STDERR - Error loading map: $xmap.map\n;
  print(Content-type: text/text\r\n\r\n);
  print cant load $xmap.map;
  $request-Finish();
  next;
  }
  
  mapscript::msIO_installStdoutToBuffer();
  
  $x = $map-OWSDispatch( $req );
  if ($x)
  {
  print STDERR OWSDispatch: $x\n;
  my $errObj = new mapscript::errorObj();
  while ($errObj) {
  print STDERR ERROR: 
 $errObj-{code}:$errObj-{message}:$errObj-{routine} \n;
  $errObj = $errObj-next();
  }
  }
  
  my $content_type = 
  mapscript::msIO_stripStdoutBufferContentType();
  
  $x = mapscript::msIO_getStdoutBufferBytes();
  
  
  print(Content-type: $content_type\r\n\r\n);
  if (mapscript::msGetVersionInt() = 50500)
  {
  print $$x;
  } else {
  print $x;
  }
  
  mapscript::msIO_resetHandlers();
  $request-Finish();
  }
  
  
  
  I'd recommend using mapserver 5.6.0.
  
  -Andy
  
  
  
  Adrian Popa wrote:
   Thank you,
  
   I will look into it. I guess through mapscript I can redefine the
   parameters that get sent to mapserver? Or do I rewrite the whole map?
  
  
  
  You can load a map into memory (I assume you were already doing that). You 
 said ..perl.. receives the URL parameters ...and... builds the map file.
  
  
  I assume your perl does: use mapscript?
  
  and at some point: my $map = new mapscript::mapObj( /maps/$xmap.map );
  
  You kind of imbed mapserver into your perl script, and can call its 
  functions 
 and what not.  After you load the map you can do things to it, in memory.
  
  In my example above, I'm using the WMS features ($map-OWSDispatch), but 
  you 
 can also generate an image:
  
  my $img = $map-draw();
  $img-save('x.jpg', $mapscript::MS_JPG);
  
  -Andy
  
  
  
 
 Adrian Popa wrote:
  Thank you Andy for explaining.
 
  Actually my wrapper is very hard-core, meaning I don't use mapscript
  (because I had to build it quickly and didn't have time to research
  which was the best approach). Now I have more time and I'd like to tune
  things up, so I will definitely start studying mapscript (If you have a
  link to a good tutorial/function reference for it I am in your debt).
 
  My wrapper just copied over a template map file, edited it (rewrites
  some filters) and then it set
  $ENV{'QUERY_STRING'} = $ENV{'QUERY_STRING'}.map=$file;
 
  ...and then called
 
  print `/var/www/cgi-bin/mapserv`;
 
 
  It's barbaric, I know, but it worked for me. :)
  It will 

Re: [mapserver-users] Starting with TIGER Line Data and MapServer

2009-11-03 Thread Dan Little
A few questions for you.

Regarding #1
Were all of your shapes in the same projection as the Itasca demo? If not, 
their coordinates may have been far outside of the extents of the map.

Regarding #2
Do you have 300 shapefiles, meaning you have 300 layers you wish to display?  
If so, you might want to take a look at an alternate solution than the Itasca 
demo.  For example (toots own horn) GeoMOOSE is designed to allow multiple 
mapfiles to be used within a single application.   It makes the management of 
the large number of layers much more palatable.  We also have a number of users 
that are at the same level of layer management as you are and could give more 
suggestions on how to best manage that data for use in a Web GIS.


- Original Message 
 From: Monali Lodha monalilo...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Sent: Tue, November 3, 2009 8:14:38 AM
 Subject: [mapserver-users] Starting with TIGER Line Data and MapServer
 
 Hi,
 
 We are working on displaying the TIGER Data using MapServer.
 This is our first time with MapServer, and we would appreciate your
 help in the following areas:
 1. We could run the Itasca Demo Application. However, we could not
 integrate our shapefiles with the sample Mapfile. We have read the
 Mapfile documentation at the MapServer site. Any pointers on creating
 Mapfile?
 
 2. We have chosen a single state for our initial demo. However, the
 number of shapefiles is almost 300. How should we incorporate all
 these in the Mapfile?
 
 
 Any suggestions are welcome.
 Thanks.
 
 Monali
 Monali
 ___
 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] Quantize and 8bit/1bit PNG problem

2009-11-02 Thread Dan Little
You could use a Python/PHP mapscript wrapper that tests to see the number of 
colors in the PNG before returning it to the client.  In such a case you could 
manipulate the PNG using GD/PAL/Cairo/Graphics-Library-of-the-Month.


- Original Message 
 From: Frank Warmerdam warmer...@pobox.com
 To: paalkr pal.kristen...@statkart.no
 Cc: mapserver-users@lists.osgeo.org
 Sent: Mon, November 2, 2009 8:59:13 AM
 Subject: Re: [mapserver-users] Quantize and 8bit/1bit PNG problem
 
 paalkr wrote:
  Hi!
  
  Could I please ask for a comment on this issue from one of the developers?
 
 Pål,
 
 One bit PNGs are a perfectly valid response.   I would suggest
 two approaches.
 
 1) File a ticket with Microsoft on Bing Maps, and hopefully they will
 roll a fix into their operational build within a couple days.  (ha ha)
 
 2) Manually produce a nice empty tile that works with Bing Maps some
 other way, and write a script to replace the 1bit PNG file (which should
 presumably have a fixed size) with the bing-safe ones.
 
 Perhaps not the sort of answer you were hoping for, but you did
 implore us for comment even when none of us thought we had anything
 particularly bright to say.
 
 Best regards,
 
  paalkr wrote:
  Hi!
 
  I have the following output format defined in my mapfile (MapServer
  5.4.2):
 
 OUTPUTFORMAT
NAME png8bit
DRIVER AGG/PNG
MIMETYPE image/png
EXTENSION png
FORMATOPTION QUANTIZE_FORCE=ON
FORMATOPTION QUANTIZE_COLORS=256
FORMATOPTION QUANTIZE_NEW=ON
FORMATOPTION INTERLACE=OFF
 END
 
  This works very well most of the time, even transparency. But in
  situations where the GetMap request don't contain any data at all
  (returned image should be total transparent) the resulting PNG is 1bit in
  stead of 8bits. If the produced image does contain some data the produced
  image i 8bits, with correctly rendered transparency where there are no
  data.
 
  This behavior are specially troublesome when building a tile cache because
  there are a lot of this request without any valid data. In almost all
  applications I guess that this issue wouldn't do any harm, but we uses
  Bing Maps for some projects and Bing Maps can't handle 1bit PNGs.
 
  What can be done to overcome this issue? 
 
 
 -- 
 ---+--
 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 Programmer for Rent
 
 ___
 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] getFeatureInfo from Postgis

2009-10-23 Thread Dan Little
Does the PostGIS layer Map correctly?


From: Iratxe Lejarreta iratxe.lejarr...@axios.es
To: mapserver-users@lists.osgeo.org
Sent: Fri, October 23, 2009 5:34:44 AM
Subject: [mapserver-users] getFeatureInfo from Postgis

Hi,


I can't get the information (getFeatureInfo) of the features from Postgis with 
EPSG:23030, but the same request from a shapefile gives me the info.
I can get info from another layer with EPSG:4326, but not with EPSG:23030.
Is it some bug in MapServer?
Thanks!


-- 
Iratxe Lejarreta
www.axios.es


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


Re: [mapserver-users] Print template and WMS

2009-10-22 Thread Dan Little
The WMS service you are calling may have a limit on the size of images it will 
return.



- Original Message 
 From: Steve Lime steve.l...@dnr.state.mn.us
 To: Ruby minerdigg...@gmail.com; mapserver-users@lists.osgeo.org
 Sent: Wed, October 21, 2009 4:37:05 PM
 Subject: Re: [mapserver-users] Print template and WMS
 
 And the WMS layer's name  in question appears in the [layers] output?
 
  On 10/7/2009 at 2:20 PM, in message
 731ed3bb0910071220x4943b5beqc22f4516b86ee...@mail.gmail.com, Ruby
 wrote:
  Greetings,
  
  I employ a print function via javascript button in an HTML map template. The
  print template produces a higher resolution version of the existing map in a
  new window. The print form I am using works perfectly except for my single
  WMS client layer, all other layers display except this one. The WMS layer
  displays correctly in my main map window. The tmp file image does not
  include the WMS data.
  
  Can anyone please guide me in including the WMS data in my print template? I
  would rather not call the WMS server again for my print template as
  connections to this server are very slow. All other data is stored locally.
  
  Below are my javascript call button and the HTML print template.
  
  


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


Re: [mapserver-users] access problems from cgi-bin on Mac OS X 10.4.11 / MAMP

2009-07-15 Thread Dan Little
I'm on 10.5 and never played with 10.4, but I'll see if I can help as it's all 
just UNIX, right? :-)

I'm also assuming that your directory definition was not copied, pasted and 
emailed correctly so the superfluous \ are not really in that file.

Have you checked the permissions on the directory itself?  It may not be 
possible for the apache user to cd into the directory where the cgi-bin 
directory resides.



From: rmaurer jevoudrais0...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Friday, July 10, 2009 11:28:03 AM
Subject: [mapserver-users] access problems from cgi-bin on Mac OS X 10.4.11 / 
MAMP


So I'm a first time MapServer user and have been trying to navigate the 
installation process. I think I almost have it, but I am having some last 
problems. When I access my executable mapserv file from the command line, I 
get this: 


This script can only be used to decode form results and should be initiated as 
a CGI process via a httpd server. 

All sounds good, right? Well, I am using MAMP to host an Apache2.0 server. 
The httpd.conf file has the following in it:

Alias /cgi-bin/ [rootfile]/cgi-bin/ 

Directory [rootfile]/cgi-bin/\
 
AllowOverride None
 
Options ExecCGI FollowSymLinks Indexes
 
Order allow,deny
 
Allow from all

/Directory\ 

AddHandler cgi-script .cgi .py 

I know that first line should probably be ScriptAlias, but I kept getting a 
Permission Denied message and read in a forum that this was a solution 
somebody had come up with, and indeed it worked for me as well. 


Anyways, the problem is that in this cgi-bin I have my mapserv  executable 
(though one of the things I'm thinking is that maybe I need to add something 
else to AddHandler to make it think that this file is executable?). But when 
I got to //localhost/cgi-bin/mapserv it tries to download the file as 
Untyped Binary Data and it doesn't execute anthing.  

In case its of any help the ls -l for my cgi-bin gives the following 
information:
-rwxr-xr-x   1 Rebecca  Rebecca   51244 Jul  9 07:52 mapserv 

Do I not have this installed correctly? Or is my server just not realizing 
that this is executable. I would be thrilled if I could just get to the point 
where //localhost/cgi-bin/mapserv just brought up a No query information to 
decode message, since I think I can handle it from there. 


Thank you very much,

Rebecca 


 View this message in context: access problems from cgi-bin on Mac OS X 
 10.4.11 / MAMP
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


Re: [mapserver-users] Dynamic LabelItem

2009-06-30 Thread Dan Little

Upgrade...


- Original Message 
 From: stretch andrew.dekl...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Sent: Monday, June 29, 2009 2:13:29 PM
 Subject: Re: [mapserver-users] Dynamic LabelItem
 
 
 ok - thanks for the response. If I try
 map.layer[Compartments]=labelitem%20Age 
 i get
 getSymbol(): Symbol definition error. Parsing error near ():(line 1)
 
 I am using Mapserver 5, I guess I should be using 5.4?? If that is the case,
 is there a solution I could use with  version 5 or will I need to upgrade
 
 Thanks
 -- 
 View this message in context: 
 http://n2.nabble.com/Dynamic-LabelItem-tp3174574p3176452.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] best practice: map data structure

2009-06-29 Thread Dan Little

The most includes I've used in a single file is around 100.  50 or so layers 
each with a separate label and shape layer.  It worked pretty flawlessly.

There are two solutions to possibly keep in mind:
1 - Shameless Plug) Use an application setup like GeoMOOSE.  We have the 
application serve many layers in diverse mapfiles to try and simplify the 
management of mapfiles.  Version 2.0 is even better about this because you can 
use hybrids of different types of mapfiles to break down the problem however is 
best for display and performance.

2 - A bit more technical solution) Use a compiler.  Write a small file format 
that has a list of the mapfiles you wish to combine together, then write a perl 
script that combines the files together from the list.  This essentially 
performs the mapserver includes ahead of time. :-)  I've used this on various 
projects -- I'm even willing to share source-code ideas if you backchannel me.


- Original Message 
 From: Frank Broniewski li...@geo-dienstleistung.de
 To: mapserver-users@lists.osgeo.org
 Sent: Monday, June 29, 2009 1:27:34 AM
 Subject: Re: [mapserver-users] best practice: map data structure
 
 Hi Dan,
 
 thanks for your response. Using includes for the layers is a nice idea, and 
 it 
 keeps the layer data and configuration together. And you'd get a good 
 overview 
 over all avail. layers on your server just by looking at the existing. 
 directories. Even postgis layers would have a directory since the layers 
 mapfile would be stored there. And you could have several stylesheet layer 
 map files in the directory ...
 And in an application directory you could include all the layers necessary 
 for 
 the application in a master mapfile.
 
 Do you have experience in using lots of includes within a mapfile? I remember 
 using includes for about 30 layers in an php application (pmapper) once 
 (v4.10 
 on ubuntu 7.10) and I run into problems. namely there where too many open 
 files opened by apache and the mapserver process. It seemed, that the 
 includes 
 weren't closed, and each time the map was redrawn, the includes where opened 
 again and so the file system limit of max. open files was reached quite soon.
 
 On Saturday 27 June 2009 17:08:35 Dan Little wrote:
  It is very dependent on your needs.  For example, if you have departments
  responsible for various layers you may want to divide the structure by
  that, if there is only one administrator then that isn't necessary.
 
  Typically, if there is only one administrator I tend to do something like
  this...
 
  [root]/ -- make this whatever you want and that makes sense from a
  permissions and storage stand point for your new server.
 
  for a simple shapefile layer...
  [root]/layer_a/layer_a.map
  [root]/layer_a/layer_a.[shp|dbf|shx]
 
  for a tree'd shapfile
  [root]/layer_b/layer_b.map
  [root]/layer_b/layer_b.[shp|dbf|shx]
  [root]/layer_b/data/[... quad tree goes here ...]
 
  for a raster...
  [root]/layer_c/layer_c.map
  [root]/layer_c/raster/[... raster data ...]
 
  Then you can use mapserver includes to include the proper mapfile fragments
  into an applications various mapfiles.
 
  - Original Message 
 
   From: Frank Broniewski 
   To: mapserver-users@lists.osgeo.org
   Sent: Friday, June 26, 2009 8:43:05 AM
   Subject: [mapserver-users] best practice: map data structure
  
   Hello List,
  
   I want to migrate our old server to a new one, and I want to replace the
   somewhat grown map data folder and file mess into something more
   structured. Therefore I am looking for some advice on how to organize the
   Filesystem Hierarchy. Sure somehow its always a matter of taste and need,
   but maybe you have some comments on my proposed structure.
  
   I browsed already the mailing list archives and the documentation on the
   mapserver site but did not find any related infos, but I am willing to
   summarize this thread into a howto document if something useful comes up.
  
   I will be using a linux server, so the structure will reflect the unix
   filesystem hierarchy to a certain degree.
  
   A good starting point seems to be /usr/local/ to me.
  
   /usr/local/mapdata/ for storing raster and vector files
   /usr/local/mapfiles/ for mapfiles and other config files
  
   You would have /usr/local/mapdata/CLIENTDIR/vector and
   /usr/local/mapdata/CLIENTDIR/raster for client specific map data
   similar to
   /usr/local/mapdata/PROJECTDIR/... for project data
  
   and /usr/local/mapdata/share/vector  /usr/local/mapdata/share/raster for
   shared map data (srtm topo maps e.g.)
  
   A good structure for mapfiles  co would be:
   /mapfile.map
   /fonts/ - font config and font files (ttf)
   /icons/ - icon files (png, ...)
   /symbols/ - symbol.map
   /templates/ - template files
  
   This structure could be mapped to
   /usr/local/mapfiles/share/...
   or
   /usr/local/mapfiles/CLIENTDIR/...
  
   I would really appreciate any comments and shared experience

Re: [mapserver-users] Spatial queries to Mapserver

2009-06-27 Thread Dan Little
Make sure your user has limited table access.  This example would allow for SQL 
injection.




From: Gabriel Messner gabmess...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Friday, June 26, 2009 6:51:43 AM
Subject: Re: [mapserver-users] Spatial queries to Mapserver

Thanks, I´ll digest it :-)



2009/6/26 Ben Madin b...@remoteinformation.com.au

Gabriel,

You need to add a layer with your query in it - you can use variable 
substitution etc.

an example (may or may not be a good one!) :

LAYER
DEBUG 3
NAME buffalo
GROUP Movement
METADATA
layer_title Buffalo
layer_order 2
END
CONNECTIONTYPE postgis
CONNECTION host=localhost port=5432 dbname=prices
PROCESSING CLOSE_CONNECTION=DEFER
DATA route FROM (
SELECT s.id, s.commodity, s.shortname, s.amount, s.purpose, 
s.origprov, s.destprov, ST_MakeLine(s.startpoint, s.endpoint) as route, 
to_char(s.origindate,'DD/MM/') as date
FROM (
SELECT m.id, c.commodity, sp.shortname, c.amount, r.name AS 
purpose, 
initcap(o.name) as origprov, initcap(d.name) as destprov,
ST_Centroid(o.geom) as startpoint, ST_Centroid(d.geom) as 
endpoint, origindate
FROM movements m
LEFT OUTER JOIN locations o
ON m.originprovince = o.hiercode
AND o.del = 0
AND o.level = 2
LEFT OUTER JOIN locations d
ON m.destinationprovince = d.hiercode
AND d.del = 0
AND d.level = 2
JOIN commodities c
ON m.id = c.movementid
AND c.del = 0
AND c.commodity = 2
LEFT OUTER JOIN species sp
ON c.commodity = sp.id
AND sp.del = 0
LEFT OUTER JOIN reasons r
ON c.purpose::int = r.id
AND r.del = 0
WHERE m.del = 0
AND originprovince is not null
AND originprovince not like '0'
AND destinationprovince is not null
AND destinationprovince not like '0'
) AS s
WHERE s.origindate  '%start%'
AND s.origindate  '%end%'
ORDER BY s.origindate
) AS foo USING UNIQUE id USING srid=4326
TYPE LINE
STATUS ON
HEADER 'templates/trade_header.html'
FOOTER 'templates/trade_footer.html'
CLASSITEM commodity
CLASS
NAME Buffalo
EXPRESSION 2
STYLE
SYMBOL arrow1
OFFSET 0 0 
SIZE 12
COLOR 0 0 255
END
TEMPLATE 'templates/trade_query.html'
END
END


Actually, I don't think it's a great example, but it shows you how to create a 
line on the fly using the centroid (probably should have been point on surface) 
showing the direction the animals moved, within a user specified time frame.

I'm open to any feedback on this - it's a modification of one I modified from 
one Regina Obe posted somewhere.

I should say, note the use of debug. the error messages are invaluable when it 
doesn't work.

good luck

cheers

Ben





On 26/06/2009, at 2:47 PM, mapserver-users-requ...@lists.osgeo.org wrote:

Subject: [mapserver-users] Spatial queries to Mapserver



Hi all,

Any one know of examples about how to call spatial queries using Postis 
functions from Mapserver?


-- 

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

b...@remoteinformation.com.au



Out here, it pays to know...


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


Re: [mapserver-users] best practice: map data structure

2009-06-27 Thread Dan Little

It is very dependent on your needs.  For example, if you have departments 
responsible for various layers you may want to divide the structure by that, if 
there is only one administrator then that isn't necessary.

Typically, if there is only one administrator I tend to do something like 
this...

[root]/ -- make this whatever you want and that makes sense from a permissions 
and storage stand point for your new server.

for a simple shapefile layer...
[root]/layer_a/layer_a.map
[root]/layer_a/layer_a.[shp|dbf|shx]

for a tree'd shapfile
[root]/layer_b/layer_b.map
[root]/layer_b/layer_b.[shp|dbf|shx]
[root]/layer_b/data/[... quad tree goes here ...]

for a raster...
[root]/layer_c/layer_c.map
[root]/layer_c/raster/[... raster data ...]

Then you can use mapserver includes to include the proper mapfile fragments 
into an applications various mapfiles.

- Original Message 
 From: Frank Broniewski li...@geo-dienstleistung.de
 To: mapserver-users@lists.osgeo.org
 Sent: Friday, June 26, 2009 8:43:05 AM
 Subject: [mapserver-users] best practice: map data structure
 
 Hello List,
 
 I want to migrate our old server to a new one, and I want to replace the 
 somewhat grown map data folder and file mess into something more structured. 
 Therefore I am looking for some advice on how to organize the Filesystem 
 Hierarchy. Sure somehow its always a matter of taste and need, but maybe you 
 have some comments on my proposed structure.
 
 I browsed already the mailing list archives and the documentation on the 
 mapserver site but did not find any related infos, but I am willing to 
 summarize this thread into a howto document if something useful comes up.
 
 I will be using a linux server, so the structure will reflect the unix 
 filesystem hierarchy to a certain degree.
 
 A good starting point seems to be /usr/local/ to me.
 
 /usr/local/mapdata/ for storing raster and vector files
 /usr/local/mapfiles/ for mapfiles and other config files
 
 You would have /usr/local/mapdata/CLIENTDIR/vector and  
 /usr/local/mapdata/CLIENTDIR/raster for client specific map data
 similar to
 /usr/local/mapdata/PROJECTDIR/... for project data
 
 and /usr/local/mapdata/share/vector  /usr/local/mapdata/share/raster for 
 shared map data (srtm topo maps e.g.)
 
 A good structure for mapfiles  co would be:
 /mapfile.map
 /fonts/ - font config and font files (ttf)
 /icons/ - icon files (png, ...)
 /symbols/ - symbol.map
 /templates/ - template files
 
 This structure could be mapped to 
 /usr/local/mapfiles/share/...
 or
 /usr/local/mapfiles/CLIENTDIR/...
 
 I would really appreciate any comments and shared experience on this ...
 
 Listing:
 
 /usr/local/mapdata/
 /usr/local/mapdata/share/
 /usr/local/mapdata/share/raster/
 /usr/local/mapdata/share/raster/topo20/
 /usr/local/mapdata/share/raster/topo20/01.tif
 /usr/local/mapdata/share/raster/topo20/...
 /usr/local/mapdata/share/raster/topo20/99.tif
 /usr/local/mapdata/share/raster/topo20/tileindex.shp
 /usr/local/mapdata/share/vector/
 /usr/local/mapdata/share/vector/streetnetwork/
 /usr/local/mapdata/share/vector/streetnetwork/streets.shp
 /usr/local/mapdata/CLIENT/raster/
 /usr/local/mapdata/CLIENT/raster/ortho/
 /usr/local/mapdata/CLIENT/raster/ortho/01.tif
 /usr/local/mapdata/CLIENT/raster/ortho/...
 /usr/local/mapdata/CLIENT/raster/ortho/99.tif
 /usr/local/mapdata/CLIENT/raster/ortho/tileindex.shp
 /usr/local/mapdata/CLIENT/vector/
 /usr/local/mapdata/CLIENT/vector/cad/contours.shp
 /usr/local/mapdata/PROJECT/raster/
 /usr/local/mapdata/PROJECT/raster/climate/
 /usr/local/mapdata/PROJECT/raster/climate/precipitation.tif
 /usr/local/mapdata/PROJECT/vector/
 /usr/local/mapdata/PROJECT/vector/archeology-sites.shp
 
 /usr/local/mapfiles/
 /usr/local/mapfiles/share/
 /usr/local/mapfiles/share/mapfile.map
 /usr/local/mapfiles/share/fonts/
 /usr/local/mapfiles/share/icons/
 /usr/local/mapfiles/share/symbols/
 /usr/local/mapfiles/share/templates/
 /usr/local/mapfiles/CLIENT/
 /usr/local/mapfiles/CLIENT/mapfile.map
 /usr/local/mapfiles/CLIENT/fonts/
 /usr/local/mapfiles/CLIENT/icons/
 /usr/local/mapfiles/CLIENT/symbols/
 /usr/local/mapfiles/CLIENT/templates/
 /usr/local/mapfiles/PROJECT/mapfile.map
 /usr/local/mapfiles/PROJECT/fonts/
 /usr/local/mapfiles/PROJECT/icons/
 /usr/local/mapfiles/PROJECT/symbols/
 /usr/local/mapfiles/PROJECT/templates/
 ___
 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] If I use wms,the road be problem

2009-06-06 Thread Dan Little
Are you using a tiled map? One created with pmapper or tilecache?





From: 头太晕 torr...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Saturday, June 6, 2009 2:20:38 AM
Subject: [mapserver-users] If I use wms,the road be problem

Hello friends, I have a question.
If I use wms on mapserver, the road will be problem.
The style of line:
STYLE
WIDTH 7
COLOR 0 0 0
ANTIALIAS TRUE
END
STYLE
WIDTH 5
COLOR 255 255 0
ANTIALIAS TRUE
END

The picture of the map in mail attachment.



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


Re: [mapserver-users] Oracle Spatial and styleitem auto

2009-05-22 Thread Dan Little

You could use separate classes to do that?




- Original Message 
 From: Jelmer Baas b...@speerit.nl
 To: mapserver-users@lists.osgeo.org
 Sent: Friday, May 22, 2009 6:38:34 AM
 Subject: [mapserver-users] Oracle Spatial and styleitem auto
 
 Hello List,
 
 Are there any plans to create a way for MapServer to automaticly apply a
 certain style to data retrieved from Oracle Spatial? For example by
 specifying a style column in the mapfile which contains a MapInfo style
 description?
 
 With kind regards,
 Jelmer Baas
 ___
 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] Get the nearest layer with mapscript...

2009-05-20 Thread Dan Little
Would a drill down identify be appropriate for your application? Just query 
all of the layers?




From: Paul james paulj...@gmail.com
To: Fawcett, David david.fawc...@state.mn.us
Cc: mapserver-users@lists.osgeo.org
Sent: Wednesday, May 20, 2009 8:53:53 AM
Subject: Re: [mapserver-users] Get the nearest layer with mapscript...

Hi David...
In my system the user SELECT the active layer (dropdown), and so he can query 
it selecting a a area or a point 

But, I´d like to take off that dropdown to select active layer... And when user 
click on map to query, I figure out what layer was clicked and query that...

Paul


On Wed, May 20, 2009 at 10:44 AM, Fawcett, David david.fawc...@state.mn.us 
wrote:

Paul, 
 
I 
would guess that this really is about the client-side map interface and not 
about MapServer.  Does your interface only allow them to click/select the 
topmost layer?  Do you pick which layer is selectable?  Do you let 
them pick which layer is selectable?  Is it random?  
 
Tells 
us more about the client-side app.
 
David.
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul  james

Sent: Wednesday, May 20, 2009 7:55 AM
To: mapserver-users@lists.osgeo.org

Subject: Re: [mapserver-users] Get  the nearest layer with mapscript...


Thanks Pano...
But  It´s not that simple...
What I need is figure out what LAYER was clicked... 

Paul


On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris pvoudou...@gaiocorp.com wrote:

Probably don’t  understand what exactly you are trying to achieve here but it 
is not as  simple as map.getLayer(0) to get the topmost layer? And once you 
have the  layer object use one of the query function to select the record? E.g. 
  myLayerObj.queryByPoint ?
 
Pano
 
From:mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Paul james
Sent: 19 May 2009 21:46
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Get the nearest layer with mapscript...
 
Hello guys...
I have several layers (lines,  points, poly) ...
I´m developing a measure tool... User can click on map  and I have to select 
that layer to calculate de Area with  postgis...


I´m trying to do that WITHOUT using  LAYER ACTIVE SYSTEM...


Is That possible using mapscript? How  Can I find the nearest and toppest layer 
?

Thanks!

Paul
___
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] Check layer status in Geomoose

2009-05-13 Thread Dan Little

GeoMOOSE 1.6.X (and 2.0) suffer some documentation difficulties... it's a 
learn by example setup right now.  We're trying to get better with GM2.0 and 
its documentation is arguably better (http://www.geomoose.org/geomoose2/docs/) 
than GM1.6 but I still need to do more work documenting the different input 
options.


- Original Message 
 From: Leonidas Liakos leonidas_lia...@yahoo.gr
 To: mapserver-users@lists.osgeo.org; Dan Little danlit...@yahoo.com
 Sent: Tuesday, May 12, 2009 1:08:54 PM
 Subject: Re: [mapserver-users] Check layer status in Geomoose
 
 
 Thank you, I found it just looking at default identify tool.Is that option 
 documented?
 
 
 --- Στις Τρίτ., 12/05/09, ο/η Dan Little έγραψε:
 
  Από: Dan Little 
  Θέμα: Re: [mapserver-users] Check layer status in Geomoose
  Προς: leonidas , mapserver-users@lists.osgeo.org
  Ημερομηνία: Τρίτη, 12 Μάιος 2009, 19:59
  You need to have an input type that sends the visiblelayers
  input to your script.
  
  Are you using GeoMOOSE 1.6.X or GeoMOOSE 2.0 beta?
  
  
  - Original Message 
   From: leonidas 
   To: mapserver-users@lists.osgeo.org
   Sent: Monday, May 11, 2009 8:00:03 AM
   Subject: [mapserver-users] Check layer status in
  Geomoose
   
   
   I'm writing a custom tool in geomoose based on
  php/mapscript. 
   I'm trying to get the layer status for each on of
  my layers using
   $qlayer-status property.
   Always and for each layer it returns the value 2. But
  there aren't all the
   layers checked in the treeview of geomoose (and
  according displayed in the
   map). I think that  $qlayer-status property always
  return 2 because it
   checks the status in the mapfile (for my layers the
  status is DEFAULT) and
   not what is displayed in the map. So how can I get
  only the layers that are
   displayed in the map (or are checked in the treeview
  of Geomoose)? I also
   checked the $qlayer-isVisible() property but it
  also works with the same
   logic (it returns 1 for all layers, displayed or
  not).Thank you.
   -- 
   View this message in context: 
  
  http://n2.nabble.com/Check-layer-status-in-Geomoose-tp2862814p2862814.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
 
 
   
 ___ 
 Χρησιμοποιείτε Yahoo!; 
 Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
 διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
 μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 




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


Re: [mapserver-users] Check layer status in Geomoose

2009-05-12 Thread Dan Little

You need to have an input type that sends the visiblelayers input to your 
script.

Are you using GeoMOOSE 1.6.X or GeoMOOSE 2.0 beta?


- Original Message 
 From: leonidas leonidas_lia...@yahoo.gr
 To: mapserver-users@lists.osgeo.org
 Sent: Monday, May 11, 2009 8:00:03 AM
 Subject: [mapserver-users] Check layer status in Geomoose
 
 
 I'm writing a custom tool in geomoose based on php/mapscript. 
 I'm trying to get the layer status for each on of my layers using
 $qlayer-status property.
 Always and for each layer it returns the value 2. But there aren't all the
 layers checked in the treeview of geomoose (and according displayed in the
 map). I think that  $qlayer-status property always return 2 because it
 checks the status in the mapfile (for my layers the status is DEFAULT) and
 not what is displayed in the map. So how can I get only the layers that are
 displayed in the map (or are checked in the treeview of Geomoose)? I also
 checked the $qlayer-isVisible() property but it also works with the same
 logic (it returns 1 for all layers, displayed or not).Thank you.
 -- 
 View this message in context: 
 http://n2.nabble.com/Check-layer-status-in-Geomoose-tp2862814p2862814.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] (no subject)

2009-03-03 Thread Dan Little
Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongation of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!


check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox. More than messages 


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


Re: [mapserver-users] Mapserver images doesn' t fit well on a tiling scheme‏

2009-03-03 Thread Dan Little
I think you're a bit wrong there.  If you build the Cache using tilecache, when 
you use the metaTiles it will take a larger sample than the image being 
generated, for example if you have a 3x3 meta tile grid, the center tile of 
the nine-tile grid will be used.  I had the exact same problem you are 
describing, but then setup the tilecache generator to use metatiles and things 
started to work beautifully -- including labels.





From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 8:11:16 AM
Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏

 
 
With metaTile I can issue a pre-defined number of tiles that fit well. But this 
is per-request (if I'm right). For instance, if I make two consecutive requests 
of 4 tiles each from consecutive map zones, I get two sets of tiles that does 
not fit with each other (the first 4 do not fit side by side with the second 4).
 
The problem with that approach is that tiles from the same request fit well, 
but in order to construct a map like VE or Google Maps I need that tiles from 
different requests to always fit well.
 
Please tell me If I am wrong.
 

 Date: Tue, 3 Mar 2009 05:44:05 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] (no subject)
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org

 
Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




 From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongati on of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!


 check out the rest of the Windows Live™. More than mail–Windows Live™ goes way 
beyond your inbox. More than messages 


check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox. More than messages


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


Re: [mapserver-users] Mapserver images doesn' t fit well on a tiling scheme‏

2009-03-03 Thread Dan Little
There are two steps to a tilecache...
Step 1: Seeding it.
Step 2: Querying from it.

Metatile usefulness is best seen while seeding the tile cache.  If you look at 
the attached graphic (a rough estimation of a 3x3 meta-tile setup) then you'll 
see as the tilecache seed iterates through the map, it oversamples the map 
and uses the center image to represent the tile (A).  When moving onto the 
next tile (B), it performs the same over-sampling.  Since the map is then 
never at the edge of the generation you do not see errors with off-map lines 
and labelling at the edges.

Now, there two ways to query the tilecache:
1) As a WMS service.  IMO, this is slow you can do as you wish but I've always 
thought this to be quite a bit slower than taking the oppurunity to fully seed 
a tilecache.  In this scenario if you have a cache hit there is no additional 
generation costs.  If you have a cache miss the generation cost is greater, 
but mapserver, PIL, etc., are very efficient at generating images.  The actual 
cost of generating a 256x256 image and the cost of geneerating a 768x768 image 
is not terribly significant.  Plus, once it has been done for a tile, it never 
needs to be done again.

2) As a tilecache, this is where you just serve up the directory as a 
TileCache.  This is a lot faster but assumes you have fully seeded your cache.  
In this scenario you have no additional generation costs, all of that work has 
been done up front.





From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 10:17:08 AM
Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏

 
 I'm not sure if I got it right... When I request a 3x3 meta tile grid, 
tilecache only caches the center image? What if I request the image on the 
right of it and again another image to the right? Tilecache will issue new and 
overlapped requests to Mapserver? Or for the second request it will reuse a 
tile from the previous 3x3 request?
 

 Date: Tue, 3 Mar 2009 06:46:58 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org

 
I think you're a bit wrong there.  If you build the Cache using tilecache, when 
you use the metaTiles it will take a larger sample than the image being 
generated, for example if you have a 3x3 meta tile grid, the center tile of 
the nine-tile grid will be used.  I had the exact same problem you are 
describing, but then setup the tilecache generator to use metatiles and things 
started to work beautifully -- including labels.





 From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 8:11:16 AM
Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling 
scheme‏

 
 
With metaTile I can issue a pre-defined number of tiles that fit well. But this 
is per-request (if I'm right). For instance, if I make two consecutive requests 
of 4 tiles each from consecutive map zones, I get two sets of tiles that does 
not fit with each other (the first 4 do not fit side by side with the second 4).
 
The problem with that approach is that tiles from the same request fit well, 
but in order to construct a map like VE or Google Maps I need that tiles from 
different requests to always fit well.
 
Please tell me If I am wrong.
 

 Date: Tue, 3 Mar 2009 05:44:05 -0800
From: danlit...@yahoo.com
Subject: Re: [mapserver-users] (no subject)
To: nelson...@hotmail.com; mapserver-users@lists.osgeo.org

 
Check the documentation on the metaTile it requires having PIL installed but 
that is not really a big hassle.




 From: Nelson Correia nelson...@hotmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, March 3, 2009 6:17:10 AM
Subject: [mapserver-users] (no subject)

Hi,
 
We are using Mapserver to produce tiles for a web application, using Tilecache 
as the caching mechanism. 
 
When we were building the system, we figured out that tiles requested does not 
fit well side by side (the roads of one tile does not fit the prolongation of 
the same road in the next tile). To eliminate this issue, we had to issue an 
extra 10 pixels (around the whole tile) request to Mapserver and then cut them. 
 
Then another problem arose: we could not make this with the labels because they 
appeared cut in one tile and there was no prolongati on of it on the next tile. 
The solution was to divide it into different layers: one for the roads with the 
10 pixels buffer and another for the labels without buffer. This has the impact 
of duplicating the total number of images.
 
Anyone known an alternate solution for this problem?
 
Isn't Mapserver capable of serving images that fit well side by side?
 
Thanks in advance!


Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme???

2009-03-03 Thread Dan Little

Thanks Chris and Thomas for clarifying... I think my thoughts were correct and 
my descriptions were not... go figure.

MfG


- Original Message 
 From: thomas bonfort thomas.bonf...@gmail.com
 To: Christopher Schmidt crschm...@metacarta.com
 Cc: Dan Little danlit...@yahoo.com; mapserver-users@lists.osgeo.org
 Sent: Tuesday, March 3, 2009 12:01:45 PM
 Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling  
 scheme???
 
 To summarize, here is the way to *completely* avoid truncated labels
 and edge artifacts:
 
 * use a 10 pixel metabuffer in your tilecache config (the number of
 metatiles is irrelevant, but as Chris points out, there'll be more
 labels included if you use a 3x3 (or more) metatiling scheme than a
 1x1 one :
 
 metaTile=true
 metaSize=3,3
 metaBuffer=10
 
 * set a 10 pixel edge buffer in mapserver (so no labels are rendered
 in the 10 pixels on the edges of the image) :
 WEB
 METADATA
 labelcache_map_edge_buffer -10
 END
 END
 
 * use PARTIALS FALSE in all your label blocks
 
 --
 Thomas Bonfort
 CampToCamp



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


Re: [mapserver-users] GMLtoWKT

2009-01-28 Thread Dan Little
Depends on your environment... but if you can use javascript you could use 
OpenLayers... (this is off the top of my head... so excuse me if I screw 
something up...)

var gmlString = ... some GML!!! ...;
var wkt = new OpenLayers.Format.WKT();
var wfs = new OpenLayers.Format.GML();
var features = wfs.read(gmlString);
for(var i = 0; i  features.length; i++) {
var wktString = wkt.write(features[i]);

}






From: Nelson Soto ns...@plotplans.com
To: mapserver-users@lists.osgeo.org
Sent: Wednesday, January 28, 2009 1:56:59 PM
Subject: [mapserver-users] GMLtoWKT


Is anyone aware of how to convert coordinates from a WFS’s
GML to WKT acceptable coordinates? This is driving me crazy.


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


Re: [mapserver-users] plz help

2009-01-22 Thread Dan Little
If we give more help do you promise to:
1) Have a more descriptive subject.
2) Give more useful details.

Do you know which two points you have?  Finally, is this for a class 
assignment?  Judging from the plz and thank u, I'm cynically guessing this 
is not for a professional product.





From: Amiya Patra amiyapatra...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Thursday, January 22, 2009 7:53:23 AM
Subject: [mapserver-users] plz help

hi

still I am not getting how to connect two points which are already placed in 
map , by drawing a line. It is mandatory in my project through php mapscript. 
plz help me soon

thank u



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


Re: [mapserver-users] dynamically added shapes and their values

2009-01-21 Thread Dan Little
Totally spit balling...

What about writing your layer to a temp. file that's KML/GML.

The file size is small, it carries the attributes you want, and it's easy to  
write the file using anything that writes text files (presumable C# can write 
text files ... but I know Microsoft misses little details from time to time).

Then write yourself a little mapfile you can open... maybe following this as a 
guide...
http://mapserver.org/input/vector/gml.html
-or-
http://mapserver.org/input/vector/kml.html

And just change CONNECTION using Mapscript to whatever the location of your 
newly created KML/GML file happens to be, then proceed with the processing.



- Original Message 
 From: Steve Lime steve.l...@dnr.state.mn.us
 To: Pietro Giannini pgiann...@bytewise.it; mapserver-users@lists.osgeo.org
 Sent: Wednesday, January 21, 2009 2:43:31 PM
 Subject: Re: [mapserver-users] dynamically added shapes and their values
 
 PG: At this point inline feature can carry no attributes and as a result 
 cannot 
 be
 classified. So I don't think you're going to be able to make this work. The 
 work
 around is to use separate layers for what would have been a class and add
 features to the appropriate layer.
 
 Steve
 
  On 1/21/2009 at 10:29 AM, in message
 55312.89.97.235.106.1232555376.squir...@localhost.localdomain, Pietro
 Giannini wrote:
  Hi all,
  
  I'm working to a c# asp.net project embedding a mapscript application.
  
  My attempt is to add dynamically features to a layer object and classify
  them in different colors.
  The features are INLINE features: I don't add the features to the source
  of the layer.
  
  I'm able to create different classes and styles in the layer, set a field
  as classitem and set an EXPRESSION string to the class.
  
  I found the
  shapeObj.initValues(numOfFields)
  method, which cannot set the field names, only the number, and also the
  shapeObj.setValue(indexOfField, valueAsString)
  for setting the value.
  
  Now I need a field name to set a CLASSITEM property of the layer!!!
  I found no methods to add a named field to the layer.
  
  Maybe I follow a wrong way...
  
  Someone has an idea?
  thanks in advance
  ...pg
  
  
 
 ___
 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] PHP Mapscript question

2009-01-20 Thread Dan Little
Rafeal,

I think you'll need to clarify a little bit more.  Mapscript is a library you 
use inside of a PHP script.  If you're trying to access data on another server 
then you'll need to be more specific about what that data might be.  If you're 
trying to retrieve an image from another server then you might want to look 
into php curl.



- Original Message 
 From: rafael rafaelcha...@gmail.com
 To: mapserver-users@lists.osgeo.org
 Sent: Tuesday, January 20, 2009 8:16:02 AM
 Subject: [mapserver-users] PHP Mapscript question
 
 
 Sorry If shouldn't  post php mapscript questions here. But I have I doubt and
 didn't find a mapscript forum. So the question is the following. How do I
 set the mapserver information in PHP Mapscript?? What happen if my mapserver
 is running in other machine and I want to connect to that server from
 another host where I'm developing the web application??? 
 
 Thanks in advance.
 
 Rafael
 -- 
 View this message in context: 
 http://n2.nabble.com/PHP-Mapscript-question-tp2186664p2186664.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] integration php with tomcat

2009-01-20 Thread Dan Little
Did a google search, maybe this will help...

http://wiki.apache.org/tomcat/UsingPhp





From: Amiya Patra amiyapatra...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Tuesday, January 20, 2009 8:32:59 AM
Subject: [mapserver-users] integration php with tomcat

hi

I am unable to integrate php with tomcat as I cant find php servlet jar file(in 
linux as well as windows).It is not in my system.where I will get that file plz 
help me...

Thanks.



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


Re: [mapserver-users] Unable to open file for writing in windows(plz immediate response)

2009-01-19 Thread Dan Little
Do you even have a /opt directory (and the related sub-paths in windows)? It 
just seems to be a very Linux construction.

Regardless, are you running Apache as a windows service?





From: Amiya Patra amiyapatra...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Monday, January 19, 2009 7:18:37 AM
Subject: Re: [mapserver-users] Unable to open file for writing in windows(plz  
immediate response)

But in windows how I will check wheather apache user can write to that folder. 
Actually in linux my application is running ok. but in windows vista, I cant 
find the daemon apache user as in httpd.conf file daemon is mentioned as usr 
and group. But how I will give permission to this user for writing to that 
folder. Please help immediate..


On Wed, Jan 7, 2009 at 7:11 PM, Dan Little danlit...@yahoo.com wrote:

Make sure your apache user can write to that directory, also make sure they can 
cd into that directory.

-Duck




From: MOHAMMED SADIQUE SHADAB sadiquesha...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Wednesday, January 7, 2009 5:13:28 AM
Subject: [mapserver-users] Unable to open file 
/opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing


hi


unable to  generate image that is (.png) in FGS after giving  the URL as
URL:http://localhost:9000/cgi-bin/mapserv

please help me immediately

thanks

regards
SHADAB


___
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] newbie: Error in first atttempt to use postgis with mapserver?

2009-01-15 Thread Dan Little
Newer versions of Postgres do not automatically create an OID column, as it was 
a limited 32-bit construct.

Try add using unique XXX where XXX is the column name of the primary key (or 
at least a unique key).  If you've uploaded the layer from a shapefile using 
ogr2ogr you can use the column ogc_fid





From: Venkat Rao Tammineni vtammin...@roulacglobal.com
To: Saka Royban srph...@yahoo.com; MapServer mapserver-users@lists.osgeo.org
Sent: Thursday, January 15, 2009 5:33:35 AM
Subject: RE: [mapserver-users] newbie: Error in first atttempt to use postgis 
with mapserver?

 
Hi,
 
  I think OID column may not be with your table…Can
you check that ..
 
Thanks
Venkat.
 
From:mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Saka
Royban
Sent: Thursday, January 15, 2009 3:36 PM
To: MapServer
Subject: [mapserver-users] newbie: Error in first atttempt to use
postgis with mapserver?
 
Hi everyone.
i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn postgis
along with its data. but there is a problem
i got this error in first attempt to retrieve data from postgis:

msDrawMap(): Image handling error. Failed to draw layer named
'bc_municipality'. prepare_database(): Query error. Error declaring cursor:
ERROR: column oid does not exist LINE 1:
...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ With query 
string: DECLARE mycursor BINARY CURSOR FOR SELECT
asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from
bc_municipality WHERE the_geom  setSRID('BOX3D(458426.1 
260651.497368421,1943216.4 1373313.90263158)'::BOX3D,
find_srid('','bc_municipality ','the_geom') ) msPOSTGISLayerRetrievePGVersion():
Query error. Error executing POSTGIS statement
(msPOSTGISLayerRetrievePGVersion():select substring(version() from 12 for
(position('on' in version()) - 13)) 

i don't know what causes the problem although it sounds easy.
THX




-Inline Attachment Follows-

___
postgis-users mailing list
postgis-us...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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


Re: [mapserver-users] Mapserver.org sample ...

2009-01-14 Thread Dan Little
Bob  Chris,

OpenLayers and GeoMOOSE are entirely non-competitive projects.  The OL is a 
library on which to build mapping interfaces such as GeoMOOSE.  Which is why 
we're using it for GeoMOOSE 2... it gets rid of a lot of the tedium of 
maintaining code for the more basic aspects of the application (like Zooming, 
Drawing, etc.). 

The real advantage to GeoMOOSE is the service model, and the litany of services 
we try to make easy to configure for users.  Out of the box GeoMOOSE is high 
customizable but also highly useful.  The goal is to provide an interface to 
mapserver that works WITHOUT any coding.  I want people to know ZERO 
javascript, php, or python, and still be able to use the web-mapping client.



- Original Message 
 From: Bob Basques bob.basq...@ci.stpaul.mn.us
 To: bo...@gritechnologies.com; crschm...@metacarta.com
 Cc: mapserver-users@lists.osgeo.org
 Sent: Wednesday, January 14, 2009 11:13:24 AM
 Subject: Re: [mapserver-users] Mapserver.org sample ...
 
 Chris,
 
 The biggest piece I see GeoMoose contributing to, is the CGI calling methods. 
  
 GeoMoose makes extensive use of the ImageMap building and Query Mechanisms 
 available with MapServer, not just the image rendering.  Although the 
 stacking 
 of the images inside of the GeoMoose interface is and has been a novel way of 
 presenting the MapServer contructs (IMO).  OpenLayers does this as well to 
 some 
 degree, but I believe the GeoMoose interface provides a greater degree of end 
 user control.
 
 I'm interested in promoting more than just MapServer image rendering.  Using 
 Mapserver's CGI capabilities with a Client LIB is pretty much the way I've 
 used 
 MapServer since starting up with it over ten years ago.  The imagemap 
 (templating) and Query capabilities are just as important as the image 
 rendering.  The teaching reference below, was aimed squarely at the idea of 
 using MapServer via it's CGI calling structure, which I've always thought 
 should 
 be demo-ified in some location.  But since MapServer (and it's community) 
 hasn't 
 in the past had any particular interest in ratifying a client for use, I 
 never 
 pursued the idea.  But now, with that nice OpenLayers window on the MapServer 
 page, the sky's the limit so to speak, as far as setting up demos and 
 including 
 them in the MapServer site, or at least it seems like it should be.
 
 :c)
 
 
 bobb
 
 
 
  Christopher Schmidt 01/14/09 10:37 AM 
 On Wed, Jan 14, 2009 at 09:21:38AM -0600, Bob Basques wrote:
  All,
  
  The only reason I brought it up at all, was that I was playing around 
  with Openlayers myself this week.
  
  I pretty much copied the Demo from the MapServer website.  Sounds like 
  that was the wrong to go  :c)
 
 Absolutely. The demo on the MapServer site is using a layer that is
 generally not needed in any application -- at least not until you're
 looking for something that can be deployed without a MapServer 'server'
 in the mix.
  Benefits of GeoMoose (Main ones) for the normal user.
  
 * Fast (because of MapServer tuning.).  Smaller footprint
 
 The dem on the MapServer main site seems pretty fast to me. Much faster
 than any non-cached demo I've seen. Are you saying that GeoMoose has
 tuned MapServer t such an extent that it is faster to render images than
 it is to serve pre-rendered tiles that demonstrate MapServer's rendering
 skills?
 
 * Handles many layers with ease.  The limit is the client hardware,
   and the control is given to the user as to how many to display.
 
 This is a GeoMoose benefit over other client software, but I don't see
 how it makes a better demo of MapServer's rendering capabilities.  
 
 * The publishing of the data can be distributed, down to the layer
   level, including the contents of the popups.  Each layer can be
   managed separately without consequence to the rest of the
   interface, if it breaks, only that layer is not available.
 
 This is a GeoMoose benefit over other client software, but I don't see
 how it makes a better demo of MapServer's rendering capabilities.  
 
 * More interface user Control, layer fading, on/off, stacking order,
   popup on/off.
 
 This is a GeoMoose benefit over other client software, but I don't see
 how it makes a better demo of MapServer's rendering capabilities.  
 
 * And it's all a client lib as well, just like Openlayers.  Closer
   than you think.
 
 This is a GeoMoose benefit over other client software, but I don't see
 how it makes a better demo of MapServer's rendering capabilities.  
 
 * If I had to teach MapServer request strategies, I would use
   MapServer + GeoMoose + Firebug to do it.  GeoMoose uses the CGI
   functionality for images, imagemaps, and querying.
 
 I don't knwo what you mean by this, so I can't comment on it.
 
  Not that I'm trying to defend GeoMoose.  Just wanted to know how to join 
  in on popularizing MapServer.
 
 GeoMoose has many advantages over other 

Re: [mapserver-users] how MapServer manage the hyperlinks in the shapefile data table

2009-01-12 Thread Dan Little
Yes there is.  Look into the query and template functions in MapServer.

In the shapefile you should try to store a minimal representation of the 
hyperlink.  Like a ID or a relative URL.  That way if the look up system, or 
server, changes you do not need to do a complete update of your shapefile.

So, for example, say you had a column called OBJECTID that contained a unique 
identifier for the feature that is used in other systems.

In a template file you can do the following:
 a href=http://my.other.server/the/path/to/script.cgi?object_id=[OBJECTID]; 
target=_blankView in The Other System/a



- Original Message 
 From: Geosig geosig...@yahoo.ca
 To: mapserver-users@lists.osgeo.org
 Sent: Friday, January 9, 2009 3:31:40 PM
 Subject: [mapserver-users] how MapServer manage the hyperlinks in the 
 shapefile data table
 
 
 Hi everybody
 
 I am new in using MapServer so excuse me if my question it seems to you
 somehow... strange.
 
 There is any possibility to ad hyperlinks to the shapefile data table used
 by MapServer, so that when we see a querry table to be capable to follow
 these links?
 
 Thank you
 -- 
 View this message in context: 
 http://n2.nabble.com/how-MapServer-manage-the-hyperlinks-in-the-shapefile-data-table-tp2135378p2135378.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 on Intel Atom?

2009-01-12 Thread Dan Little
I think the atom will be more than adequate... depending on the dataset. :-)

Serving 100 points is significantly less intensive than serving 100 
city-boundary polygons.


(Oops forgot to send to the list)


- Original Message 
 From: kreshna_icehe...@yahoo.com kreshna_icehe...@yahoo.com
 To: mapserver-users@lists.osgeo.org
 Sent: Monday, January 12, 2009 8:09:15 PM
 Subject: [mapserver-users] MapServer on Intel Atom?
 
 I'll be doing a lot of MapServer demo in the future. I'm quite interested in 
 Intel Atom-based subnotebooks for the purpose (like Lenovo IdeaPad S10), 
 since 
 they are light and mobile.
 
 However, I wonder if Intel Atom is adequate to run MapServer. The MapServer 
 will 
 be run on either ms4w on Windows XP, or directly on Linux. The layers are 
 stored 
 on postGIS (there are fifteen layers or so), and there is also a 476 
 megabytes 
 raster file in .TIFF format.
 
 Will Intel Atom be adequate for the purpose? Will 2GB of memory help? Has 
 anyone 
 ever done such thing before?
 
 Many thanks,
 -Kresh
 
 
   
 ___
 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 MS SQL Server Spacial

2009-01-08 Thread Dan Little
I think one of the key problems will be using the postgis connector to connect 
to MSSQL...



- Original Message 
 From: Donald Kerr donald.k...@dkerr.co.uk
 To: mapserver-users@lists.osgeo.org
 Sent: Thursday, January 8, 2009 7:33:46 AM
 Subject: [mapserver-users] Mapserver MS SQL Server Spacial
 
 Is it possible to connect to MS SQL Server Spacial in the same was as
 PostGis?
 
 CONNECTIONTYPE postgis
 CONNECTION user=postgres dbname=MasterMap host=localhost
 DATA geom FROM topographicline USING UNIQUE toid
 
 Or
 
 CONNECTIONTYPE postgis
 CONNECTION user=postgres dbname=MasterMap host=localhost
 DATA geom FROM (SELECT toid, featurecode, textstring, orientation/10 AS
 orientation, fontnumber, anchorposition, textstyle, geom FROM
 cartographictext) AS foo USING UNIQUE toid
 
 If not, is there an alternative method without altering the database?
 
 Many thanks.
 
 Regards,
 
 Donald
 
 ___
 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] ippj-5.3.dll was not found

2009-01-08 Thread Dan Little
Did you make sure all the paths were properly setup?  I think you need to set 
an env variable to point to where the DLL's are located.

Also, Mapserver tends not to run really well from the commandline.  You'd need 
to set all of the environmental variables to account for the QUERY_STRING, etc.



- Original Message 
 From: boesiii boes...@yahoo.com
 To: mapserver-users@lists.osgeo.org
 Sent: Thursday, January 8, 2009 8:03:08 AM
 Subject: [mapserver-users] ippj-5.3.dll was not found
 
 
 I just downloaded and installed OSGeo4w.  I tried to test out mapserv.exe at
 the command line but I get and error stating Application failed to start
 because ippj-5.3.dll was not found. Reinstalling the application may fix
 this problem
 
 I tried to reinstall but I still get the same error.
 -- 
 View this message in context: 
 http://n2.nabble.com/ippj-5.3.dll-was-not-found-tp2128008p2128008.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] website upgrade for older documentation

2009-01-08 Thread Dan Little
Zach,

Not trying to be a pushy guy... but is there a feature missing in 5.0 prevents 
you from upgrading?



- Original Message 
 From: zach cruise zachc1...@gmail.com
 To: Jeff McKenna jmcke...@gatewaygeomatics.com
 Cc: mapserver-users@lists.osgeo.org
 Sent: Thursday, January 8, 2009 12:31:26 PM
 Subject: Re: [mapserver-users] website upgrade for older documentation
 
 thanks. any way to search 4.8 documentation? any one got archived copy
 other than 
 http://web.archive.org/web/20060701050731/http://mapserver.gis.umn.edu/?
 
 On Thu, Jan 8, 2009 at 12:21 PM, Jeff McKenna
 wrote:
  zach cruise wrote:
 
  On Wed, Jan 7, 2009 at 5:29 PM, zach cruise wrote:
 
  great website upgrade at http://www.mapserver.org/. how can i search
  for older documentation like with postgresql.org?
 
  The current (5.2.1) documents should have MapServer version references
  inside them for specific functionality (such as a specific mapfile parameter
  added in 5.0).
 
  -jeff
  --
  Jeff McKenna
  FOSS4G 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
 ___
 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] Unable to open file /opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing

2009-01-07 Thread Dan Little
Make sure your apache user can write to that directory, also make sure they can 
cd into that directory.

-Duck




From: MOHAMMED SADIQUE SHADAB sadiquesha...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Wednesday, January 7, 2009 5:13:28 AM
Subject: [mapserver-users] Unable to open file 
/opt/fgs/www/htdocs/tmp/Hello_World12312833136370.png for writing

hi


unable to  generate image that is (.png) in FGS after giving  the URL as
URL:http://localhost:9000/cgi-bin/mapserv

please help me immediately

thanks

regards
SHADAB



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


Re: [mapserver-users] Fwd: Getting error while running helloworld sample application in FGS in fedora 7

2009-01-07 Thread Dan Little
It's saying that because you haven't actually set any CGI parameters.  Try 
something more like this...

http:/localhost:9000/cgi-bin/mapserv?map=hello.mapmode=browse





From: MOHAMMED SADIQUE SHADAB sadiquesha...@gmail.com
To: mapserver-users@lists.osgeo.org
Sent: Wednesday, January 7, 2009 5:02:53 AM
Subject: [mapserver-users] Fwd: Getting error while running helloworld sample 
application in FGS in fedora 7

hi  all. 



First of all i  have installed the FGS mapserver in /opt/fgs in  9000  port . 
after that i
 checked in browser by loading this URL:http://localhost:9000/cgi-bin/mapserv

then  it displays the message as

No query information to decode. QUERY_STRING is set, but empty.


Then i have created one Sample Helloworld application .
For this i have created one hello.html file  and i have placed that file in 
/opt/fgs/www/htdocs/


my  Hello.html 

html
head
titleMapServer Hello World11/title/head
body
form method=POST action=/cgi-bin/mapserv
input type=submit value=Click Me
input type=hidden name=map value=/opt/fgs/www/cgi-bin/hello.map
input type=hidden name=map_web_imagepath value=/opt/fgs/www/htdocs/tmp/
/form
IMG SRC=[img] width=400 height=300 border=1
/body
/html


Then i  have created one hello.map file and placed that file in 
/opt/fgs/www/cgi-bin/

my  hello.map

# This is our Hello World mapfile
NAME Hello_World
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00 1.00 1.00
WEB
TEMPLATE /opt/fgs/www/htdocs/hello.html
IMAGEPATH /opt/fgs/www/htdocs/tmp/
IMAGEURL /tmp/
END
LAYER
STATUS default
TYPE point
FEATURE
POINTS 0.0 0.0 
END
TEXT HELLO WORLD
END
CLASS
STYLE
COLOR 255 0 0
END
LABEL
TYPE bitmap
END
END
END
END


After that i run the HTML file (hello.html)  in browser as the 

URL:http://localhost:9000/hello.html

 
 It displays  one button Click Me and broken image 

If i press the Click Me button  it shows errors as 

loadWeb(): Unknown identifier. Parsing error near 
(/opt/fgs/www/htdocs/tmp/):(line 1)


Please help me out from this problem,because i am very newbee to this mapserver 
and FGS

Thanks in advance


regards
SHADAB


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


Re: [mapserver-users] Showing pop up for a line

2009-01-06 Thread Dan Little
In my experience it's easier to do a buffer on the line features first 
(something nominal) which turns it into a polygon.  In this way, the operators 
you want to use work consistently.


- Original Message 
 From: Subha Ramakrishnan su...@gslab.com
 To: Steve Lime steve.l...@dnr.state.mn.us
 Cc: mapserver-users@lists.osgeo.org
 Sent: Tuesday, January 6, 2009 12:04:13 AM
 Subject: [mapserver-users] Showing pop up for a line
 
 Hi,
 
 I am using Mapserver 5.0.2 with Openlayers.
 I've a line layer (from mapserver) shown on my base map(google physical).
 Now, when i click on a line, i want to show a pop using openlayers.
 I am able to do this for a polygon layer. I send the lat,lon of the point 
 that 
 is clicked and use the postgis query
 ST_Contains(topology,geomFromText('POINT(77.87117958068927  
 13.491965860913544)',-1)) to find the polygon (and fetch the polygon 
 specific 
 data to show on pop up) and attach the Openlayers popup to the point clicked.
 
 I am not able to do this for a line layer as the postgis query doesn't return 
 anything.
 I tried this query also, 
 ST_Contains(topology,geomFromText('POINT(77.87117958068927  
 13.491965860913544)',-1)) AND 
 distance(topology,geomFromText('POINT(77.87117958068927 
 13.491965860913544)',-1)) = 1 but it doesn't work.
 
 Does any one know how to check if a point is a part of a line or if there is 
 any 
 other way to show the pop up?
 
 Thanks a lot for the help.
 
 Regards,
 Subha
 ___
 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] Showing pop up for a line

2009-01-06 Thread Dan Little
You may also want to use mapserver to render the lines as a raster layer 
instead of vector.



- Original Message 
 From: Steve Lime steve.l...@dnr.state.mn.us
 To: Subha Ramakrishnan su...@gslab.com
 Cc: mapserver-users@lists.osgeo.org
 Sent: Tuesday, January 6, 2009 9:31:18 AM
 Subject: Re: [mapserver-users] Showing pop up for a line
 
 Why not use straight MapServer queries? Set a reasonable tolerance and that 
 should
 work ok too.
 
 Steve
 
  On 1/6/2009 at 12:04 AM, in message 4962f45d.3010...@gslab.com, Subha
 Ramakrishnan wrote:
  Hi,
  
  I am using Mapserver 5.0.2 with Openlayers.
  I've a line layer (from mapserver) shown on my base map(google physical).
  Now, when i click on a line, i want to show a pop using openlayers.
  I am able to do this for a polygon layer. I send the lat,lon of the 
  point that is clicked and use the postgis query
  ST_Contains(topology,geomFromText('POINT(77.87117958068927  
  13.491965860913544)',-1)) to find the polygon (and fetch the polygon 
  specific data to show on pop up) and attach the Openlayers popup to the 
  point clicked.
  
  I am not able to do this for a line layer as the postgis query doesn't 
  return anything.
  I tried this query also, 
  ST_Contains(topology,geomFromText('POINT(77.87117958068927  
  13.491965860913544)',-1)) AND 
  distance(topology,geomFromText('POINT(77.87117958068927 
  13.491965860913544)',-1)) = 1 but it doesn't work.
  
  Does any one know how to check if a point is a part of a line or if 
  there is any other way to show the pop up?
  
  Thanks a lot for the help.
  
  Regards,
  Subha
  ___
  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] map mode for ajax calls

2008-11-06 Thread Dan Little
You can actually call the legend and individual layer images.

For the legends, mode=legend will help you out.  For the layer images, you 
could iterate through the layer name list to generate each individual image.



- Original Message 
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: mapserver-users@lists.osgeo.org
 Sent: Thursday, November 6, 2008 7:07:53 AM
 Subject: [mapserver-users] map mode for ajax calls
 
 Hi all,
 
 I've been playing using ajax calls to the ms executable.
 I'm using map mode and piping to a file, and returning this file ref to
 update the image div, and it works fast and fine.
 
 I would also like to update the legend, layer images, and it seems that
 these are only produced in browse mode.
 
 Outside of parsing the map file produced to extract the above image names
 when one pipes the cgi, is there another, possibly simpler way? way?
 
 regards,
 
 nicolas boretos
 
 ___
 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] TEMP FOLDER

2008-10-24 Thread Dan Little
Hi Bernard,

I've cross posted this onto the geomoose user's list.
1) Temp folder files (in MS4W) can over-write themsevles, I haven't seen a lot 
of problems with this personally, if there's something that causing you 
specific heart-ache then you may have to specify.

2) Changing the draw polygon icon in geomoose is pretty easy.
a) Have an image available somewhere, I'm going to use 
/images/draw_poly_icon.png for my example.
b) Open the mapbook, go to the service tag that defines the draw polygon 
service.
c) Inside of the service ... tag add an icon attribute. Ex: service 
title=Draw Polygon icon=/images/draw_poly_icon.png
d) You may also want to add a different Icon for when the tool is selected, 
repeat the process above but instead of using icon as the attribute name use 
highlight

3) Depends on your level of previous database knowledge.  On the whole, there 
is a wealth of documentation on Postgresql.org and on the PostGIS website.  
There are also any number of books that are quite good, reasonably priced, and 
widely available.  If you already have a strong back ground in database use, 
then the docs on the website usually provide analogs to Oracle or MySQL 
experience which can be enough for some people.





From: ntiamoah bernard [EMAIL PROTECTED]
To: mapserver-users@lists.osgeo.org
Sent: Friday, October 24, 2008 2:47:53 PM
Subject: [mapserver-users] TEMP FOLDER


Hi guys, 
I need help on these questions
 
1. Is it possible for the files in the temp folder to overwrite themselves 
without me going in and clearing all the time?
2. How do i change the image for draw polygon in the toolbar of geomoose?
3. i want to learn posgresql and postgis. Any suggestions
 
That's all guys thanks a lot
 
Bernard
Indiana 



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


Re: [mapserver-users] Need Step by Step tutorial for Dbox

2008-10-10 Thread Dan Little
(shameless plug)

If you're looking for something that's more setup out of the box than 
OpenLayers then I invite you to try GeoMOOSE.

We even have a mailing list (as advertised on our website 
http://www.geomoose.org/moose )

-Duck



- Original Message 
 From: Steve Lime [EMAIL PROTECTED]
 To: mapserver-users@lists.osgeo.org; [EMAIL PROTECTED]
 Sent: Friday, October 10, 2008 9:00:40 AM
 Subject: Re: [mapserver-users] Need Step by Step tutorial for Dbox
 
 Bernard: I wrote much of dBox but can't really recommend it as a tool 
 anymore. 
 OpenLayers is vastly superior and anything new I've done uses it instead. 
 I've 
 still used bits and pieces of the dBox code base (toolbar, legend) with 
 OpenLayers but I expect those fade away too. dBox works, I'm not running to 
 replace stuff I've built with it but I can't send new users down thatpath 
 with a better alternative out there. Have you looked at OL at all? With a 
 MapServer untiled layer and fractional zooms you can do what dBox does.
 
 Steve
 
  ntiamoah bernard 10/09/08 5:19 PM 
 I Just want to run this demo 
 http://maps.dnr.state.mn.us/tools/dbox/example/example.html
 on my localhost. Can somebody help me?
 
 Bernard
 Indiana
 
 
   
 ___
 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] nfs drive

2008-10-08 Thread Dan Little
You have to have the drive mounted for whatever user that is, not just as your 
self.

You'll have to excuse me if I cannot give you specific enough details, I'm 
generally a Unix/Linux guy and tend to need to work with Windows' face-to-face 
to figure stuff out.



- Original Message 
 From: zach cruise [EMAIL PROTECTED]
 To: mapserver-users@lists.osgeo.org
 Cc: Dan Little [EMAIL PROTECTED]; Minka Stoyanova [EMAIL PROTECTED]
 Sent: Wednesday, October 8, 2008 3:37:33 PM
 Subject: Re: [mapserver-users] nfs drive
 
 double checked!
 local *.map can access *.shp on remote/nfs g:.
 but local *.html can't access *.map on remote/nfs g: ??
 
 anyway how do i allow webserver user access to remote/nfs?
 
 On Wed, Oct 8, 2008 at 4:23 PM, Dan Little wrote:
  If the NFS drive is mapped to G: and the file G:/nfs.map exists (double 
 check that), then you have a permissions error.  The web server user 
 doesn't 
 have permission to access that directory.
 
 
 
  - Original Message 
  From: zach cruise 
  To: mapserver-users@lists.osgeo.org
  Cc: Dan Little ; Minka Stoyanova 
 
  Sent: Wednesday, October 8, 2008 3:17:41 PM
  Subject: Re: [mapserver-users] nfs drive
 
  you mean
  http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ??
  where g: is the mapped drive.
 
  it doesn't work.
  msLoadMap(): Unable to access file. (g:/nfs.map)
 
  On Wed, Oct 8, 2008 at 4:06 PM, Dan Little wrote:
   You can use NFS.
  
   If you're using Windows and have mapped the drive then the path is just 
 like
  it is in Explorer.
  
   In Linux/UNIX, then the path is where you mounted it.
  
  
  
   - Original Message 
   From: zach cruise
   To: mapserver-users@lists.osgeo.org
   Sent: Wednesday, October 8, 2008 3:01:54 PM
   Subject: Re: [mapserver-users] nfs drive
  
   can i put *.map on remote nfs (keeping mapserv cgi on local)? if yes
   how to reference it
  
   http://127.0.0.1/cgi-bin/mapserv?map=//123.4.5.6/nfs.map ??
   http://127.0.0.1/cgi-bin/mapserv?map=g:/nfs.map ??
  
   any one notice any lag with nfs? tips??
  
   On Thu, Oct 2, 2008 at 3:46 PM, Minka Stoyanova
   wrote:
Why in your path descriptions do you mix slashes and backslashes?
   
   
On Thu, Oct 2, 2008 at 8:52 PM, zach cruise wrote:
   
unable to map data (cities.shp) on nfs drive (g:). data pulls into
qgis fine. know it can be done-
   
   
  
  
 http://www.nabble.com/Re%3A-Server---map-files-on-differing-machines-p11660547.html,
   
   
  
  
 http://www.nabble.com/Re%3A-How-best-to-serve-very-large-%28300GB%29-raster-data--p16785070.html
   
MAP
...
# SHAPEPATH g:\
SHAPEPATH \\123.4.5.6\vol\data\
...
LAYER
...
# DATA poly/cities
DATA poly/cities
...
END
...
END
___
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] High resolution printing

2008-09-30 Thread Dan Little
If you'd like a PHP approach to this problem you can check out the GeoMOOSE 
project, and our print.php script.

It uses GD and FPDF.



- Original Message 
 From: Rob McCulley [EMAIL PROTECTED]
 To: mapserver-users@lists.osgeo.org
 Sent: Tuesday, September 30, 2008 4:33:37 PM
 Subject: RE: [mapserver-users] High resolution printing
 
 I'm working on the same thing right now.  The first option is to
 generate a high resolution raster image from mapserver and then user
 reportlab to put that into a .pdf.  The problem with this is the file
 size of the resulting .pdf is large, and the vectors still don't look as
 good as they could.
 
 What I've been working on now is using reportlab and svglib.  I create a
 high resolution .jpg of just the raster layers from mapserver, and then
 I create an .svg file of the vector layers.  I use svglib to convert the
 .svg file into a reportlab graphics object, and draw that on top of the
 raster into a .pdf document.  The file size is still large, but the
 vectors look much better.  The problem I'm having now is that not all of
 mapservers labeling options are available to svg output (namely, you
 can't wrap labels).
 
 http://www.reportlab.org/
 http://pypi.python.org/pypi/svglib/0.6.0
 
 
 Rob McCulley
 GIS Coordinator
 County of Vermilion River
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Brent
 Fraser
 Sent: Tuesday, September 30, 2008 3:16 PM
 To: Milo van der Linden
 Cc: mapserver-users
 Subject: Re: [mapserver-users] High resolution printing
 
 Milo,
 
 It will likely involve several changes to Mapserver's mappdf.c
 (see
 http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055593.html)
 .  
 
 Brent Fraser
 
 Milo van der Linden wrote:
  Hello list!
  
  I have been searching the web for tips and tricks, but basically what
 I 
  need is a method or procedure or (commercial) tool that can enhance my
 
  mapserver installation to enable high resolution printing.
  
  What I am looking for is the best practice to:
  
  - Add a button to our website
  - Let the button start a script or program that processes the active 
  layers in the map view based upon the current extent
  - Generate a mixture of high-res images and optionally svg or alike
 for 
  linework
  - combine the works in a pdf
  - present the pdf for download to the user
  
  I would also like to know if there are any commercial, mapserver
 based, 
  solutions for this. I am also willing to hire an expert to achieve
 this.
  
  Any ideas?
  
  Kind regards,
  
  Milo van der Linden
  ___
  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] transparent pixmaps in python mapscripts

2008-09-24 Thread Dan Little
It would be three step process.

1) Generate the image.
2) Perform the clipping.
3) Over lay the new clipped image onto the Aerial.

It would require two Mapscript calls to generate images (one for the overlay 
and one for the aerial) but it would let the solution work.  If you need any 
code I've used this method for a couple of applications' printing capabilities.



- Original Message 
 From: Fawcett, David [EMAIL PROTECTED]
 To: Dan Little [EMAIL PROTECTED]
 Cc: mapserver-users@lists.osgeo.org
 Sent: Wednesday, September 24, 2008 1:59:56 PM
 Subject: RE: [mapserver-users] transparent pixmaps in python mapscripts
 
 Thanks Dan, I am plopping it on an air photo, so I don't think that your
 approach will work.  
 
 David.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Dan Little
 Sent: Wednesday, September 24, 2008 10:02 AM
 To: Daniel Morissette; Fawcett, David
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] transparent pixmaps in python mapscripts
 
 
 You could render the map with a known background color, and then use PIL
 to create a transparent GIF from the image.
 
 If you can use white as the bg color then you can convert the image to a
 2 color bitmap in memory, and then use it as a mask to perform the
 transparency composition.
 
 
 
 - Original Message 
  From: Daniel Morissette 
  To: Fawcett, David 
  Cc: mapserver-users@lists.osgeo.org
  Sent: Wednesday, September 24, 2008 8:45:19 AM
  Subject: Re: [mapserver-users] transparent pixmaps in python 
  mapscripts
  
  David,
  
  TRANSPARENCY ALPHA works only between layers drawn using map.draw() in
 
  a
  single pass. If you call layer.draw() for each layer in a loop in your
 
  script then TRANSPARENCY ALPHA has no effect and that could explain
 the 
  problem you are encountering.
  
  Daniel
  
  
  Fawcett, David wrote:
   I am using a pixmap symbol to mark a point using Python MapScript v.
 
   5.2.

   The image has a transparent background.  When I use the symbol with
   MapServer CGI, I the transparency works.  When I use the symbol in 
   MapScript, I get a black background for the symbol, no transparency.
 

   Here is how I am creating the symbol:

   img = mapscript.imageObj(/symbols/redcross.png', 'GD/PNG')

   # create the symbol using the image
   symbol = mapscript.symbolObj('from_img')
   symbol.type = mapscript.MS_SYMBOL_PIXMAP
   symbol.setImage(img)
   symbol_index = mymap.symbolset.appendSymbol(symbol)

   I also tried to add this to the layer, but it made no difference 
   either: inline_layer.transparency = mapscript.MS_GD_ALPHA

   Here is a gdalinfo report on the symbol image:

   Driver: PNG/Portable Network Graphics
   Files: redcross.png
   Size is 32, 32
   Coordinate System is `'
   Image Structure Metadata:
 INTERLEAVE=PIXEL
   Corner Coordinates:
   Upper Left  (0.0,0.0)
   Lower Left  (0.0,   32.0)
   Upper Right (   32.0,0.0)
   Lower Right (   32.0,   32.0)
   Center  (   16.0,   16.0)
   Band 1 Block=32x1 Type=Byte, ColorInterp=Red
 Mask Flags: PER_DATASET ALPHA
   Band 2 Block=32x1 Type=Byte, ColorInterp=Green
 Mask Flags: PER_DATASET ALPHA
   Band 3 Block=32x1 Type=Byte, ColorInterp=Blue
 Mask Flags: PER_DATASET ALPHA
   Band 4 Block=32x1 Type=Byte, ColorInterp=Alpha

   Any ideas on how to get a pixmap symbol with a transparent 
   background
   using python mapscript? 

   Thanks,

   David.



   
   
   
   
   
   ___
   mapserver-users mailing list mapserver-users@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/mapserver-users
  
  
  --
  Daniel Morissette
  http://www.mapgears.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



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