From bartvde at osgis.nl Tue Mar 1 01:56:03 2011
From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS))
Date: Tue, 1 Mar 2011 10:56:03 +0100 (CET)
Subject: [mapserver-users] Re: strange raster problem
In-Reply-To: <62804.145.50.39.11.1297787133.squirrel@webmail.hostingdiscounter.nl>
References: <62804.145.50.39.11.1297787133.squirrel@webmail.hostingdiscounter.nl>
Message-ID: <24571.145.50.39.11.1298973363.squirrel@webmail.hostingdiscounter.nl>
We finally identified this issue, it seems that the SCALE_1 processing
directive does not work in case of 1 band images? Using SCALE instead of
SCALE_1 did the trick.
Is this a known issue/limitation?
Best regards,
Bart
> Hi list,
>
> we have a strange problem with an ArcSDE raster layer. At certain zoom
> levels the pixels are very coarse. Zooming out one level the pixels are
> okay, however the colour is not.
>
> You can see this in the following images, the first one is zoomed out and
> everything is okay (except the colours since the image should be mostly
> black):
>
> http://www.osgis.nl/download/mapserver/rws1.png
>
> However when zooming in one level, we obtain the following situation:
>
> http://www.osgis.nl/download/mapserver/rws2.png
>
> Does anyone have an explanation for this? Using Mapserver trunk from about
> 3 months back and GDAL 1.7.2.
>
> This is the info from ArcCatalog about the raster layer:
>
> BODEM.DNZ_GRINDPERCENTAGE_TOT_15CMSDE
> Rastergeodatabase.ad.rws.nlRWS_LEZEN5151\tcpSDE.DEFAULT1161,
> 20211250.00000000000011,
> 2508.95
> MBSDRcontinuousfloating
> point32
> Bit-3.402823E+38absentlevel:
> 4, resampling: Nearest
> NeighborLZ776199911.5560208503459782.82782689098750032.827826891095694661.5560208503ETRS_1989_UTM_Zone_31NMeter
> (1.000000)Degree
> (0.017453292519943299)500000030.99960D_ETRS_1989skipped
> columns:1, rows:1, ignored value:
> 0.559.808799743652340.8319692929200052.8258454488402290
>
> The LAYER definition is:
>
> LAYER
> CONNECTIONTYPE SDE
> DATA
> "SDE:xxxxx.ad.rws.nl,port:5151,5151,RWS_LEZEN,XXXXXX,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM,RASTER"
> DUMP TRUE
> EXTENT 459782.827826891 5694661.55602085 750032.827826891
> 6199911.55602085
> NAME "BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925"
> PROCESSING 'CLOSE_CONNECTION=DEFER'
> PROCESSING 'DITHER=NO'
> PROCESSING 'NODATA=NODATA'
> PROCESSING 'SCALE_1=0.5,59.8087997436523'
> PROCESSING 'BANDS=1'
> PROCESSING 'LOAD_FULL_RES_IMAGE=NO'
> PROCESSING 'LOAD_WHOLE_IMAGE=NO'
> SIZEUNITS PIXELS
> UNITS METERS
> STATUS ON
> TEMPLATE 'blank.html'
> TOLERANCE 5
> TOLERANCEUNITS PIXELS
> TYPE RASTER
> PROJECTION
> 'init=epsg:25831'
> END
> METADATA
> 'wms_title' 'Grindpercentage, stretched'
> 'wms_layer_group' '/Grindpercentage_ NCP'
> 'wms_metadataurl_format' 'text/xml'
> 'wms_metadataurl_href'
> 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM'
> 'wms_metadataurl_type' 'TC211'
> 'wcs_abstract' 'noordzee grind en zand raster'
> 'wcs_bandcount' '1'
> # 'wcs_description' 'noordzee grind en zand raster' # Optional
> 'wcs_extent'
> '459782.827826891,5694661.55602085,750032.827826891,6199911.55602085'
> 'wcs_formats' 'GTiff,MrSID,ECW'
> 'wcs_keywords' 'RWS,Rijkswaterstaat,noordzee grind en zand
> raster,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925'
> 'wcs_label' 'Grindpercentage, stretched' # Required
> 'wcs_metadatalink_format' 'text/xml'
> 'wcs_metadatalink_href'
> 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM'
> 'wcs_metadatalink_type' 'TC211'
> 'wcs_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925'
> # 'wcs_nativeformat' 'Raster' # Optional
> 'wcs_rangeset_label' 'Grindpercentage, stretched'
> 'wcs_rangeset_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925'
> END
> PROCESSING 'SCALE_BUCKETS=256'
> CLASS
> STYLE
> COLORRANGE 0 0 0 255 255 255
> DATARANGE -4.81972160476045 6.48366019060046
> RANGEITEM "pixel"
> END
> END
> END
>
> TIA.
>
> Best regards,
> Bart
>
From falcacibar at gmail.com Tue Mar 1 06:10:07 2011
From: falcacibar at gmail.com (Felipe Alcacibar)
Date: Tue, 1 Mar 2011 11:10:07 -0300
Subject: [mapserver-users] Compiling with opengl support
In-Reply-To:
References:
Message-ID:
Thomas:
Thanks for the answer, i want to test this function because it seems
amazing the use of GPU instead CPU to render.
if i found some bug i sent it to the mapserver trac, oviously i have
my account and a previous ticket too ;)
Felipe Alcacibar Buccioni
On 22 February 2011 14:26, thomas bonfort wrote:
> Felipe,
> opengl support should compile and run in the trunk version of
> mapserver, you'll have to do a checkout if you want to try it out.
> please report back the bugs you see ;)
>
> --
> thomas
>
> On Tue, Feb 22, 2011 at 16:38, Felipe Alcacibar wrote:
>> Hi, i am trying to compile mapserver with the experimental opengl
>> support for experimental proposes too, but i cannot do it, i am using
>> mesa opengl, gentoo 64bits linux system and mapserver 5.6.6 but it
>> seems like this little problems that i cannot figure =/.
>> are a solution to this, i need another library, another implementation
>> of opengl?
>>
>> mapogl.cpp: In function ?int msPopulateRendererVTableOGL(rendererVTableObj*)?:
>> mapogl.cpp:225: error: invalid conversion from ?void (*)(imageObj*,
>> shapeObj*, colorObj*, double, int, double*)? to ?void (*)(imageObj*,
>> shapeObj*, strokeStyleObj*)?
>> mapogl.cpp:242: error: invalid conversion from ?void (*)(imageObj*,
>> shapeObj*, void*)? to ?void (*)(imageObj*, shapeObj*, imageObj*)?
>> mapogl.cpp:243: error: invalid conversion from ?void (*)(void*)? to
>> ?void (*)(imageObj*)?
>>
>> wait for your ansewers, thanks in advice.
>>
>> Felipe Alcacibar Buccioni
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
From Bob.Bistrais at maine.gov Tue Mar 1 08:56:12 2011
From: Bob.Bistrais at maine.gov (Bistrais, Bob)
Date: Tue, 1 Mar 2011 11:56:12 -0500
Subject: [mapserver-users] queryByFeatures not working in 5.6.6?
Message-ID: <4EFF8BB964547748A07CA32961810C041A036E39@SOM-TEAQASMAIL1.som.w2k.state.me.us>
We are upgrading our MapServer installation to 5.6.6, and now are
finding a problem with queries that were previously working.
I'm tracing the problem to a queryByFeatures operation. We are taking a
selected parcel and querying a zoning layer to see what zones are
intersected by the parcel. We are able to successfully select the
parcel by a queryByAttributes. We get the shape from the selected
parcel, then attempt a queryByFeatures. But no results are returned for
the zoning layer.
As I mentioned earlier, this was functioning properly in the previous
version of MapServer. Is there a change in syntax or something else
that I'm not aware of?
Here is some of the code to perform the query:
-At this point, a parcel has been selected...
// Loop through the results set (there should only be one), get the
shape, and save the
// shape attributes.
for ($i=0; $i<=($oLayer_lurc_parcels->getNumResults() - 1); $i++) {
$oResult = $oLayer_lurc_parcels->getResult($i);
$oLayer_lurc_parcels->open();
$oShape =
$oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1);
$TPL = $oShape->getValue($oLayer_lurc_parcels,"TPL");
$_SESSION['results']['TPL'][$_SESSION['nresults']] =
substr($TPL,0,5);
$oLayer_lurc_parcels->close();
}
// Perform the intersection; query the zones layer with the parcel
feature. Again, should
// only be one parcel.
$oLayer_lurc_zones->queryByFeatures($oLayer_lurc_parcels->index);
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From woodbri at swoodbridge.com Tue Mar 1 10:41:20 2011
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Tue, 01 Mar 2011 13:41:20 -0500
Subject: [mapserver-users] OGC services have changed in trunk
In-Reply-To: <201103011247.58344.aboudreault@mapgears.com>
References: <201102231521.04556.aboudreault@mapgears.com> <201102281042.27835.aboudreault@mapgears.com>
<201103011247.58344.aboudreault@mapgears.com>
Message-ID: <4D6D3DD0.1020205@swoodbridge.com>
Hi Users,
If you are NOT using SVN trunk and OGC service - you can stop reading here.
If you are using trunk and not on the mapserver-dev, then you might want
to read this thread in the archives and look at RFC 67.
For trunk and for 6.0, you will need to add the follow to disable new
OGC/OWS security features and get the old behavior:
WEB
"ows_enable_request" "*"
END
Thanks,
-Steve W
On 3/1/2011 12:47 PM, Alan Boudreault wrote:
> Devs,
>
> I'd like to inform you that I've committed the RFC 67 implementation in trunk,
> so if you need to work/test with OGC services... I would suggest you to add
> this metadata at the map level:
>
> WEB
> "ows_enable_request" "*"
> END
>
> Thanks,
> Alan
>
> On February 28, 2011 10:42:27 am Alan Boudreault wrote:
>> For the record.... I declare this RFC adopted on 2010-02-25 with +1 from
>> FrankW, PericlesN SteveW, DanielM, AssefaY, JeffM, TamasS.
>>
>> I have began the implementation.
>>
>> Alan
>>
>> On February 24, 2011 04:43:13 am Tamas Szekeres wrote:
>>> +1
>>>
>>> Tamas
>>>
>>>
>>>
>>> 2011/2/23 Alan Boudreault
>>>
>>>> Since there do not seem to be any outstanding issue, I think we can go
>>>> ahead
>>>> and vote to adopt RFC-67 as it is now for implementation in MapServer
>>>> 6.
>>>>
>>>> I start with my +1.
>>>>
>>>> Alan
>>>> --
>>>> Alan Boudreault
>>>> Mapgears
>>>> http://www.mapgears.com
>>>> _______________________________________________
>>>> mapserver-dev mailing list
>>>> mapserver-dev at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
From Bob.Bistrais at maine.gov Tue Mar 1 12:01:52 2011
From: Bob.Bistrais at maine.gov (Bistrais, Bob)
Date: Tue, 1 Mar 2011 15:01:52 -0500
Subject: [mapserver-users] queryByFeatures not working in 5.6.6?
In-Reply-To:
References: <4EFF8BB964547748A07CA32961810C041A036E39@SOM-TEAQASMAIL1.som.w2k.state.me.us>
Message-ID: <4EFF8BB964547748A07CA32961810C041A036E3B@SOM-TEAQASMAIL1.som.w2k.state.me.us>
I think I've found a workaround. I actually replaced my queryByFeatures
with a queryByShape. This works in my application. But, I'm afraid I
can't explain why the queryByShape is not working for Mathieu. Maybe
you should try queryByFeatures and see if it works for you!
________________________________
From: Mathieu Kouri [mailto:mkouri at dbxgeomatics.com]
Sent: Tuesday, March 01, 2011 2:33 PM
To: Bistrais, Bob; mapserver-users
Subject: RE: [mapserver-users] queryByFeatures not working in 5.6.6?
Hi,
I would like to mention that we have been also having problem in using
queryByShape(...).
We were on 5.6.4 and everything was working fine but when updating to
5.6.6 this is no longer seems to be working.
Thanks
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais,
Bob
Sent: March-01-11 11:56 AM
To: mapserver-users
Subject: [mapserver-users] queryByFeatures not working in 5.6.6?
We are upgrading our MapServer installation to 5.6.6, and now are
finding a problem with queries that were previously working.
I'm tracing the problem to a queryByFeatures operation. We are taking a
selected parcel and querying a zoning layer to see what zones are
intersected by the parcel. We are able to successfully select the
parcel by a queryByAttributes. We get the shape from the selected
parcel, then attempt a queryByFeatures. But no results are returned for
the zoning layer.
As I mentioned earlier, this was functioning properly in the previous
version of MapServer. Is there a change in syntax or something else
that I'm not aware of?
Here is some of the code to perform the query:
-At this point, a parcel has been selected...
// Loop through the results set (there should only be one), get the
shape, and save the
// shape attributes.
for ($i=0; $i<=($oLayer_lurc_parcels->getNumResults() - 1); $i++) {
$oResult = $oLayer_lurc_parcels->getResult($i);
$oLayer_lurc_parcels->open();
$oShape =
$oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1);
$TPL = $oShape->getValue($oLayer_lurc_parcels,"TPL");
$_SESSION['results']['TPL'][$_SESSION['nresults']] =
substr($TPL,0,5);
$oLayer_lurc_parcels->close();
}
// Perform the intersection; query the zones layer with the parcel
feature. Again, should
// only be one parcel.
$oLayer_lurc_zones->queryByFeatures($oLayer_lurc_parcels->index);
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From stephan.holl at intevation.de Wed Mar 2 07:25:47 2011
From: stephan.holl at intevation.de (Stephan Holl)
Date: Wed, 2 Mar 2011 16:25:47 +0100
Subject: [mapserver-users] WFS Filter Encoding and resulting DB-queries
In-Reply-To: <4D65D601.3030601@dmsolutions.ca>
References: <20110222094428.5b7c7e3c@thoe.hq.intevation.de>
<4D64FCFA.5070505@dmsolutions.ca>
<20110223140656.60fafb86@thoe.hq.intevation.de>
<4D65D601.3030601@dmsolutions.ca>
Message-ID: <20110302162547.0d5034d6@thoe.hq.intevation.de>
Hello Assefa,
Yewondwossen Assefa , [20110223 - 22:52:33]
> On 23/02/2011 8:06 AM, Stephan Holl wrote:
> > Hello Assefa,
> >
> > Yewondwossen Assefa, [20110223 - 07:26:34]
> >
> >> Hi Stephan,
> >>
> >> On 22/02/2011 3:44 AM, Stephan Holl wrote:
> >>> Hello list,
> >>>
> >>> while playing with MapServer WFS Filter Encoding capabilities I
> >>> found some strange things when it comes to form the DB-queries
> >>> (the requested layer is PostGIS-driven).
> >>>
> >>> It seems that there will always be a full table-scan and later on
> >>> the FE will be applied. Is this done by design?
> >>>
> >> Filters that do include spatial filters end up using the
> >> mapserver experssions. 'Simple' filters should end be using
> >> traslated into the layer's filter expression and end up being used
> >> by postgis as part of the data selection. What does the filter
> >> encoding looks like?
> > It is not a spatial-filter we use currently. It is an
> > attribute-based IsLike-Filter like seen here[1], but we use it with
> > POST. So adding a BBOX-related filter as another AND-filter will
> > result in optimized SQL-Query with only the subset fetched from the
> > database? If so, this seems worth to document though.
> >
> The filter you sent as example should use the layer's filter
> element and that should be used when retrieving the data at the
> postgis level. When the layer is in debug mode, MapServer 5.6.x logs
> in this case shows something like (which indicates that the filter is
> used at the postgis level)
> ...
> msPostGISLayerWhichShapes query: select .... and ( (NAME like 'Syd%'
> escape '!') )
yes, I will get the above query-entries. But before of that there is
another query stated in the logs:
select * from "projects_with_location" where false limit 0
which pointed me to a (false) conclusion.
Thank you for clarifying thouh.
Best
Stephan
--
Stephan Holl | Tel.: +49 (0)541-33 508 3663
Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998
Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL:
From Steve.Lime at state.mn.us Wed Mar 2 21:04:30 2011
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Wed, 2 Mar 2011 23:04:30 -0600
Subject: [mapserver-users] queryByFeatures not working in 5.6.6?
In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036E3B@SOM-TEAQASMAIL1.som.w2k.state.me.us>
References: <4EFF8BB964547748A07CA32961810C041A036E39@SOM-TEAQASMAIL1.som.w2k.state.me.us>
,
<4EFF8BB964547748A07CA32961810C041A036E3B@SOM-TEAQASMAIL1.som.w2k.state.me.us>
Message-ID:
queryByFeatures uses a query against one layer to select features that are used against other layers. For example, select a county by name and then use it to select lakes or whatever. It's probably a stupid name for the method but that's what it does. It's a two-stage query and a pretty specific use case.
As for why things would stop working, not sure without more information. With some of the query processing speedups added in the 5.4 and 5.6 versions we used the various indexes in a result object to store information necessary for fast access. I see you're not passing the result tileindex:
$oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1);
That may be the source of the problem. What happens if you do:
$oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex, $oResult->tileindex);
instead?
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob [Bob.Bistrais at maine.gov]
Sent: Tuesday, March 01, 2011 2:01 PM
To: Mathieu Kouri; mapserver-users
Subject: RE: [mapserver-users] queryByFeatures not working in 5.6.6?
I think I?ve found a workaround. I actually replaced my queryByFeatures with a queryByShape. This works in my application. But, I?m afraid I can?t explain why the queryByShape is not working for Mathieu. Maybe you should try queryByFeatures and see if it works for you!
________________________________
From: Mathieu Kouri [mailto:mkouri at dbxgeomatics.com]
Sent: Tuesday, March 01, 2011 2:33 PM
To: Bistrais, Bob; mapserver-users
Subject: RE: [mapserver-users] queryByFeatures not working in 5.6.6?
Hi,
I would like to mention that we have been also having problem in using queryByShape(...).
We were on 5.6.4 and everything was working fine but when updating to 5.6.6 this is no longer seems to be working.
Thanks
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob
Sent: March-01-11 11:56 AM
To: mapserver-users
Subject: [mapserver-users] queryByFeatures not working in 5.6.6?
We are upgrading our MapServer installation to 5.6.6, and now are finding a problem with queries that were previously working.
I?m tracing the problem to a queryByFeatures operation. We are taking a selected parcel and querying a zoning layer to see what zones are intersected by the parcel. We are able to successfully select the parcel by a queryByAttributes. We get the shape from the selected parcel, then attempt a queryByFeatures. But no results are returned for the zoning layer.
As I mentioned earlier, this was functioning properly in the previous version of MapServer. Is there a change in syntax or something else that I?m not aware of?
Here is some of the code to perform the query:
-At this point, a parcel has been selected?
// Loop through the results set (there should only be one), get the shape, and save the
// shape attributes.
for ($i=0; $i<=($oLayer_lurc_parcels->getNumResults() - 1); $i++) {
$oResult = $oLayer_lurc_parcels->getResult($i);
$oLayer_lurc_parcels->open();
$oShape = $oLayer_lurc_parcels->getFeature($oResult->shapeindex,-1);
$TPL = $oShape->getValue($oLayer_lurc_parcels,"TPL");
$_SESSION['results']['TPL'][$_SESSION['nresults']] = substr($TPL,0,5);
$oLayer_lurc_parcels->close();
}
// Perform the intersection; query the zones layer with the parcel feature. Again, should
// only be one parcel.
$oLayer_lurc_zones->queryByFeatures($oLayer_lurc_parcels->index);
From sumit321 at hotmail.com Thu Mar 3 23:23:32 2011
From: sumit321 at hotmail.com (Sumit Sharma)
Date: Thu, 3 Mar 2011 23:23:32 -0800 (PST)
Subject: [mapserver-users] Re: How I solve This Exception
In-Reply-To: <1298207153109-6045646.post@n2.nabble.com>
References: <1298207153109-6045646.post@n2.nabble.com>
Message-ID: <1299223412801-6087553.post@n2.nabble.com>
Even to me it seems that you are missing some dll. Best way to identify is
load you libmap.dll in dependency walker. It will give you good idea what
you are missing.
-Sumit
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6087553.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From punk.kish at gmail.com Thu Mar 3 23:28:33 2011
From: punk.kish at gmail.com (Puneet Kishor)
Date: Fri, 4 Mar 2011 01:28:33 -0600
Subject: [mapserver-users] Re: How I solve This Exception
In-Reply-To: <1299223412801-6087553.post@n2.nabble.com>
References: <1298207153109-6045646.post@n2.nabble.com>
<1299223412801-6087553.post@n2.nabble.com>
Message-ID: <6C1AA286880C4DA7A2449EF379C82C81@gmail.com>
On Friday, March 4, 2011 at 1:23 AM, Sumit Sharma wrote:
Even to me it seems that you are missing some dll. Best way to identify is
> load you libmap.dll in dependency walker. It will give you good idea what
> you are missing.
> -Sumit
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6087553.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
Is anyone else bothered by messages such as above? The thread has been usurped by Nabble, and basically has absolutely no context. Even the subject line was terribly uninformative to start with ("How do I solve This Exception"), and the reply didn't quote the message. It completely defeats the purpose of the MapServer mailing list archives, the attention of the rest of the users on the list, is not informative, not instructive, and just plain unhelpful albeit well-intentioned.
If you ask a question, please use subject lines that say something about the question.
If you use Nabble to reply, please quote the original message so other list members have something to hang their hat on.
Help grow the MapServer knowledgebase by making it richer and more complete instead of sucking the life out of it and sticking it in Nabble.
--
Puneet Kishor
From dmorissette at mapgears.com Fri Mar 4 04:57:17 2011
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Fri, 04 Mar 2011 07:57:17 -0500
Subject: [mapserver-users] OSGeo Montreal Code Sprint seeking more sponsors
due to record participation
Message-ID: <4D70E1AD.3060307@mapgears.com>
Dear MapServer users,
The Montreal Code Sprint of March 15-18, 2011 has reached a record of 29
registered participants from 9 open source projects as of yesterday.
This is awesome news for OSGeo and its projects that will get a
significant boost of code and contributions during that week!
This will also greatly benefit the MapServer project since this number
includes 14 people who signed up to work on MapServer as you can see in
the list of participants at:
http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011#Participation
The downside of this is that our initial budget was for ~20
participants, and with close to 50% more sprinters we need to adjust the
budget accordingly and are turning to you to help us find more sponsors
to balance the new budget.
** CALL FOR NEW SPONSORS - An investment in the technology that you use! **
We are looking for another round of sponsors ($750 each) to support food
and fun for the sprinters as they work hard and play hard for four
productive days. Each $750 sponsorship will be put towards lunch, snacks
and dinner costs for the sprinters, and any surplus at the end of the
event will be turned over to OSGeo or used for a future code sprint.
If your organization is using one of the software projects listed below,
then please consider this call for sponsorship as an investment in
MapServer, the technology that you use, and contact me at dmorissette at
mapgears.com to confirm your sponsorship. In addition to visibility in
our public announcements you will get recognition for your contribution
from the developers and from the OSGeo community.
Please also keep in mind that all the participants are volunteering
several days of their time in addition to paying for their own travel
and hotel expenses.
More information about this event is available here:
http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011
The Open Source projects currently represented are:
* MapServer
* GDAL/OGR
* PostGIS
* libLAS
* ZOO Project
* TinyOWS
* GeoPrisma
* OpenLayers
* GeoExt
Thank you once again to our current sponsors
(http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011#2011_Sponsors)
750$ Sponsors:
- LizardTech - http://www.lizardtech.com/
- Azavea - http://www.azavea.com/
- qPublic - http://qpublic.net/
- Farallon Geographics - http://fargeo.com/
- Airborne Interactive - http://airborne.aero/
- Boreal - Information Strategies (Borealis) - http://www.boreal-is.com/
- Mapgears - http://www.mapgears.com/
Hockey Night Sponsor:
- Gateway Geomatics - http://gatewaygeomatics.com/
Host (Room and Internet):
- Communaut? M?tropolitaine de Montr?al (CMM) - http://cmm.qc.ca/
Please do not hesitate to redistribute this announcement in your
respective channels.
Daniel
--
Daniel Morissette
http://www.mapgears.com/
From tigana.fluens at gmail.com Sun Mar 6 03:06:24 2011
From: tigana.fluens at gmail.com (tigana.fluens at gmail.com)
Date: Sun, 06 Mar 2011 19:06:24 +0800
Subject: [mapserver-users] MapServer securing .map files
Message-ID: <4D736AB0.8070501@gmail.com>
What are the best practices when relating application data to MapServer
data? If I have a database of users, and each user owns a specific map,
what is the best way (also secure of course) of calling those maps (I'm
assuming the .map files are the ones needed) that a specific user is
related to? Given that:
- Tom has map of his real estate
- Mark has map of his farm
- Web app is a PHP app that uses OpenLayers as an interface to call
MapServer
How do I manage restrictions, i.e. security?
From bgiv at gmx.de Mon Mar 7 05:07:11 2011
From: bgiv at gmx.de (Wolfgang Lahr)
Date: Mon, 7 Mar 2011 14:07:11 +0100
Subject: [mapserver-users] shapeObj->buffer
Message-ID: <519747754.20110307140711@gmx.de>
Hi list,
this pertains to a problem I noticed yesterday in
mapserver/php_mapscript 5.6.5 running under Windows.
I noticed that:
...
$oShapeObj = $oLineShapeObj->buffer(0.01)
...
will work properly when used on a $oLineShapeObj containing a line
with 2 points. It will stop working when the line contains >= 3 points. The
function will just return an invalid $oShapeObj. The buffered shape is
supposed to be used in a queryByShape operation. This works fine with
MapServer < 5.0. Does the buffered $oLineShapeObj now have to be casted to a
polygon?
Thanks for any hints
wollah
From jxjackso at franklincountyohio.gov Mon Mar 7 05:17:11 2011
From: jxjackso at franklincountyohio.gov (Jackson, John)
Date: Mon, 7 Mar 2011 08:17:11 -0500
Subject: [mapserver-users] Client-side applications for visualizing
mapfiles
In-Reply-To:
References:
Message-ID:
The "best choice" depends on what you're trying to do.
Personally, I'm working up a mapserver project with a ka-map (http://ka-map.maptools.org/) front-end.
Ka-map works well for me since it's pretty easy to point to a working mapserver .map file. (just change config.php)
As for tutorials, there are some on mapserver's site. Also, if you're using postgis as a data store, they have some pretty good tutorials in their documentation.
Hope this helps.
--John Jackson
--Deputy Auditor, Franklin County Auditor's Office.
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ???S????S ????????S
Sent: Friday, February 18, 2011 9:35 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Client-side applications for visualizing mapfiles
Hello everybody
I am a new mapserver user and i need your knowledge and your experience.
I know that the heart of mapserver is the mapfile. Also, i can use html files and templates fro visualizing the layers of mapfile in a web-browser. But, i want a more interactive, flexible and quickly solution. Could you suggest me anything??
I know that there are many client-side applications to rend WMS and WFS servers like OpenLayers, Fusion, dbox, Chameleon, GMap, CartoWeb. However, i would like a good explanation, regarding which is the best choice!
Moreover, i am grateful, if you send me some tutorial!!
Thanks in advance
Apostolos
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dmorissette at mapgears.com Mon Mar 7 06:35:18 2011
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Mon, 07 Mar 2011 09:35:18 -0500
Subject: [mapserver-users] MapServer securing .map files
In-Reply-To: <4D736AB0.8070501@gmail.com>
References: <4D736AB0.8070501@gmail.com>
Message-ID: <4D74ED26.603@mapgears.com>
MapServer has no built in support for securing data by users. If your
needs are not too complicated then it should be easy to implement
map-level security in your PHP and JavaScript application code. If you
have more advanced users/roles requirements then you may want to have a
look at http://geoprisma.org/
Actually, I see that geoprisma.org seems quite slow today. You could
also have a look at the following demo page which also includes a short
intro to GeoPrisma under the [About GeoPrisma] tab:
http://dev4g.mapgears.com/geoprisma/demo/
Daniel
On 11-03-06 06:06 AM, tigana.fluens at gmail.com wrote:
> What are the best practices when relating application data to MapServer
> data? If I have a database of users, and each user owns a specific map,
> what is the best way (also secure of course) of calling those maps (I'm
> assuming the .map files are the ones needed) that a specific user is
> related to? Given that:
>
> - Tom has map of his real estate
> - Mark has map of his farm
> - Web app is a PHP app that uses OpenLayers as an interface to call
> MapServer
>
> How do I manage restrictions, i.e. security?
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
From Bob.Basques at ci.stpaul.mn.us Mon Mar 7 06:42:54 2011
From: Bob.Basques at ci.stpaul.mn.us (Bob Basques)
Date: Mon, 07 Mar 2011 08:42:54 -0600
Subject: [mapserver-users] MapServer securing .map files
In-Reply-To: <4D74ED26.603@mapgears.com>
References: <4D736AB0.8070501@gmail.com> <4D74ED26.603@mapgears.com>
Message-ID: <4D749A8E020000A8000273FB@heckle>
All,
GeoMoose is another product to take a look at. It's possible to set up individual layers with their respective data custodial access parameters. Since all layers are abstracted to thier own MAP file, the layers themselves can be managed separately (or in groups) themselves as well. We use a folder hierarchy for this type of user access control as well as who can control publishing tasks. While GeoMoose doesn't control the access authentication directly, it's publishing storage scheme is very conducive to implementing a control structure down to the layer level, especially for roll your own authentication situations. We stuff all of our data into WebDAV for example, which has all sort of authentication methods available.
bobb
>>> Daniel Morissette wrote:
MapServer has no built in support for securing data by users. If your
needs are not too complicated then it should be easy to implement
map-level security in your PHP and JavaScript application code. If you
have more advanced users/roles requirements then you may want to have a
look at http://geoprisma.org/
Actually, I see that geoprisma.org seems quite slow today. You could
also have a look at the following demo page which also includes a short
intro to GeoPrisma under the [About GeoPrisma] tab:
http://dev4g.mapgears.com/geoprisma/demo/
Daniel
On 11-03-06 06:06 AM, tigana.fluens at gmail.com wrote:
> What are the best practices when relating application data to MapServer
> data? If I have a database of users, and each user owns a specific map,
> what is the best way (also secure of course) of calling those maps (I'm
> assuming the .map files are the ones needed) that a specific user is
> related to? Given that:
>
> - Tom has map of his real estate
> - Mark has map of his farm
> - Web app is a PHP app that uses OpenLayers as an interface to call
> MapServer
>
> How do I manage restrictions, i.e. security?
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From gi08b07 at hs-nb.de Mon Mar 7 06:50:16 2011
From: gi08b07 at hs-nb.de (Dimmer, Frederick-Claud)
Date: Mon, 07 Mar 2011 15:50:16 +0100
Subject: [mapserver-users] WFS Problem
Message-ID: <7270c9bcf36.4d74feb8@hs-nb.de>
Hi,
finally i've made it to set up an WFS-Server but now I'm having another problem with the Mapbender configuration. I uploaded the WMS and WFS correctly to the mapbender application, an there were no problems than I created my own application and loaded the WMS to this application. As far as I did this I've set the wfs in the gui-wms settings. Finnaly i've asigned an WFS to the gui.
But here comes the problem i want to put the query i gete returned by the database in a table and set extra parameters. I simly can't find an entry where I can edit this.
Hope you can help me.
If you need more information I'll tell you.
Kind regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jmckenna at gatewaygeomatics.com Mon Mar 7 06:53:51 2011
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Mon, 07 Mar 2011 10:53:51 -0400
Subject: [mapserver-users] MapServer securing .map files
In-Reply-To: <4D736AB0.8070501@gmail.com>
References: <4D736AB0.8070501@gmail.com>
Message-ID: <4D74F17F.4010907@gatewaygeomatics.com>
On 11-03-06 7:06 AM, tigana.fluens at gmail.com wrote:
> What are the best practices when relating application data to MapServer
> data? If I have a database of users, and each user owns a specific map,
> what is the best way (also secure of course) of calling those maps (I'm
> assuming the .map files are the ones needed) that a specific user is
> related to? Given that:
>
> - Tom has map of his real estate
> - Mark has map of his farm
> - Web app is a PHP app that uses OpenLayers as an interface to call
> MapServer
>
> How do I manage restrictions, i.e. security?
Hello,
If you are looking to secure OGC services such as WMS,WFS, or SOS, you
could also examine GeoShield
(http://sites.google.com/site/geoshieldproject/). It supports both
MapServer and GeoServer.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From jbw2003 at earthlink.net Mon Mar 7 13:59:55 2011
From: jbw2003 at earthlink.net (Jim White)
Date: Mon, 07 Mar 2011 16:59:55 -0500
Subject: [mapserver-users] wms transparency
Message-ID: <4D75555B.6070408@earthlink.net>
I have a MapServer WMS server and I want to overlay its layers on a
Google map WMS layer in OpenLayers.
I have tried to follow the example
http://openlayers.org/dev/examples/layer-opacity.html , but am unable to
get any transparency. All I get is a less bright layer.
var options2 = {
maxExtent: new OpenLayers.Bounds(-7564972, 2022817, -7260079, 2099643),
units: 'm',
projection: "EPSG:3857",
maxScale: 2000000
}
var map;
var wms;
var gphy;
$(document).ready(function() {
map = new OpenLayers.Map('map', options2);
wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://metacomet.zo.ncsu.edu/wms/prgap.php",
{layers: 'pd009', format: "image/png", srs: "EPSG:3857"},
{ opacity: 0.3}
);
gphy = new OpenLayers.Layer.Google(
"Google Physical",
{type: google.maps.MapTypeId.TERRAIN, //sphericalMercator: true,
'maxExtent': new OpenLayers.Bounds(-7564972, 2022817,
-7260079, 2099643)
});
map.addLayer(wms);
map.addLayer( gphy);
map.zoomToMaxExtent();
Wil appreciate any suggestions for my MapServer config or OpenLayers script.
Jim
From tom_price at yahoo.com Mon Mar 7 17:23:49 2011
From: tom_price at yahoo.com (Tom Price)
Date: Mon, 7 Mar 2011 17:23:49 -0800 (PST)
Subject: [mapserver-users] Thread safety with Php/Mapscript 3.0.1/5.6.6 and
IIS 7
Message-ID: <84401.15786.qm@web110307.mail.gq1.yahoo.com>
Haven't been on this board in a long time. I'm in the process of
upgrading from PHP 5.2.5 to 5.3.5 and to the latest Php/Mapscript in
MS4W which is apparently based on Mapserver 5.6.6.
My client plans to host this using the Fast-cgi VC9 version of PHP with IIS 7 on a 64-bit Win 2008 Server.
I
noticed that the binary in MS4W requires that I install the thread-safe
version of PHP on IIS. I get this message from phpinfo() with the NTS
version:
PHP
Warning: PHP Startup: MapScript: Unable to initialize module Module compiled
with build ID=API20090626,TS,VC9 PHP compiled with build ID=API20090626,NTS,VC9
These options need to match in Unknown on line 0
Is Mapscript now thread-safe? Or is this selection particular to the Apache deployment?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ivanc at kestrel-tech.com Tue Mar 8 01:37:33 2011
From: ivanc at kestrel-tech.com (Ivan Cardenas)
Date: Tue, 8 Mar 2011 03:37:33 -0600
Subject: [mapserver-users] Offnet conversion tool
In-Reply-To: <7270c9bcf36.4d74feb8@hs-nb.de>
References: <7270c9bcf36.4d74feb8@hs-nb.de>
Message-ID:
Folks,
We are looking for an offline tool that can be purchased and run with no internet connectivity for converting .csv's into time animated presentations in Google Earth.
We have been using the web-based converter at the following address for the conversion of excel data into CSV. https://www.earthpoint.us/ExcelToKml.aspx
This tool converts spreadsheets very effectively into a KML that can also model differing node sizes, colors, temporal data, etc. Does anyone know of a PC (not internet) based tool that can perform all of the above functionalities for csv to kml conversions?
Thanks!
Ivan Cardenas
Technical Director
Kestrel Technology Group
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From just at justobjects.nl Tue Mar 8 05:03:49 2011
From: just at justobjects.nl (Just van den Broecke)
Date: Tue, 08 Mar 2011 14:03:49 +0100
Subject: [mapserver-users] Ticket #3274 - !BOX! parameter handling in
mapscript
Message-ID: <4D762935.8050809@justobjects.nl>
Hi,
I stumbled across a substitution issue with the !BOX! parameter on
PostGIS layers when using Mapscript, but also found that it may have
been fixed:
http://trac.osgeo.org/mapserver/ticket/3274
The related changeset is not in any release yet, or not that I found,
using MS 5.6.6 (Mac OSX Kyngchaos version) or Ubuntu MS 5.6.3
In my case this issue only happens when doing a layer.queryByRect()
within Python Mapscript on a layerObj. When dispatching via
OWSDispatch() things work as expected.
For which release is ticket #3274 planned or is there some other
workaround (other than building from SVN) ?
My Mapfile snipped is:
DATA "the_geom from (select g.id, g.point as the_geom from gw_tracepoint
g where g.point && !BOX! order by random() limit 3000) as subquery using
unique id using srid=4326"
MS issues the following failing query within layer.queryByRect():
"select * from (select g.id, g.point as the_geom from gw_tracepoint g
where g.point &&!BOX! order by random() limit 3000) as subquery where
false limit 0". This seems to be a "prequery" before doing the real
query. Anyways, !BOX! is not substituted. Is there some way to suppress
this prequery ?
I want to get at most 3000 points within a bbox from a points table,
randomly spread within the bbox. Leaving out !BOX! does not work
properly since the subquery will then get points from the entire
collection and then apply bbox on that set.
Suggestions welcome. Best,
--Just
Just van den Broecke
www.justobjects.nl
From jmckenna at gatewaygeomatics.com Tue Mar 8 05:21:15 2011
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Tue, 08 Mar 2011 09:21:15 -0400
Subject: [mapserver-users] Thread safety with Php/Mapscript 3.0.1/5.6.6
and IIS 7
In-Reply-To: <84401.15786.qm@web110307.mail.gq1.yahoo.com>
References: <84401.15786.qm@web110307.mail.gq1.yahoo.com>
Message-ID: <4D762D4B.3080403@gatewaygeomatics.com>
On 11-03-07 9:23 PM, Tom Price wrote:
> Haven't been on this board in a long time. I'm in the process of
> upgrading from PHP 5.2.5 to 5.3.5 and to the latest Php/Mapscript in
> MS4W which is apparently based on Mapserver 5.6.6.
>
> My client plans to host this using the Fast-cgi VC9 version of PHP with
> IIS 7 on a 64-bit Win 2008 Server.
>
> I noticed that the binary in MS4W requires that I install the
> thread-safe version of PHP on IIS. I get this message from phpinfo()
> with the NTS version:
>
> PHP Warning: PHP Startup: MapScript: Unable to initialize module Module
> compiled with build ID=API20090626,TS,VC9 PHP compiled with build
> ID=API20090626,NTS,VC9 These options need to match in Unknown on line 0
>
>
> Is Mapscript now thread-safe? Or is this selection particular to the
> Apache deployment?
>
> Thanks in advance.
Hello Tom,
I have several comments that you might keep in mind as you travel down
this path for your client:
- MS4W is compiled for 32bit environments; you will either have to
configure your 64bit server to run 32bit applications, or obtain a 64bit
version of MapServer (you can contact me directly if you choose the
latter option)
- MS4W contains a custom PHP version; I have seen errors like that when
users try to use their own PHP builds with the MS4W mapscript. Easiest
way out of that situation is to use the MS4W version of PHP and
mapscript together.
- if you have any further questions about MS4W be sure to use the MS4W
mailing list (subscribe at
http://lists.maptools.org/mailman/listinfo/ms4w-users)
Hope that helps.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From dmorissette at mapgears.com Tue Mar 8 05:44:33 2011
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Tue, 08 Mar 2011 08:44:33 -0500
Subject: [mapserver-users] Ticket #3274 - !BOX! parameter handling in
mapscript
In-Reply-To: <4D762935.8050809@justobjects.nl>
References: <4D762935.8050809@justobjects.nl>
Message-ID: <4D7632C1.8040109@mapgears.com>
On 11-03-08 08:03 AM, Just van den Broecke wrote:
>
> For which release is ticket #3274 planned or is there some other
> workaround (other than building from SVN) ?
>
The fix will be part of the 6.0 release for which the first beta should
be available tomorrow (finally!).
Daniel
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
From jbw2003 at earthlink.net Tue Mar 8 10:14:50 2011
From: jbw2003 at earthlink.net (Jim White)
Date: Tue, 08 Mar 2011 13:14:50 -0500
Subject: [mapserver-users] wms transparency
In-Reply-To:
References: <4D75555B.6070408@earthlink.net>
Message-ID: <4D76721A.9050002@earthlink.net>
Arlen,
Thanks that helped. However I had to explicitly set my layers to the
same projection.
// override default epsg code
aliasproj = new OpenLayers.Projection("EPSG:3857");
wms.projection = gphy.projection = aliasproj;
Your site looks nice. However, I can't read Dutch so I don't know what
the layers mean.
Jim
On 03/07/2011 05:21 PM, Arlen Poort wrote:
> Jim,
>
> You might check the code of my page. This has a transparent mapserver
> wms. You can find the code here:
> mapserver.nrc-handelsblad.com/PS2011.html
>
> Best regards,
>
> Arlen Poort
>
> Op maandag 7 maart 2011 schreef Jim White (jbw2003 at earthlink.net) het volgende:
>> I have a MapServer WMS server and I want to overlay its layers on a Google map WMS layer in OpenLayers.
>> I have tried to follow the example http://openlayers.org/dev/examples/layer-opacity.html , but am unable to get any transparency. All I get is a less bright layer.
>>
>> var options2 = {
>> maxExtent: new OpenLayers.Bounds(-7564972, 2022817, -7260079, 2099643),
>> units: 'm',
>> projection: "EPSG:3857",
>> maxScale: 2000000
>> }
>> var map;
>> var wms;
>> var gphy;
>>
>>
>> $(document).ready(function() {
>> map = new OpenLayers.Map('map', options2);
>> wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
>> "http://metacomet.zo.ncsu.edu/wms/prgap.php",
>> {layers: 'pd009', format: "image/png", srs: "EPSG:3857"},
>> { opacity: 0.3}
>> );
>>
>> gphy = new OpenLayers.Layer.Google(
>> "Google Physical",
>> {type: google.maps.MapTypeId.TERRAIN, //sphericalMercator: true,
>> 'maxExtent': new OpenLayers.Bounds(-7564972, 2022817, -7260079, 2099643)
>> });
>>
>> map.addLayer(wms);
>> map.addLayer( gphy);
>> map.zoomToMaxExtent();
>>
>> Wil appreciate any suggestions for my MapServer config or OpenLayers script.
>>
>> Jim
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
From Poteat.Brian at geoeye.com Tue Mar 8 11:54:15 2011
From: Poteat.Brian at geoeye.com (Brian Poteat)
Date: Tue, 8 Mar 2011 12:54:15 -0700
Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
Message-ID: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com>
I have a very strange issue while using MapScript from within some web service projects. I have different projects/applications for different services - one for each of WCF, WMS, WFS, and WMTS - so we can configure them independently. MapScript requests work fine for all of them separately but if I access MapScript from one and then another, one of them will not work correctly anymore. The requests will return success (result == 0) and the format returned is correct but the data is either null or an incorrect image. It doesn't seem to be a threading issue since I can bombard any one of the services with asynchronous requests and they are handled fine and the problems don't necessarily come while using the different applications at the same time - just one then the other.
I am using a support project for making the MS requests that is referenced by each application (though I tried putting the code directly in each app with the same results). Below is a simplified version of the helper utility I am using. Is there anything that stands out as being an obvious issue? My endpoint applications simply get the query parameters from the url request and pass them as the requestParams argument with the appropriate map file.
namespace MapScript
{
public class MapScriptResponse
{
public string Format { get; set; }
public byte[] Data { get; set; }
public string ErrorString { get; set; }
public DateTime LastModified { get; set; }
}
public class MapScriptUtilities
{
///
/// Execute a service request to mapserver through mapscript
///
/// Physical path to the map file on which to make the request
/// List of request parameters
/// The response from mapscript.
public static MapScriptResponse ServiceRequest(string mapFile, Dictionary requestParams)
{
MapScriptResponse response = new MapScriptResponse();
mapObj map = new mapObj(mapFile);
OWSRequest owsRequest = new OWSRequest();
Dictionary.Enumerator en = requestParams.GetEnumerator();
string paramName = "";
string paramValue = "";
while (en.MoveNext())
{
paramName = en.Current.Key;
paramValue = en.Current.Value;
owsRequest.setParameter(paramName, paramValue);
}
mapscript.msIO_installStdoutToBuffer();
int resultCode = map.OWSDispatch(owsRequest);
if (resultCode == 0)
{
response.Format = mapscript.msIO_stripStdoutBufferContentType();
response.Data = mapscript.msIO_getStdoutBufferBytes();
}
return response;
}
}
}
Any help would be greatly appreciated.
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From szekerest at gmail.com Tue Mar 8 13:45:41 2011
From: szekerest at gmail.com (Tamas Szekeres)
Date: Tue, 8 Mar 2011 22:45:41 +0100
Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
In-Reply-To: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com>
References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com>
Message-ID:
Hi Brian,
Could you provide the sequence of the requests, a mapfile example, that can
be used to reproduce this problem?
What do you mean by "configure them independently"? Different application
pool for each service type?
Best regards,
Tamas
2011/3/8 Brian Poteat
> I have a very strange issue while using MapScript from within some web
> service projects. I have different projects/applications for different
> services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure
> them independently. MapScript requests work fine for all of them separately
> but if I access MapScript from one and then another, one of them will not
> work correctly anymore. The requests will return success (result == 0) and
> the format returned is correct but the data is either null or an incorrect
> image. It doesn?t seem to be a threading issue since I can bombard any one
> of the services with asynchronous requests and they are handled fine and the
> problems don?t necessarily come while using the different applications at
> the same time ? just one then the other.
>
>
>
> I am using a support project for making the MS requests that is referenced
> by each application (though I tried putting the code directly in each app
> with the same results). Below is a simplified version of the helper utility
> I am using. Is there anything that stands out as being an obvious issue? My
> endpoint applications simply get the query parameters from the url request
> and pass them as the requestParams argument with the appropriate map file.
>
> namespace MapScript
>
> {
>
> public class MapScriptResponse
>
> {
>
> public string Format { get; set; }
>
> public byte[] Data { get; set; }
>
> public string ErrorString { get; set; }
>
> public DateTime LastModified { get; set; }
>
> }
>
> public class MapScriptUtilities
>
> {
>
> ///
>
> ///
> Execute a service request to mapserver through mapscript
>
> ///
>
> ///
> Physical path to the map file on which to make the request
>
> ///
> List of request parameters
>
> /// The response from mapscript.
>
> public static MapScriptResponse ServiceRequest(string
> mapFile, Dictionary requestParams)
>
> {
>
> MapScriptResponse response = new
> MapScriptResponse();
>
> mapObj map = new mapObj(mapFile);
>
> OWSRequest owsRequest = new OWSRequest();
>
> Dictionary.Enumerator
> en = requestParams.GetEnumerator();
>
> string paramName = "";
>
> string paramValue = "";
>
> while (en.MoveNext())
>
> {
>
> paramName = en.Current.Key;
>
> paramValue = en.Current.Value;
>
>
> owsRequest.setParameter(paramName, paramValue);
>
> }
>
> mapscript.msIO_installStdoutToBuffer();
>
> int resultCode = map.OWSDispatch(owsRequest);
>
> if (resultCode == 0)
>
> {
>
> response.Format = mapscript
> .msIO_stripStdoutBufferContentType();
>
> response.Data = mapscript
> .msIO_getStdoutBufferBytes();
>
> }
>
>
>
> return response;
>
> }
>
> }
>
> }
>
>
>
> Any help would be greatly appreciated.
>
> Brian
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From joanne.mcgraw at SYMPATICO.CA Tue Mar 8 14:33:58 2011
From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName)
Date: Tue, 8 Mar 2011 14:33:58 -0800 (PST)
Subject: [mapserver-users] WMS w/SLD - Can I get rid of the labels returned
with a GetLegendGraphic request?
Message-ID: <1299623638820-6146719.post@n2.nabble.com>
Is it possible to get the GetLegendGraphic response from MapServer to not
include the labels for the classes (I'd just like a column of icons)?
Further info that may, may not, be relevant is that I am using an SLD to
display the WMS.
I can get the legend graphic fine, but the problem is that is says "default"
next to the colour swatch because "default" is the value provided in the of
the in the SLD. The data and the SLD are generated dynamically as part of a
larger process and there really is no useful name that can be associated
with the colour swatch. However, Name is a required entity of NamedLayer in
the SLD, so I have to put something in there. But, I don't want to see it in
the legend...
Is there any way I can stop it?
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-w-SLD-Can-I-get-rid-of-the-labels-returned-with-a-GetLegendGraphic-request-tp6146719p6146719.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From joanne.mcgraw at SYMPATICO.CA Tue Mar 8 14:37:03 2011
From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName)
Date: Tue, 8 Mar 2011 14:37:03 -0800 (PST)
Subject: [mapserver-users] Re: WMS w/SLD - Can I get rid of the labels
returned with a GetLegendGraphic request?
In-Reply-To: <1299623638820-6146719.post@n2.nabble.com>
References: <1299623638820-6146719.post@n2.nabble.com>
Message-ID: <1299623823709-6146892.post@n2.nabble.com>
Oh, sorry, I thought I'd add that I looked around in the docs for the MapFile
to see if I could set something there to turn off labels in the legend but
didn't have any luck. If someone knows of something through that route, I'd
be happy to hear about it.
Really, anything would be fine.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-w-SLD-Can-I-get-rid-of-the-labels-returned-with-a-GetLegendGraphic-request-tp6146719p6146892.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From saad.hessane at gmail.com Wed Mar 9 02:58:43 2011
From: saad.hessane at gmail.com (=?ISO-8859-1?Q?Mohamed_Sa=E2d_HESSANE?=)
Date: Wed, 9 Mar 2011 11:58:43 +0100
Subject: [mapserver-users] Edit a Line shape and save it
Message-ID:
Hy everybody,
I work with python mapscript and i want to create a Line shape.
I do this :
test = mapscript.shapefileObj('test',mapscript.MS_SHAPEFILE_ARC)
for i in range(len(x))
test.addPoint(mapscript.pointObj(x[i],y[i],0,0))
When i execute the script, there is two new file in the script directory
(test.shp and test.shx).
But when i do an ogrinfo, there's no data stored in the file :
$ogrinfo -al test.shp
INFO: Open of `test.shp'
using driver `ESRI Shapefile' successful.
Layer name: test
Geometry: Line String
Feature Count: 0
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
Layer SRS WKT:
(unknown)
can you help me please?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From eric.lemoine at camptocamp.com Wed Mar 9 08:09:15 2011
From: eric.lemoine at camptocamp.com (Eric Lemoine)
Date: Wed, 9 Mar 2011 17:09:15 +0100
Subject: [mapserver-users] Studio - admin tool for MapServer
Message-ID:
Hi
With this email we're announcing the first release of Studio, an admin
tool for MapServer. Studio basically allows editing MapServer
Mapfiles, using an easy-to-use web-based interface.
Relevant links:
- Google Group
- Documentation
- Demo
- Code base
- Studio on PyPI
Instructions for installing Studio are provided in the documentation
at .
We at Camptocamp started working on Studio two years ago, but, for
various reasons, weren't able to make an actual release of Studio at
the time. With this 0.5 release we want to measure the interest for
such a tool; we know there's still work to be done before reaching a
1.0 release. We're therefore encouraging interested folks to test
Studio, sign up to the Google Group, and provide feedback.
Thanks,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
From jt at mapmedia.de Wed Mar 9 08:35:40 2011
From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=)
Date: Wed, 09 Mar 2011 17:35:40 +0100
Subject: [mapserver-users] wms_style_xxx_legendurl_href
In-Reply-To:
References:
Message-ID: <4D77AC5C.60101@mapmedia.de>
Hi,
I'm using the wms_style-parameters in the layer metadata section to tell
the client to use a special legend-url:
'wms_style' 'Farbwerte'
'wms_style_Farbwerte_legendurl_height' '218'
'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png'
'wms_style_Farbwerte_legendurl_format' 'png'
'wms_style_Farbwerte_legendurl_width' '300'
This works fine with only one style. But what do I have to do, if I have
defined different styles / classgroups?
When defining
'wms_style' 'Farbwerte'
the capabilities only shows this style, even if there are more styles
(classgroups) defined.
Any idea?
J?rg
From Poteat.Brian at geoeye.com Wed Mar 9 12:48:02 2011
From: Poteat.Brian at geoeye.com (Brian Poteat)
Date: Wed, 9 Mar 2011 13:48:02 -0700
Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
In-Reply-To:
References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com>
Message-ID: <4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com>
Thanks Tamas,
I put together a solution that mimics what I am doing at a very simple level and I got it to error fairly easily.
This zip contains an example mapfile and the solution used to reproduce the setup. I just put everything in c:\tmp\test. The applications are .NET 4.0 WCF endpoints and will install as IIS web services (so obviously you?ll need the appropriate software to build/run).
http://dl.dropbox.com/u/649621/WcfMapScript.zip
If you build the solution and then execute the following service requests in order, at some point the requests no longer return correct data. Asking for one layer will return the other. Sometimes the results vary but usually just mixing up the requested layers on the two different services will cause strange behavior.
http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
I apologize for the strange requests and images but I am a not really familiar with the mapfile format and just tried to reproduce the requests as closely as they were in a real environment.
Brian
From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: Tuesday, March 08, 2011 4:46 PM
To: Brian Poteat
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
Hi Brian,
Could you provide the sequence of the requests, a mapfile example, that can be used to reproduce this problem?
What do you mean by "configure them independently"? Different application pool for each service type?
Best regards,
Tamas
2011/3/8 Brian Poteat >
I have a very strange issue while using MapScript from within some web service projects. I have different projects/applications for different services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure them independently. MapScript requests work fine for all of them separately but if I access MapScript from one and then another, one of them will not work correctly anymore. The requests will return success (result == 0) and the format returned is correct but the data is either null or an incorrect image. It doesn?t seem to be a threading issue since I can bombard any one of the services with asynchronous requests and they are handled fine and the problems don?t necessarily come while using the different applications at the same time ? just one then the other.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From szekerest at gmail.com Wed Mar 9 12:58:12 2011
From: szekerest at gmail.com (Tamas Szekeres)
Date: Wed, 9 Mar 2011 21:58:12 +0100
Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
In-Reply-To: <4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com>
References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com>
<4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com>
Message-ID:
Hi Brian,
Got it, thanks. I'm going to inspect the problem and get back to you if I
have further questions.
Best regards,
Tamas
2011/3/9 Brian Poteat
> Thanks Tamas,
>
> I put together a solution that mimics what I am doing at a very simple
> level and I got it to error fairly easily.
>
>
>
> This zip contains an example mapfile and the solution used to reproduce the
> setup. I just put everything in c:\tmp\test. The applications are .NET 4.0
> WCF endpoints and will install as IIS web services (so obviously you?ll need
> the appropriate software to build/run).
>
> http://dl.dropbox.com/u/649621/WcfMapScript.zip
>
>
>
> If you build the solution and then execute the following service requests
> in order, at some point the requests no longer return correct data. Asking
> for one layer will return the other. Sometimes the results vary but usually
> just mixing up the requested layers on the two different services will cause
> strange behavior.
>
>
>
>
> http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>
>
>
>
> http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>
>
>
>
> http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>
>
>
>
> http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>
>
>
> I apologize for the strange requests and images but I am a not really
> familiar with the mapfile format and just tried to reproduce the requests as
> closely as they were in a real environment.
>
> Brian
>
>
>
>
>
> *From:* Tamas Szekeres [mailto:szekerest at gmail.com]
> *Sent:* Tuesday, March 08, 2011 4:46 PM
> *To:* Brian Poteat
> *Cc:* mapserver-users at lists.osgeo.org
> *Subject:* Re: [mapserver-users] MapScript issue in multiple WCF apps (
> ASP.NET)
>
>
>
> Hi Brian,
>
>
> Could you provide the sequence of the requests, a mapfile example, that can
> be used to reproduce this problem?
> What do you mean by "configure them independently"? Different application
> pool for each service type?
>
> Best regards,
>
> Tamas
>
>
> 2011/3/8 Brian Poteat
>
> I have a very strange issue while using MapScript from within some web
> service projects. I have different projects/applications for different
> services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure
> them independently. MapScript requests work fine for all of them separately
> but if I access MapScript from one and then another, one of them will not
> work correctly anymore. The requests will return success (result == 0) and
> the format returned is correct but the data is either null or an incorrect
> image. It doesn?t seem to be a threading issue since I can bombard any one
> of the services with asynchronous requests and they are handled fine and the
> problems don?t necessarily come while using the different applications at
> the same time ? just one then the other.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From szekerest at gmail.com Wed Mar 9 13:02:11 2011
From: szekerest at gmail.com (Tamas Szekeres)
Date: Wed, 9 Mar 2011 22:02:11 +0100
Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
In-Reply-To:
References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com>
<4B420E4877773244A5DE388033C7E800A04096F129@MS1.geoeye.com>
Message-ID:
BTW: could you file a ticket (assigned to the csharp bindings) in order to
keep the things in view?
Best regards,
Tamas
2011/3/9 Tamas Szekeres
> Hi Brian,
>
> Got it, thanks. I'm going to inspect the problem and get back to you if I
> have further questions.
>
> Best regards,
>
> Tamas
>
>
>
>
> 2011/3/9 Brian Poteat
>
> Thanks Tamas,
>>
>> I put together a solution that mimics what I am doing at a very simple
>> level and I got it to error fairly easily.
>>
>>
>>
>> This zip contains an example mapfile and the solution used to reproduce
>> the setup. I just put everything in c:\tmp\test. The applications are .NET
>> 4.0 WCF endpoints and will install as IIS web services (so obviously you?ll
>> need the appropriate software to build/run).
>>
>> http://dl.dropbox.com/u/649621/WcfMapScript.zip
>>
>>
>>
>> If you build the solution and then execute the following service requests
>> in order, at some point the requests no longer return correct data. Asking
>> for one layer will return the other. Sometimes the results vary but usually
>> just mixing up the requested layers on the two different services will cause
>> strange behavior.
>>
>>
>>
>>
>> http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>>
>>
>>
>>
>> http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>>
>>
>>
>>
>> http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>>
>>
>>
>>
>> http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
>>
>>
>>
>> I apologize for the strange requests and images but I am a not really
>> familiar with the mapfile format and just tried to reproduce the requests as
>> closely as they were in a real environment.
>>
>> Brian
>>
>>
>>
>>
>>
>> *From:* Tamas Szekeres [mailto:szekerest at gmail.com]
>> *Sent:* Tuesday, March 08, 2011 4:46 PM
>> *To:* Brian Poteat
>> *Cc:* mapserver-users at lists.osgeo.org
>> *Subject:* Re: [mapserver-users] MapScript issue in multiple WCF apps (
>> ASP.NET)
>>
>>
>>
>> Hi Brian,
>>
>>
>> Could you provide the sequence of the requests, a mapfile example, that
>> can be used to reproduce this problem?
>> What do you mean by "configure them independently"? Different application
>> pool for each service type?
>>
>> Best regards,
>>
>> Tamas
>>
>>
>> 2011/3/8 Brian Poteat
>>
>> I have a very strange issue while using MapScript from within some web
>> service projects. I have different projects/applications for different
>> services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure
>> them independently. MapScript requests work fine for all of them separately
>> but if I access MapScript from one and then another, one of them will not
>> work correctly anymore. The requests will return success (result == 0) and
>> the format returned is correct but the data is either null or an incorrect
>> image. It doesn?t seem to be a threading issue since I can bombard any one
>> of the services with asynchronous requests and they are handled fine and the
>> problems don?t necessarily come while using the different applications at
>> the same time ? just one then the other.
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From joanne.mcgraw at SYMPATICO.CA Wed Mar 9 13:46:35 2011
From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName)
Date: Wed, 9 Mar 2011 13:46:35 -0800 (PST)
Subject: [mapserver-users] SLD parameter in GetMap and GetLegendGraphic
requests
Message-ID: <1299707195382-6155608.post@n2.nabble.com>
The MapServer documentation says the value of an SLD parameter must point to
a "remote SLD (SLD=http://URL_TO_SLD)." Okay, I understand, but I still have
to ask this question...
Is there any way the path can be provided to a directory that exists on the
MapServer host itself?
One of our processes generates a shapefile and the SLD to symbolize it
dynamically. We then use a blank MAP file (acting as a WMS Server) to load
up the data with the SLD for display (using a GetMap request). All the
generated files are stored in the same directory on the same system as
MapServer. MapServer can get at the shapefile because the blank MAP file has
a SHAPEPATH in it and we just pass along the rest of the path to the files
through the GetMap request's DATA parameter. For example:
http:///ogc/printVecWms_en?map.layer[LineString]=DATA
'6543c79b-8c56-4dd1-8a89-ef8dde819e02/LineString'
END&VERSION=1.1.1&SLD=http:///printVecData/SLD/6543c79b-8c56-4dd1-8a89-ef8dde819e02/LineString.sld&TRANSPARENT=true&LAYER=LineString&SERVICE=WMS&REQUEST=GetLegendGraphic&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&FORMAT=image/jpeg&SRS=EPSG:42304&BBOX=-397165.01997824,-789911,2108966.9600435,1716220.9800218&WIDTH=256&HEIGHT=256
Unfortunately, the area where these files are created is not accessible
externally, nor do we want them to be (particularly the shapefiles). This
means we have to move the location of the SLDs to a place where we do not
forbid access in order to use the syntax above. And that works fine.
However, we'd really, really like to keep the SLDs closely associated
(physically) with the Shapefiles they were built for. So, if anyone knows
some syntax or a way that we can pass a value through the SLD parameter that
is not publically accessible via http, I'd love to here it!!
Is there some way of specifying the SLD to use within the MAP file itself
and consequently a way that I can set it in the map.layer[LineString]= value
instead? I've never heard of such a thing nor have I found anything that
suggests I can, I'm just throwing it out there to see if anything jumps in
to anyone's mind.
Cheers,
jtm
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/SLD-parameter-in-GetMap-and-GetLegendGraphic-requests-tp6155608p6155608.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From dmorissette at mapgears.com Wed Mar 9 18:47:54 2011
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Wed, 09 Mar 2011 21:47:54 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Message-ID: <4D783BDA.5060600@mapgears.com>
The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
This new release introduces important changes in key components of the
MapServer core (rendering, query and expressions), and for this reason
we count on you, MapServer power users, to help test the release in your
respective environments and provide feedback (through the users list or
Trac tickets).
The timing and feedback for this first beta is very important since it
comes one week before the Montreal Code Sprint where about a dozen
participants will be working specifically on MapServer and will have a
chance to tackle important 6.0 issues that may be found and reported.
Here is a quick list of RFCs documenting some of the new features or
important changes in 6.0. This list is not complete, we will update it
as we polish the release documentation:
Core Changes in MapServer 6.0 which could affect existing applications:
* MS RFC 54: Rendering Interface API
* MS RFC 64: MapServer Expression Parser Overhaul
* MS RFC 65: Single-pass Query Changes for 6.0
New Features and Enhancements in MapServer 6.0:
* MS RFC 58: Kml Output
* MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
with too much character overlap
* MS RFC 61: Enhance MapServer Feature Style Support
* MS RFC 62: Support Additional WFS GetFeature Output Formats
* MS RFC 63: Built-in OpenLayers map viewer
* MS RFC 66: Better handling of temporary files
* MS RFC 67: Enable/Disable Layers in OGC Web Services
* MS RFC 68: Support for combining features from multiple layers
* MS RFC 69: Support for clustering of features in point layers
(RFCs are available online at http://mapserver.org/development/rfc/)
As usual there an a large number of additional small enhancements and
bug fixes. For a complete list see the HISTORY.TXT file at:
http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT
We have started working on a 5.6 -> 6.0 migration guide. This document
contains important notes on backwards incompatibilities or other changes
required when upgrading to 6.0. It is not complete yet but we strongly
recommend that you review the latest version online at:
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
The source for this release can be downloaded at:
http://mapserver.org/download.html
or
http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz
The binary distributions listed in the download page should be updated
with binaries for the new 6.0.0-beta1 release in the next day or so.
This is the first of four planned beta releases and if all goes well a
final release should occur around the end of April. The full release
plan can be viewed at:
http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
Once again we need your help to ensure a high quality product,
especially for this beta due to its timing with next week's Code Sprint,
so please help out by testing your applications with this new code base.
Thanks! - The MapServer Team
From aboudreault at mapgears.com Wed Mar 9 20:13:21 2011
From: aboudreault at mapgears.com (Alan Boudreault)
Date: Wed, 9 Mar 2011 23:13:21 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <201103092313.22149.aboudreault@mapgears.com>
The binaries of MapServer 6.0.0-beta1 are now available in UbuntuGIS for
Ubuntu hardy, lucid and maverick.
ubuntugis-testing ppa:
https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/
Alan
On March 9, 2011 09:47:54 pm Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
> This new release introduces important changes in key components of the
> MapServer core (rendering, query and expressions), and for this reason
> we count on you, MapServer power users, to help test the release in your
> respective environments and provide feedback (through the users list or
> Trac tickets).
>
> The timing and feedback for this first beta is very important since it
> comes one week before the Montreal Code Sprint where about a dozen
> participants will be working specifically on MapServer and will have a
> chance to tackle important 6.0 issues that may be found and reported.
>
> Here is a quick list of RFCs documenting some of the new features or
> important changes in 6.0. This list is not complete, we will update it
> as we polish the release documentation:
>
> Core Changes in MapServer 6.0 which could affect existing applications:
>
> * MS RFC 54: Rendering Interface API
> * MS RFC 64: MapServer Expression Parser Overhaul
> * MS RFC 65: Single-pass Query Changes for 6.0
>
> New Features and Enhancements in MapServer 6.0:
>
> * MS RFC 58: Kml Output
> * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
> with too much character overlap
> * MS RFC 61: Enhance MapServer Feature Style Support
> * MS RFC 62: Support Additional WFS GetFeature Output Formats
> * MS RFC 63: Built-in OpenLayers map viewer
> * MS RFC 66: Better handling of temporary files
> * MS RFC 67: Enable/Disable Layers in OGC Web Services
> * MS RFC 68: Support for combining features from multiple layers
> * MS RFC 69: Support for clustering of features in point layers
>
> (RFCs are available online at http://mapserver.org/development/rfc/)
>
> As usual there an a large number of additional small enhancements and
> bug fixes. For a complete list see the HISTORY.TXT file at:
>
>
> http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT
>
> We have started working on a 5.6 -> 6.0 migration guide. This document
> contains important notes on backwards incompatibilities or other changes
> required when upgrading to 6.0. It is not complete yet but we strongly
> recommend that you review the latest version online at:
>
> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
>
> The source for this release can be downloaded at:
>
> http://mapserver.org/download.html
> or
> http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz
>
> The binary distributions listed in the download page should be updated
> with binaries for the new 6.0.0-beta1 release in the next day or so.
>
>
> This is the first of four planned beta releases and if all goes well a
> final release should occur around the end of April. The full release
> plan can be viewed at:
>
> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
>
> Once again we need your help to ensure a high quality product,
> especially for this beta due to its timing with next week's Code Sprint,
> so please help out by testing your applications with this new code base.
>
> Thanks! - The MapServer Team
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From sylvanascent at gmail.com Thu Mar 10 02:54:06 2011
From: sylvanascent at gmail.com (Roger Bedell)
Date: Thu, 10 Mar 2011 11:54:06 +0100
Subject: [mapserver-users] MapServer and Guid USING UNIQUE
Message-ID:
Good Morning.
I am currently working with MapServer and the MSSQL Spatial driver. I am
seeing that MS does not work with a DATA statement like this in the Map
file:
DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326"
where PKey is defined like this:
[PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL,
No errors are triggered, however nothing is displayed, including all other
layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas
on how to fix it?
Thanks!
Roger Bedell
Coordinate Solutions Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sylvanascent at gmail.com Thu Mar 10 03:35:16 2011
From: sylvanascent at gmail.com (Roger Bedell)
Date: Thu, 10 Mar 2011 12:35:16 +0100
Subject: [mapserver-users] MapServer and Guid USING UNIQUE
In-Reply-To: <4D78B033.5080308@terrestris.de>
References:
<4D78B033.5080308@terrestris.de>
Message-ID:
Thanks Till, however, here is the trace from the ODBC tracer, pretty obvious
what is going on:
DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
Server]Insufficient result space to convert uniqueidentifier value to char.
(8170)
Guids generally take up 36 characters when converted to a string, and the
Select statement only has room for 20.
Since this is a SQL specific query, my guess it is being generated in the
sql spatial driver?
Roger
HSTMT 0x0589B310
UCHAR * 0x05E1A990 [ -3] "SELECT
Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader
WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599
29.2473266843318,-93.22438 29.2473266843318,-93.22438
41.3707663156682,-104.18599 41.3707663156682,-104.18599
29.2473266843318))',4326)) = 1 \ 0"
SDWORD -3
DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
Server]Insufficient result space to convert uniqueidentifier value to char.
(8170)
On Thu, Mar 10, 2011 at 12:04 PM, adams wrote:
> Dear Roger,
>
> if you get an empty image with no error, the first try would be to use a
> simple symbol and no expression in your layer.
> Also ensure, that your extent when querying the map is correct.
>
> So you make sure, that everything around your datasource is OK.
>
> Then use a datastring like this one:
>
>
> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo USING
> UNIQUE PKey USING SRID=4326"
>
> or however the geometry-column in mssql server is called ;-)
>
> Regards, Till
>
>
>
>
> Roger Bedell wrote:
>
> Good Morning.
> I am currently working with MapServer and the MSSQL Spatial driver. I am
> seeing that MS does not work with a DATA statement like this in the Map
> file:
>
> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326"
>
> where PKey is defined like this:
>
> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL,
>
> No errors are triggered, however nothing is displayed, including all other
> layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas
> on how to fix it?
>
> Thanks!
> Roger Bedell
> Coordinate Solutions Inc.
>
> ------------------------------
>
> _______________________________________________
> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
>
> ---------------------------------------------------------
> terrestris GmbH & Co. KG
> Irmintrudisstrasse 17
> 53111 Bonn
> Germany
>
> Till Adams
> Gesch?ftsf?hrung
>
> Tel: +49 (0)228 / 962 899-52
> Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de
> Amtsgericht Bonn, HRA 6835
> ---------------------------------------------------------
>
> Komplement?rin:
>
> terrestris Verwaltungs GmbH
>
> vertreten durch:
> Hinrich Paulsen, Till Adams
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From szekerest at gmail.com Thu Mar 10 03:56:18 2011
From: szekerest at gmail.com (Tamas Szekeres)
Date: Thu, 10 Mar 2011 12:56:18 +0100
Subject: [mapserver-users] MapServer and Guid USING UNIQUE
In-Reply-To:
References:
<4D78B033.5080308@terrestris.de>
Message-ID:
Hi Roger,
Could you create a ticket with this issue (
http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this.
Best regards,
Tamas
2011/3/10 Roger Bedell
> Thanks Till, however, here is the trace from the ODBC tracer, pretty
> obvious what is going on:
>
> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
> Server]Insufficient result space to convert uniqueidentifier value to char.
> (8170)
>
> Guids generally take up 36 characters when converted to a string, and the
> Select statement only has room for 20.
>
> Since this is a SQL specific query, my guess it is being generated in the
> sql spatial driver?
>
> Roger
>
>
> HSTMT 0x0589B310
> UCHAR * 0x05E1A990 [ -3] "SELECT
> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader
> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599
> 29.2473266843318,-93.22438 29.2473266843318,-93.22438
> 41.3707663156682,-104.18599 41.3707663156682,-104.18599
> 29.2473266843318))',4326)) = 1 \ 0"
> SDWORD -3
>
> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
> Server]Insufficient result space to convert uniqueidentifier value to char.
> (8170)
>
>
>
>
>
>
>
> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote:
>
>> Dear Roger,
>>
>> if you get an empty image with no error, the first try would be to use a
>> simple symbol and no expression in your layer.
>> Also ensure, that your extent when querying the map is correct.
>>
>> So you make sure, that everything around your datasource is OK.
>>
>> Then use a datastring like this one:
>>
>>
>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo
>> USING UNIQUE PKey USING SRID=4326"
>>
>> or however the geometry-column in mssql server is called ;-)
>>
>> Regards, Till
>>
>>
>>
>>
>> Roger Bedell wrote:
>>
>> Good Morning.
>> I am currently working with MapServer and the MSSQL Spatial driver. I am
>> seeing that MS does not work with a DATA statement like this in the Map
>> file:
>>
>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING SRID=4326"
>>
>> where PKey is defined like this:
>>
>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL,
>>
>> No errors are triggered, however nothing is displayed, including all other
>> layers. Is this an issue with the SQL Spatial driver or MapServer? Any ideas
>> on how to fix it?
>>
>> Thanks!
>> Roger Bedell
>> Coordinate Solutions Inc.
>>
>> ------------------------------
>>
>> _______________________________________________
>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>> --
>>
>> ---------------------------------------------------------
>> terrestris GmbH & Co. KG
>> Irmintrudisstrasse 17
>> 53111 Bonn
>> Germany
>>
>> Till Adams
>> Gesch?ftsf?hrung
>>
>> Tel: +49 (0)228 / 962 899-52
>> Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de
>> Amtsgericht Bonn, HRA 6835
>> ---------------------------------------------------------
>>
>> Komplement?rin:
>>
>> terrestris Verwaltungs GmbH
>>
>> vertreten durch:
>> Hinrich Paulsen, Till Adams
>>
>>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sylvanascent at gmail.com Thu Mar 10 04:12:14 2011
From: sylvanascent at gmail.com (Roger Bedell)
Date: Thu, 10 Mar 2011 13:12:14 +0100
Subject: [mapserver-users] MapServer and Guid USING UNIQUE
In-Reply-To:
References:
<4D78B033.5080308@terrestris.de>
Message-ID:
Thanks Tamas!
It is ticket 3722
Roger
On Thu, Mar 10, 2011 at 12:56 PM, Tamas Szekeres wrote:
> Hi Roger,
>
> Could you create a ticket with this issue (
> http://trac.osgeo.org/mapserver/newticket)? I'll take care of fixing this.
>
> Best regards,
>
> Tamas
>
>
>
> 2011/3/10 Roger Bedell
>
> Thanks Till, however, here is the trace from the ODBC tracer, pretty
>> obvious what is going on:
>>
>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
>> Server]Insufficient result space to convert uniqueidentifier value to char.
>> (8170)
>>
>> Guids generally take up 36 characters when converted to a string, and the
>> Select statement only has room for 20.
>>
>> Since this is a SQL specific query, my guess it is being generated in the
>> sql spatial driver?
>>
>> Roger
>>
>>
>> HSTMT 0x0589B310
>> UCHAR * 0x05E1A990 [ -3] "SELECT
>> Feature.STAsBinary(),convert(varchar(20), PKey) from MetesAndBoundsHeader
>> WHERE Feature.STIntersects(Geometry::STGeomFromText('POLYGON((-104.18599
>> 29.2473266843318,-93.22438 29.2473266843318,-93.22438
>> 41.3707663156682,-104.18599 41.3707663156682,-104.18599
>> 29.2473266843318))',4326)) = 1 \ 0"
>> SDWORD -3
>>
>> DIAG [42000] [Microsoft][ODBC SQL Server Driver][SQL
>> Server]Insufficient result space to convert uniqueidentifier value to char.
>> (8170)
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Mar 10, 2011 at 12:04 PM, adams wrote:
>>
>>> Dear Roger,
>>>
>>> if you get an empty image with no error, the first try would be to use a
>>> simple symbol and no expression in your layer.
>>> Also ensure, that your extent when querying the map is correct.
>>>
>>> So you make sure, that everything around your datasource is OK.
>>>
>>> Then use a datastring like this one:
>>>
>>>
>>> DATA "the_geom from (SELECT Feature from MetesAndBoundsHeader) as foo
>>> USING UNIQUE PKey USING SRID=4326"
>>>
>>> or however the geometry-column in mssql server is called ;-)
>>>
>>> Regards, Till
>>>
>>>
>>>
>>>
>>> Roger Bedell wrote:
>>>
>>> Good Morning.
>>> I am currently working with MapServer and the MSSQL Spatial driver. I am
>>> seeing that MS does not work with a DATA statement like this in the Map
>>> file:
>>>
>>> DATA "Feature from MetesAndBoundsHeader USING UNIQUE PKey USING
>>> SRID=4326"
>>>
>>> where PKey is defined like this:
>>>
>>> [PKey] [uniqueidentifier] DEFAULT NEWSEQUENTIALID() ROWGUIDCOL NOT NULL,
>>>
>>> No errors are triggered, however nothing is displayed, including all
>>> other layers. Is this an issue with the SQL Spatial driver or MapServer? Any
>>> ideas on how to fix it?
>>>
>>> Thanks!
>>> Roger Bedell
>>> Coordinate Solutions Inc.
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> mapserver-users mailing listmapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>>> --
>>>
>>> ---------------------------------------------------------
>>> terrestris GmbH & Co. KG
>>> Irmintrudisstrasse 17
>>> 53111 Bonn
>>> Germany
>>>
>>> Till Adams
>>> Gesch?ftsf?hrung
>>>
>>> Tel: +49 (0)228 / 962 899-52
>>> Fax: +49 (0)228 / 962 899-57adams at terrestris.de http://www.terrestris.de
>>> Amtsgericht Bonn, HRA 6835
>>> ---------------------------------------------------------
>>>
>>> Komplement?rin:
>>>
>>> terrestris Verwaltungs GmbH
>>>
>>> vertreten durch:
>>> Hinrich Paulsen, Till Adams
>>>
>>>
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From andy at squeakycode.net Thu Mar 10 07:08:00 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 09:08:00 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D78E950.80806@squeakycode.net>
On 3/9/2011 8:47 PM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
Having a problem compiling opengl support. Without opengl it compiles
fine. Looks like its looking in /usr/lib, not /usr/lib64.
Slackware64 13.1.
./configure --with-ogr --with-gdal --with-agg --with-geos --with-postgis
--with-xml2 --with-free-type --with-proj --with-tiff --with-jpeg
--with-curl --with-gd --with-postgis=/usr/local/pgsql/bin/pg_config
--with-opengl --with-ftgl
...lots of output...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64
-lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.
checking if FTGL support requested... looking for ftgl libs in /usr
using ftgl from /usr
checking if OGL support requested... looking for opengl libs in /usr
./configure: line 9891: -L/usr/lib64: No such file or directory
configure: error: "could not find libGL or libGLU in /usr/lib/."
config.log:
configure:9774: checking if FTGL support requested
configure:9785: result: looking for ftgl libs in /usr
configure:9849: result: using ftgl from /usr
configure:9873: checking if OGL support requested
configure:9885: result: looking for opengl libs in /usr
configure:9917: error: "could not find libGL or libGLU in /usr/lib/."
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALL_ENABLED='-DUSE_FTGL -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV
-DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE '
ALL_INC='-I/usr/include/FTGL/ -I/usr/include -I/usr/include/freetype2 '
ALL_LIB='-L/usr/lib64 -lftgl -lgd -L/usr/lib64 -lgd -ljpeg -lfreetype
-lz -lpng -lz -lXpm -lX11 -lc -lz -lfreetype -lz '
FTGL_ENABLED='-DUSE_FTGL '
FTGL_INC='-I/usr/include/FTGL/'
FTGL_LIB='-L/usr/lib64 -lftgl'
-Andy
From dmorissette at mapgears.com Thu Mar 10 08:17:32 2011
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Thu, 10 Mar 2011 11:17:32 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D78E950.80806@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D78E950.80806@squeakycode.net>
Message-ID: <4D78F99C.7000004@mapgears.com>
On 11-03-10 10:08 AM, Andy Colson wrote:
>
> Having a problem compiling opengl support. Without opengl it compiles
> fine. Looks like its looking in /usr/lib, not /usr/lib64.
>
I have created ticket http://trac.osgeo.org/mapserver/ticket/3724 for
this and committed a change that should fix it. However I am not setup
to test on that platform, so please test and reopen the ticket if that
didn't fix the issue.
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
From andy at squeakycode.net Thu Mar 10 08:29:58 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 10:29:58 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D78F99C.7000004@mapgears.com>
References: <4D783BDA.5060600@mapgears.com> <4D78E950.80806@squeakycode.net>
<4D78F99C.7000004@mapgears.com>
Message-ID: <4D78FC86.1080205@squeakycode.net>
On 3/10/2011 10:17 AM, Daniel Morissette wrote:
> On 11-03-10 10:08 AM, Andy Colson wrote:
>>
>> Having a problem compiling opengl support. Without opengl it compiles
>> fine. Looks like its looking in /usr/lib, not /usr/lib64.
>>
>
> I have created ticket http://trac.osgeo.org/mapserver/ticket/3724 for
> this and committed a change that should fix it. However I am not setup
> to test on that platform, so please test and reopen the ticket if that
> didn't fix the issue.
>
It works. configure went ok, and make built ok. Still need to install
and use it.
Thanks!
-Andy
From michufoc at wp.pl Thu Mar 10 09:19:48 2011
From: michufoc at wp.pl (=?ISO-8859-2?Q?Micha=B3_Dro=BFd=BF?=)
Date: Thu, 10 Mar 2011 18:19:48 +0100
Subject: [mapserver-users] WMS on top of Google maps API
Message-ID: <4d79083429eec3.62799056@wp.pl>
An HTML attachment was scrubbed...
URL:
From andy at squeakycode.net Thu Mar 10 09:33:43 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 11:33:43 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D790B77.9020502@squeakycode.net>
On 3/9/2011 8:47 PM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
My mapfile has:
IMAGECOLOR 192 192 192
IMAGEQUALITY 95
IMAGETYPE jpeg
OUTPUTFORMAT
NAME jpeg
DRIVER 'GD/JPEG'
MIMETYPE 'image/jpeg'
EXTENSION 'jpeg'
END
Error I get:
ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver
isn't configured.:loadOutputFormat()
mapserv -v
MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
Sure enough, no GD... but I did compile it in:
configure: checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64
-lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.
So what do I use?
I'd also like to try the new opengl stuff.. is there new docs for:
http://mapserver.org/mapfile/outputformat.html
-Andy
From thomas.bonfort at gmail.com Thu Mar 10 09:36:09 2011
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Thu, 10 Mar 2011 18:36:09 +0100
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D790B77.9020502@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net>
Message-ID:
use AGG/JPEG
regards,
thomas
On Thu, Mar 10, 2011 at 18:33, Andy Colson wrote:
> On 3/9/2011 8:47 PM, Daniel Morissette wrote:
>>
>> The MapServer Team is pleased to announce the release of MapServer
>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>
>
> My mapfile has:
>
> ? ? ? ?IMAGECOLOR 192 192 192
> ? ? ? ?IMAGEQUALITY 95
> ? ? ? ?IMAGETYPE jpeg
> ? ? ? ?OUTPUTFORMAT
> ? ? ? ? ? ? ? ?NAME jpeg
> ? ? ? ? ? ? ? ?DRIVER 'GD/JPEG'
> ? ? ? ? ? ? ? ?MIMETYPE 'image/jpeg'
> ? ? ? ? ? ? ? ?EXTENSION 'jpeg'
> ? ? ? ?END
>
> Error I get:
> ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver
> isn't configured.:loadOutputFormat()
>
>
> ?mapserv -v
> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE
> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
> INPUT=GDAL INPUT=SHAPEFILE
>
>
> Sure enough, no GD... but I did compile it in:
>
> configure: checking for GD 2.0.28 or higher...
> checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
> ? ? ? ?using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd
> -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
> checking for gdImageCreate in -lgd... yes
> checking for gdImageGif in -lgd... yes
> checking for gdImagePng in -lgd... yes
> checking for gdImageJpeg in -lgd... yes
> checking for gdImageWBMP in -lgd... yes
> checking for gdImageStringFT in -lgd... yes
> checking for gdImageOpenPolygon in -lgd... yes
> checking for gdImageGifPtr in -lgd... yes
> checking for gdFontGetTiny in -lgd... yes
> checking for gdImageSetResolution in -l... no
> checking whether gdImageGetTrueColorPixel is declared... yes
> checking for gdImageGetTrueColorPixel in -lgd... yes
> ? ? ? ?using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
> -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
> -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.
>
> So what do I use?
>
> I'd also like to try the new opengl stuff.. is there new docs for:
>
> http://mapserver.org/mapfile/outputformat.html
>
> -Andy
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From andy at squeakycode.net Thu Mar 10 09:39:05 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 11:39:05 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D790CB9.8010905@squeakycode.net>
On 3/9/2011 8:47 PM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
My mapfile has:
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 255 255 255
OUTLINECOLOR 0 61 245
BUFFER 3
ANGLE [txt_angle]
POSITION cc
PARTIALS false
END
I get error:
ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()
(the line number is correct... that's very nice)
-Andy
From hans.wapenaar at gis-innovations.nl Thu Mar 10 10:32:26 2011
From: hans.wapenaar at gis-innovations.nl (Hans Wapenaar (GIS Innovations))
Date: Thu, 10 Mar 2011 19:32:26 +0100
Subject: [mapserver-users] WMS on top of Google maps API
In-Reply-To: <4d79083429eec3.62799056@wp.pl>
References: <4d79083429eec3.62799056@wp.pl>
Message-ID: <006601cbdf51$826b82a0$874287e0$@wapenaar@gis-innovations.nl>
Hi Michal,
To get a map transparent I use TRANSPARENT ON in MAP or OUTPUT section and
TRANSPARANT XX in the LAYERS section.
Probably you won't need IMAGECOLOR anymore.
May be it helps,
Hans Wapenaar
MAP
NAME "XXXX"
STATUS ON
IMAGETYPE PNG
UNITS METERS
TRANSPARENT ON
....
OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER AGG/PNG
IMAGEMODE RGBA
EXTENSION "png"
TRANSPARENT ON
END
LAYER
...
STATUS ON
TRANSPARENCY 30
TYPE POLYGON
...
END
Van: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Namens Michal Drozdz
Verzonden: donderdag 10 maart 2011 18:20
Aan: mapserver-users
Onderwerp: [mapserver-users] WMS on top of Google maps API
Hallo list!
I have a problem with mapserver WMS and google maps API
http://www.examples.geostrona.pl/WMS_on_top_of_google/
When I am adding WMS layer everything outside national park become white (is
is an IMAGECOLOR in mapfile value). How to set transparency for it? I want
to have only national park geometry displayed...
here is a copy of mapfile:
http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map
Thanks for help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From peter.hopfgartner at r3-gis.com Thu Mar 10 11:02:16 2011
From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner)
Date: Thu, 10 Mar 2011 20:02:16 +0100 (CET)
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Message-ID: <20110310190216.0FB50167821C@mail.r3-gis.com>
While trying to build the package for CentOS 5.6, I stumble on Java support:
+ cd ../java
+ JAVA_HOME=/usr/lib/jvm/java-1.6.0
+ make interface
mkdir -p edu/umn/gis/mapscript
swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o mapscript_wrap.c ../mapscript.i
+ JAVA_HOME=/usr/lib/jvm/java-1.6.0
+ make
javac edu/umn/gis/mapscript/*.java
gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ @PDF_ENABLED@ -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include -Irenderers/agg/include @PDF_INC@ -I/usr/include/php/ext/ereg/ -I/usr/include/gdal -I/usr/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/include -I/usr/include/libxml2 -I/usr/lib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux -fno-strict-aliasing mapscript_wrap.c
gcc: @AGG_ENABLED@: No such file or directory
gcc: @PDF_ENABLED@: No such file or directory
gcc: @PDF_INC@: No such file or directory
mapscript_wrap.c: In function 'new_imageObj':
mapscript_wrap.c:2746: warning: passing argument 1 of 'renderer->loadImageFromFile' discards qualifiers from pointer target type
mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes':
mapscript_wrap.c:29157: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness
mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes':
mapscript_wrap.c:43772: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness
make: *** [mapscript_so] Error 1
error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)
RPM build errors:
Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)
[rpmbuild at rpm-devel ~]$
Regards,
Peter
R3 GIS Srl - GmbH
http://www.r3-gis.com
--------Daniel Morissette wrote--------
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Date: 10.03.2011 03:48
>The MapServer Team is pleased to announce the release of MapServer
>6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
>This new release introduces important changes in key components of the
>MapServer core (rendering, query and expressions), and for this reason
>we count on you, MapServer power users, to help test the release in your
>respective environments and provide feedback (through the users list or
>Trac tickets).
(...)
>
>Thanks! - The MapServer Team
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From andy at squeakycode.net Thu Mar 10 11:03:20 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 13:03:20 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D792078.6050605@squeakycode.net>
On 3/9/2011 8:47 PM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
I cannot get perl mapscript to work.
my code:
$x = $map->OWSDispatch( $owreq );
if ($x)
{
print STDERR "ERROR: 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();
This is a test script, and the first problem is I'm not passing any
arguments to OWSDispatch. Prior versions errored out and reported:
ERROR: OWSDispatch: 1
ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue,
locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch()
Ver 6 however reports:
ERROR: OWSDispatch: 2
ERROR: 0::
Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff
did not get set.
(when I do pass arguments to OWSDispatch I still get an error but with
no errorObj descriptions I have no idea whats wrong)
Oh, and shp2img works ok.
-Andy
From dmorissette at mapgears.com Thu Mar 10 11:05:27 2011
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Thu, 10 Mar 2011 14:05:27 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <20110310190216.0FB50167821C@mail.r3-gis.com>
References: <20110310190216.0FB50167821C@mail.r3-gis.com>
Message-ID: <4D7920F7.703@mapgears.com>
Hi Peter,
It is quite likely that you are using a SWIG version newer than 1.3.36.
The Java SWIG wrappers work best with SWIG 1.3.36. The MapServer source
package already contains SWIG wrappers generated using SWIG 1.3.36 so
you could use that, or if you must regenerate them then I'd suggest that
you try with SWIG 1.3.36.
Daniel
On 11-03-10 02:02 PM, Peter Hopfgartner wrote:
> While trying to build the package for CentOS 5.6, I stumble on Java support:
>
> + cd ../java
> + JAVA_HOME=/usr/lib/jvm/java-1.6.0
> + make interface
> mkdir -p edu/umn/gis/mapscript
> swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript -o mapscript_wrap.c ../mapscript.i
> + JAVA_HOME=/usr/lib/jvm/java-1.6.0
> + make
> javac edu/umn/gis/mapscript/*.java
> gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ @PDF_ENABLED@ -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include -Irenderers/agg/include @PDF_INC@ -I/usr/include/php/ext/ereg/ -I/usr/include/gdal -I/usr/include -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/include -I/usr/include/libxml2 -I/usr/l
ib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux -fno-strict-aliasing mapscript_wrap.c
> gcc: @AGG_ENABLED@: No such file or directory
> gcc: @PDF_ENABLED@: No such file or directory
> gcc: @PDF_INC@: No such file or directory
> mapscript_wrap.c: In function 'new_imageObj':
> mapscript_wrap.c:2746: warning: passing argument 1 of 'renderer->loadImageFromFile' discards qualifiers from pointer target type
> mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes':
> mapscript_wrap.c:29157: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness
> mapscript_wrap.c: In function 'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes':
> mapscript_wrap.c:43772: warning: pointer targets in passing argument 2 of 'SWIG_JavaArrayOutSchar' differ in signedness
> make: *** [mapscript_so] Error 1
> error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)
>
>
> RPM build errors:
> Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448 (%build)
> [rpmbuild at rpm-devel ~]$
>
> Regards,
>
> Peter
>
> R3 GIS Srl - GmbH
> http://www.r3-gis.com
>
>
> --------Daniel Morissette wrote--------
> Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
> Date: 10.03.2011 03:48
>
>> The MapServer Team is pleased to announce the release of MapServer
>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>
>> This new release introduces important changes in key components of the
>> MapServer core (rendering, query and expressions), and for this reason
>> we count on you, MapServer power users, to help test the release in your
>> respective environments and provide feedback (through the users list or
>> Trac tickets).
> (...)
>>
>> Thanks! - The MapServer Team
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
From peter.hopfgartner at r3-gis.com Thu Mar 10 11:05:13 2011
From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner)
Date: Thu, 10 Mar 2011 20:05:13 +0100 (CET)
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Message-ID: <20110310190513.3F987167821C@mail.r3-gis.com>
The spec file for MapServer has the following code:
chmod -x tests/home.png
chmod -x mapscript/php/php_mapscript.c
chmod -x mappluginlayer.c
chmod -x mapscript/php/mapscript_i.c
chmod -x mapscript/php/examples/test_writeshape.phtml
chmod -x mapscript/python/examples/*.py
chmod -x mapscript/python/tests/rundoctests.dist
chmod -x mapscript/perl/examples/*.pl
chmod -x mapscript/php/README
(...)
iconv -f ISO-8859-1 -t UTF-8 < \
mapscript/java/examples/QueryByAttributeUnicode.java > \
mapscript/java/examples/QueryByAttributeUnicode-tmp.java
mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \
mapscript/java/examples/QueryByAttributeUnicode.java
Could these issues be fixed upstream?
Regards,
Peter
R3 GIS Srl - GmbH
http://www.r3-gis.com
--------Daniel Morissette wrote--------
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Date: 10.03.2011 03:48
>The MapServer Team is pleased to announce the release of MapServer
>6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
>This new release introduces important changes in key components of the
>MapServer core (rendering, query and expressions), and for this reason
>we count on you, MapServer power users, to help test the release in your
>respective environments and provide feedback (through the users list or
>Trac tickets).
>
>The timing and feedback for this first beta is very important since it
>comes one week before the Montreal Code Sprint where about a dozen
>participants will be working specifically on MapServer and will have a
>chance to tackle important 6.0 issues that may be found and reported.
>
>Here is a quick list of RFCs documenting some of the new features or
>important changes in 6.0. This list is not complete, we will update it
>as we polish the release documentation:
>
>Core Changes in MapServer 6.0 which could affect existing applications:
>
>* MS RFC 54: Rendering Interface API
>* MS RFC 64: MapServer Expression Parser Overhaul
>* MS RFC 65: Single-pass Query Changes for 6.0
>
>New Features and Enhancements in MapServer 6.0:
>
>* MS RFC 58: Kml Output
>* MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
>with too much character overlap
>* MS RFC 61: Enhance MapServer Feature Style Support
>* MS RFC 62: Support Additional WFS GetFeature Output Formats
>* MS RFC 63: Built-in OpenLayers map viewer
>* MS RFC 66: Better handling of temporary files
>* MS RFC 67: Enable/Disable Layers in OGC Web Services
>* MS RFC 68: Support for combining features from multiple layers
>* MS RFC 69: Support for clustering of features in point layers
>
>(RFCs are available online at http://mapserver.org/development/rfc/)
>
>As usual there an a large number of additional small enhancements and
>bug fixes. For a complete list see the HISTORY.TXT file at:
>
>
>http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT
>
>We have started working on a 5.6 -> 6.0 migration guide. This document
>contains important notes on backwards incompatibilities or other changes
>required when upgrading to 6.0. It is not complete yet but we strongly
>recommend that you review the latest version online at:
>
>http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
>
>The source for this release can be downloaded at:
>
> http://mapserver.org/download.html
>or
> http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz
>
>The binary distributions listed in the download page should be updated
>with binaries for the new 6.0.0-beta1 release in the next day or so.
>
>
>This is the first of four planned beta releases and if all goes well a
>final release should occur around the end of April. The full release
>plan can be viewed at:
>
> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
>
>Once again we need your help to ensure a high quality product,
>especially for this beta due to its timing with next week's Code Sprint,
>so please help out by testing your applications with this new code base.
>
>Thanks! - The MapServer Team
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From mwkorver at gmail.com Thu Mar 10 11:12:03 2011
From: mwkorver at gmail.com (Mark Korver)
Date: Thu, 10 Mar 2011 13:12:03 -0600
Subject: [mapserver-users] WMS on top of Google maps API
In-Reply-To: <4d79083429eec3.62799056@wp.pl>
References: <4d79083429eec3.62799056@wp.pl>
Message-ID:
You need to be using png with transparency, not jpeg. Jpeg does not
support transparency.
format=image/png
also
&transparent=true
quick test is:
http://geoforest.org/mapserver/cgi-bin/mapserv?map=/home/mdrozdz/www/np.map&version=1.1.1&request=GetMap&Layers=National_parks_existing&Styles=default&SRS=EPSG:4326&BBOX=20.7421875,42.032974332441405,20.91796875,42.16340342422401&width=256&height=256&format=image/png&transparent=true
looks like that works..
2011/3/10 Micha? Dro?d? :
> Hallo list!
>
>
>
> I have a problem with mapserver WMS and google maps API
>
>
>
> http://www.examples.geostrona.pl/WMS_on_top_of_google/
>
> When I am adding WMS layer everything outside national park become white (is
> is an IMAGECOLOR in mapfile value). How to set transparency for it? I want
> to have only national park geometry displayed...
>
>
>
> here is a copy of mapfile:
>
> http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map
>
>
>
> Thanks for help!
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
From dmorissette at mapgears.com Thu Mar 10 11:13:12 2011
From: dmorissette at mapgears.com (Daniel Morissette)
Date: Thu, 10 Mar 2011 14:13:12 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <20110310190513.3F987167821C@mail.r3-gis.com>
References: <20110310190513.3F987167821C@mail.r3-gis.com>
Message-ID: <4D7922C8.9070407@mapgears.com>
I have filed a ticket for this and will see what we can do:
http://trac.osgeo.org/mapserver/ticket/3726
Daniel
On 11-03-10 02:05 PM, Peter Hopfgartner wrote:
> The spec file for MapServer has the following code:
>
> chmod -x tests/home.png
> chmod -x mapscript/php/php_mapscript.c
> chmod -x mappluginlayer.c
> chmod -x mapscript/php/mapscript_i.c
> chmod -x mapscript/php/examples/test_writeshape.phtml
> chmod -x mapscript/python/examples/*.py
> chmod -x mapscript/python/tests/rundoctests.dist
> chmod -x mapscript/perl/examples/*.pl
> chmod -x mapscript/php/README
>
> (...)
>
> iconv -f ISO-8859-1 -t UTF-8< \
> mapscript/java/examples/QueryByAttributeUnicode.java> \
> mapscript/java/examples/QueryByAttributeUnicode-tmp.java
> mv -f mapscript/java/examples/QueryByAttributeUnicode-tmp.java \
> mapscript/java/examples/QueryByAttributeUnicode.java
>
> Could these issues be fixed upstream?
>
> Regards,
>
> Peter
>
> R3 GIS Srl - GmbH
> http://www.r3-gis.com
>
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
From andy at squeakycode.net Thu Mar 10 11:50:53 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 13:50:53 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D792078.6050605@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net>
Message-ID: <4D792B9D.5070206@squeakycode.net>
On 3/10/2011 1:03 PM, Andy Colson wrote:
> On 3/9/2011 8:47 PM, Daniel Morissette wrote:
>> The MapServer Team is pleased to announce the release of MapServer
>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>
>
> I cannot get perl mapscript to work.
>
> my code:
>
> $x = $map->OWSDispatch( $owreq );
> if ($x)
> {
> print STDERR "ERROR: 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();
>
> This is a test script, and the first problem is I'm not passing any
> arguments to OWSDispatch. Prior versions errored out and reported:
>
> ERROR: OWSDispatch: 1
> ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue,
> locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch()
>
>
> Ver 6 however reports:
>
> ERROR: OWSDispatch: 2
> ERROR: 0::
>
> Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff
> did not get set.
>
> (when I do pass arguments to OWSDispatch I still get an error but with
> no errorObj descriptions I have no idea whats wrong)
>
> Oh, and shp2img works ok.
>
> -Andy
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
Oh, if I set EXCEPTIONS to vnd.ogc.se_xml, I do get a message:
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
LAYERS parameter.
The layer is set and is valid, its the same request I make to the prior
version of mapscript and it works fine.
I did have to modify my map file just a bit (commented out the ANGLE and
label backgroundcolor), but all the layers are still there.
-Andy
From yassefa at dmsolutions.ca Thu Mar 10 11:59:07 2011
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Thu, 10 Mar 2011 14:59:07 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D792B9D.5070206@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net>
<4D792B9D.5070206@squeakycode.net>
Message-ID: <4D792D8B.9020405@dmsolutions.ca>
nipped>
>
> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in
> the LAYERS parameter.
>
> The layer is set and is valid, its the same request I make to the
> prior version of mapscript and it works fine.
>
> I did have to modify my map file just a bit (commented out the ANGLE
> and label backgroundcolor), but all the layers are still there.
>
This could be related to that fact that you should enable ows request
(http://mapserver.org/development/rfc/ms-rfc-67.html)
"ows_enable_request" "*"
best regards,
> -Andy
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From szekerest at gmail.com Thu Mar 10 12:01:22 2011
From: szekerest at gmail.com (Tamas Szekeres)
Date: Thu, 10 Mar 2011 21:01:22 +0100
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D792B9D.5070206@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net>
<4D792B9D.5070206@squeakycode.net>
Message-ID:
Andy,
Take a look at the migration guide
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
Specifically to the "OGC Web Services" part.
Best regards,
Tamas
2011/3/10 Andy Colson
> On 3/10/2011 1:03 PM, Andy Colson wrote:
>
>> On 3/9/2011 8:47 PM, Daniel Morissette wrote:
>>
>>> The MapServer Team is pleased to announce the release of MapServer
>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>>
>>>
>> I cannot get perl mapscript to work.
>>
>> my code:
>>
>> $x = $map->OWSDispatch( $owreq );
>> if ($x)
>> {
>> print STDERR "ERROR: 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();
>>
>> This is a test script, and the first problem is I'm not passing any
>> arguments to OWSDispatch. Prior versions errored out and reported:
>>
>> ERROR: OWSDispatch: 1
>> ERROR: 12:OWS Common exception: exceptionCode=MissingParameterValue,
>> locator=SERVICE, ExceptionText=SERVICE parameter missing.:msOWSDispatch()
>>
>>
>> Ver 6 however reports:
>>
>> ERROR: OWSDispatch: 2
>> ERROR: 0::
>>
>> Looks like OWSDispatch returned a 2, but the mapscript::errorObj stuff
>> did not get set.
>>
>> (when I do pass arguments to OWSDispatch I still get an error but with
>> no errorObj descriptions I have no idea whats wrong)
>>
>> Oh, and shp2img works ok.
>>
>> -Andy
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
> Oh, if I set EXCEPTIONS to vnd.ogc.se_xml, I do get a message:
>
>
>
> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
> LAYERS parameter.
>
> The layer is set and is valid, its the same request I make to the prior
> version of mapscript and it works fine.
>
> I did have to modify my map file just a bit (commented out the ANGLE and
> label backgroundcolor), but all the layers are still there.
>
>
> -Andy
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jmckenna at gatewaygeomatics.com Thu Mar 10 12:08:14 2011
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Thu, 10 Mar 2011 16:08:14 -0400
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D792FAE.9050805@gatewaygeomatics.com>
Windows users can test the beta with an MS4W upgrade package (details at
http://www.maptools.org/ms4w/index.phtml?page=RELEASE_mapserver_ms4w3.x_dev-6.0.0.html).
Enjoy!
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 11-03-09 10:47 PM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
> This new release introduces important changes in key components of the
> MapServer core (rendering, query and expressions), and for this reason
> we count on you, MapServer power users, to help test the release in your
> respective environments and provide feedback (through the users list or
> Trac tickets).
>
> The timing and feedback for this first beta is very important since it
> comes one week before the Montreal Code Sprint where about a dozen
> participants will be working specifically on MapServer and will have a
> chance to tackle important 6.0 issues that may be found and reported.
>
> Here is a quick list of RFCs documenting some of the new features or
> important changes in 6.0. This list is not complete, we will update it
> as we polish the release documentation:
>
> Core Changes in MapServer 6.0 which could affect existing applications:
>
> * MS RFC 54: Rendering Interface API
> * MS RFC 64: MapServer Expression Parser Overhaul
> * MS RFC 65: Single-pass Query Changes for 6.0
>
> New Features and Enhancements in MapServer 6.0:
>
> * MS RFC 58: Kml Output
> * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
> with too much character overlap
> * MS RFC 61: Enhance MapServer Feature Style Support
> * MS RFC 62: Support Additional WFS GetFeature Output Formats
> * MS RFC 63: Built-in OpenLayers map viewer
> * MS RFC 66: Better handling of temporary files
> * MS RFC 67: Enable/Disable Layers in OGC Web Services
> * MS RFC 68: Support for combining features from multiple layers
> * MS RFC 69: Support for clustering of features in point layers
>
> (RFCs are available online at http://mapserver.org/development/rfc/)
>
> As usual there an a large number of additional small enhancements and
> bug fixes. For a complete list see the HISTORY.TXT file at:
>
> http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT
>
> We have started working on a 5.6 -> 6.0 migration guide. This document
> contains important notes on backwards incompatibilities or other changes
> required when upgrading to 6.0. It is not complete yet but we strongly
> recommend that you review the latest version online at:
>
> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
>
> The source for this release can be downloaded at:
>
> http://mapserver.org/download.html
> or
> http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz
>
> The binary distributions listed in the download page should be updated
> with binaries for the new 6.0.0-beta1 release in the next day or so.
>
>
> This is the first of four planned beta releases and if all goes well a
> final release should occur around the end of April. The full release
> plan can be viewed at:
>
> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
>
> Once again we need your help to ensure a high quality product,
> especially for this beta due to its timing with next week's Code Sprint,
> so please help out by testing your applications with this new code base.
>
> Thanks! - The MapServer Team
From andy at squeakycode.net Thu Mar 10 12:19:45 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 14:19:45 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D792D8B.9020405@dmsolutions.ca>
References: <4D783BDA.5060600@mapgears.com> <4D792078.6050605@squeakycode.net>
<4D792B9D.5070206@squeakycode.net>
<4D792D8B.9020405@dmsolutions.ca>
Message-ID: <4D793261.20508@squeakycode.net>
On 3/10/2011 1:59 PM, Yewondwossen Assefa wrote:
> nipped>
>>
>> msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in
>> the LAYERS parameter.
>>
>> The layer is set and is valid, its the same request I make to the
>> prior version of mapscript and it works fine.
>>
>> I did have to modify my map file just a bit (commented out the ANGLE
>> and label backgroundcolor), but all the layers are still there.
>>
> This could be related to that fact that you should enable ows request
> (http://mapserver.org/development/rfc/ms-rfc-67.html)
>
> "ows_enable_request" "*"
>
>
> best regards,
>
>
>
>> -Andy
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
Ga! Yep. Sort of. My SERVICE is set to WMS not OWS so I completely
skipped over it, but I see, reading further there is also
wms_enable_request.
I enabled both (and either one individually to test) and now I dont get
an error, but I also dont get an image back. Might be some other
mapfile change. I'll go threw it again.
Thanks (and you too Tamas)
-Andy
From woodbri at swoodbridge.com Thu Mar 10 12:54:42 2011
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Thu, 10 Mar 2011 15:54:42 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To:
References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net>
Message-ID: <4D793A92.3020907@swoodbridge.com>
A couple of points on this, MS6.0 no longer has a GD driver? is this
correct? if so, then:
a. need to add to migration guide
b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
c. mapfile parsing should throw an error ob DRIVER 'GD/...'
-Steve W
On 3/10/2011 12:36 PM, thomas bonfort wrote:
> use AGG/JPEG
>
> regards,
> thomas
>
> On Thu, Mar 10, 2011 at 18:33, Andy Colson wrote:
>> On 3/9/2011 8:47 PM, Daniel Morissette wrote:
>>>
>>> The MapServer Team is pleased to announce the release of MapServer
>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>>
>>
>> My mapfile has:
>>
>> IMAGECOLOR 192 192 192
>> IMAGEQUALITY 95
>> IMAGETYPE jpeg
>> OUTPUTFORMAT
>> NAME jpeg
>> DRIVER 'GD/JPEG'
>> MIMETYPE 'image/jpeg'
>> EXTENSION 'jpeg'
>> END
>>
>> Error I get:
>> ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this driver
>> isn't configured.:loadOutputFormat()
>>
>>
>> mapserv -v
>> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
>> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE
>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
>> INPUT=GDAL INPUT=SHAPEFILE
>>
>>
>> Sure enough, no GD... but I did compile it in:
>>
>> configure: checking for GD 2.0.28 or higher...
>> checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
>> using libgd 2.0.28 (or higher) from system libs (-L/usr/lib64 -lgd
>> -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
>> checking for gdImageCreate in -lgd... yes
>> checking for gdImageGif in -lgd... yes
>> checking for gdImagePng in -lgd... yes
>> checking for gdImageJpeg in -lgd... yes
>> checking for gdImageWBMP in -lgd... yes
>> checking for gdImageStringFT in -lgd... yes
>> checking for gdImageOpenPolygon in -lgd... yes
>> checking for gdImageGifPtr in -lgd... yes
>> checking for gdFontGetTiny in -lgd... yes
>> checking for gdImageSetResolution in -l... no
>> checking whether gdImageGetTrueColorPixel is declared... yes
>> checking for gdImageGetTrueColorPixel in -lgd... yes
>> using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
>> -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
>> -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.
>>
>> So what do I use?
>>
>> I'd also like to try the new opengl stuff.. is there new docs for:
>>
>> http://mapserver.org/mapfile/outputformat.html
>>
>> -Andy
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
From Steve.Lime at state.mn.us Thu Mar 10 13:18:41 2011
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Thu, 10 Mar 2011 15:18:41 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D790CB9.8010905@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D790CB9.8010905@squeakycode.net>
Message-ID:
Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img? Will have a look.
THANKS FOR TESTING!!!
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson
Sent: Thursday, March 10, 2011 11:39 AM
To: Daniel Morissette
Cc: mapserver-users
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
On 3/9/2011 8:47 PM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
My mapfile has:
LABEL
TYPE truetype
FONT "Vera"
SIZE 10
COLOR 255 255 255
OUTLINECOLOR 0 61 245
BUFFER 3
ANGLE [txt_angle]
POSITION cc
PARTIALS false
END
I get error:
ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()
(the line number is correct... that's very nice)
-Andy
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From yassefa at dmsolutions.ca Thu Mar 10 13:32:04 2011
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Thu, 10 Mar 2011 16:32:04 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D793A92.3020907@swoodbridge.com>
References: <4D783BDA.5060600@mapgears.com>
<4D790B77.9020502@squeakycode.net>
<4D793A92.3020907@swoodbridge.com>
Message-ID: <4D794354.7070203@dmsolutions.ca>
GD is still there . It is still there and does 8bit png and gif.
On 10/03/2011 3:54 PM, Stephen Woodbridge wrote:
> A couple of points on this, MS6.0 no longer has a GD driver? is this
> correct? if so, then:
> a. need to add to migration guide
> b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
> c. mapfile parsing should throw an error ob DRIVER 'GD/...'
>
> -Steve W
>
> On 3/10/2011 12:36 PM, thomas bonfort wrote:
>> use AGG/JPEG
>>
>> regards,
>> thomas
>>
>> On Thu, Mar 10, 2011 at 18:33, Andy Colson wrote:
>>> On 3/9/2011 8:47 PM, Daniel Morissette wrote:
>>>>
>>>> The MapServer Team is pleased to announce the release of MapServer
>>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>>>
>>>
>>> My mapfile has:
>>>
>>> IMAGECOLOR 192 192 192
>>> IMAGEQUALITY 95
>>> IMAGETYPE jpeg
>>> OUTPUTFORMAT
>>> NAME jpeg
>>> DRIVER 'GD/JPEG'
>>> MIMETYPE 'image/jpeg'
>>> EXTENSION 'jpeg'
>>> END
>>>
>>> Error I get:
>>> ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this
>>> driver
>>> isn't configured.:loadOutputFormat()
>>>
>>>
>>> mapserv -v
>>> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
>>> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL
>>> SUPPORTS=FREETYPE
>>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS
>>> INPUT=OGR
>>> INPUT=GDAL INPUT=SHAPEFILE
>>>
>>>
>>> Sure enough, no GD... but I did compile it in:
>>>
>>> configure: checking for GD 2.0.28 or higher...
>>> checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
>>> using libgd 2.0.28 (or higher) from system libs
>>> (-L/usr/lib64 -lgd
>>> -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
>>> checking for gdImageCreate in -lgd... yes
>>> checking for gdImageGif in -lgd... yes
>>> checking for gdImagePng in -lgd... yes
>>> checking for gdImageJpeg in -lgd... yes
>>> checking for gdImageWBMP in -lgd... yes
>>> checking for gdImageStringFT in -lgd... yes
>>> checking for gdImageOpenPolygon in -lgd... yes
>>> checking for gdImageGifPtr in -lgd... yes
>>> checking for gdFontGetTiny in -lgd... yes
>>> checking for gdImageSetResolution in -l... no
>>> checking whether gdImageGetTrueColorPixel is declared... yes
>>> checking for gdImageGetTrueColorPixel in -lgd... yes
>>> using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
>>> -DUSE_GD_WBMP
>>> -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
>>> -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system
>>> libs.
>>>
>>> So what do I use?
>>>
>>> I'd also like to try the new opengl stuff.. is there new docs for:
>>>
>>> http://mapserver.org/mapfile/outputformat.html
>>>
>>> -Andy
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
From jbw2003 at earthlink.net Thu Mar 10 13:49:41 2011
From: jbw2003 at earthlink.net (Jim White)
Date: Thu, 10 Mar 2011 16:49:41 -0500
Subject: [mapserver-users] Re: WMS on top of Google maps API
In-Reply-To: <20110310190221.47649E024BB@lists.osgeo.org>
References: <20110310190221.47649E024BB@lists.osgeo.org>
Message-ID: <4D794775.5040503@earthlink.net>
You can add the OFFSITE option to a layer to set a color to transparent.
Jim
On 03/10/2011 02:02 PM, mapserver-users-request at lists.osgeo.org wrote:
>
>
> Van:mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] Namens Michal Drozdz
> Verzonden: donderdag 10 maart 2011 18:20
> Aan: mapserver-users
> Onderwerp: [mapserver-users] WMS on top of Google maps API
>
>
>
> Hallo list!
>
>
>
> I have a problem with mapserver WMS and google maps API
>
>
>
> http://www.examples.geostrona.pl/WMS_on_top_of_google/
>
> When I am adding WMS layer everything outside national park become white (is
> is an IMAGECOLOR in mapfile value). How to set transparency for it? I want
> to have only national park geometry displayed...
>
>
>
> here is a copy of mapfile:
>
> http://www.examples.geostrona.pl/WMS_on_top_of_google/np.map
>
>
>
> Thanks for help!
>
>
>
From wal3 at mindspring.com Thu Mar 10 14:21:40 2011
From: wal3 at mindspring.com (Worth Lutz)
Date: Thu, 10 Mar 2011 17:21:40 -0500
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - TEST PROBLEMS!
In-Reply-To: <201103092313.22149.aboudreault@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
<201103092313.22149.aboudreault@mapgears.com>
Message-ID: <9B88EA19DC5441D79FFD2E2F0EC46E33@Worthlaptop>
I have loaded MapServer 6.0 from ubuntugis-testing. I finally stripped down
a mapfile and got it working.
I have upgraded and downgraded several times trying to find the errors in my
mapfile. The repository works GREAT. Thanks for creating it!.
I want to test the new Cairo/pdf output. I have a need for pdf output and
have been waiting for this release.
My phpinfo output for mapscript only shows:
OUTPUT=GIF/PNG/JPEG
PDF and SVG is not included. Can you please add these to the configure
options used to create the repository? If not could you give me the proper
configuration I should use to compile MapServer 6.0. I have tried one or
twice to compile from source and have not been very successful. I never
seem to get the configuration right.
Thanks for your help,
Worth
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From andy at squeakycode.net Thu Mar 10 14:39:00 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 16:39:00 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D794354.7070203@dmsolutions.ca>
References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net> <4D793A92.3020907@swoodbridge.com>
<4D794354.7070203@dmsolutions.ca>
Message-ID: <4D795304.4050007@squeakycode.net>
> On 10/03/2011 3:54 PM, Stephen Woodbridge wrote:
>> A couple of points on this, MS6.0 no longer has a GD driver? is this
>> correct? if so, then:
>> a. need to add to migration guide
>> b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
>> c. mapfile parsing should throw an error ob DRIVER 'GD/...'
>>
>> -Steve W
>>
On 3/10/2011 3:32 PM, Yewondwossen Assefa wrote:
> GD is still there . It is still there and does 8bit png and gif.
>
Well, then I think somethings wrong. I cannot get GD to work at all,
and I cannot get it to use anything else:
andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.jpg -i jpeg
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured.
andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i jpg
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured.
-- yes, bob2 is defined as an outputform in my .map file as AGG/PNG
andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i bob2
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured.
andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i png
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver GD/JPEG, but this driver isn't configured.
Does not seem to matter what I have in the .map file... nothing works.
And I did compile GD in, why why wont it use it?
-Andy
From armin.burger at gmx.net Thu Mar 10 14:42:12 2011
From: armin.burger at gmx.net (Armin Burger)
Date: Thu, 10 Mar 2011 23:42:12 +0100
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Error with
$point->setXY()
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D7953C4.30103@gmx.net>
I tried the MS 6beta1 from SVN (the osgeo download site is not responding).
The first error I found in PHP Mapscript was related to the function
setXY() for point objects, the following code causes a segmentation
fault (something like "child pid 16057 exit signal Segmentation fault
(11)" in the Apache error log):
$pnt = new PointObj();
$pnt->setXY(250,200);
Same problem appears when creating the point with the old syntax
$pnt = ms_newPointObj();
The environment is Ubuntu 10.04, PHP 5.3.5 and Apache2 prefork (PHP as DSO).
regards
armin
From andy at squeakycode.net Thu Mar 10 14:46:23 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 16:46:23 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To:
References: <4D783BDA.5060600@mapgears.com> <4D790CB9.8010905@squeakycode.net>
Message-ID: <4D7954BF.2040006@squeakycode.net>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson
> Sent: Thursday, March 10, 2011 11:39 AM
> To: Daniel Morissette
> Cc: mapserver-users
> Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
>
> On 3/9/2011 8:47 PM, Daniel Morissette wrote:
>> The MapServer Team is pleased to announce the release of MapServer
>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
>
> My mapfile has:
>
> LABEL
> TYPE truetype
> FONT "Vera"
> SIZE 10
> COLOR 255 255 255
> OUTLINECOLOR 0 61 245
> BUFFER 3
> ANGLE [txt_angle]
> POSITION cc
> PARTIALS false
> END
>
> I get error:
>
> ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()
>
> (the line number is correct... that's very nice)
>
> -Andy
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
On 3/10/2011 3:18 PM, Lime, Steve D (DNR) wrote:
> Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img?
Will have a look.
>
> THANKS FOR TESTING!!!
>
> Steve
>
Both fail. Here is the map file. It uses postGis, hopefully it'll die
parsing before you actually need to hit the db.
-Andy
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: blueearthmn2.map
URL:
From gcpp.kalxas at gmail.com Thu Mar 10 14:49:44 2011
From: gcpp.kalxas at gmail.com (Angelos Tzotsos)
Date: Fri, 11 Mar 2011 00:49:44 +0200
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D795588.5070101@gmail.com>
Hi,
I have completed a test build of beta 1 on OpenSUSE Build Service:
https://build.opensuse.org/project/monitor?project=home%3Atzotsos%3Abranches%3AApplication%3AGeo
The repository for openSUSE 11.4 is:
http://download.opensuse.org/repositories/home:/tzotsos:/branches:/Application:/Geo/openSUSE_11.4/
When the final 6.0.0 is released, I will forward the package to the
official repository (Application:Geo)
Angelos
On 03/10/2011 04:47 AM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
> This new release introduces important changes in key components of the
> MapServer core (rendering, query and expressions), and for this reason
> we count on you, MapServer power users, to help test the release in
> your respective environments and provide feedback (through the users
> list or Trac tickets).
>
> The timing and feedback for this first beta is very important since it
> comes one week before the Montreal Code Sprint where about a dozen
> participants will be working specifically on MapServer and will have a
> chance to tackle important 6.0 issues that may be found and reported.
>
> Here is a quick list of RFCs documenting some of the new features or
> important changes in 6.0. This list is not complete, we will update it
> as we polish the release documentation:
>
> Core Changes in MapServer 6.0 which could affect existing applications:
>
> * MS RFC 54: Rendering Interface API
> * MS RFC 64: MapServer Expression Parser Overhaul
> * MS RFC 65: Single-pass Query Changes for 6.0
>
> New Features and Enhancements in MapServer 6.0:
>
> * MS RFC 58: Kml Output
> * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
> with too much character overlap
> * MS RFC 61: Enhance MapServer Feature Style Support
> * MS RFC 62: Support Additional WFS GetFeature Output Formats
> * MS RFC 63: Built-in OpenLayers map viewer
> * MS RFC 66: Better handling of temporary files
> * MS RFC 67: Enable/Disable Layers in OGC Web Services
> * MS RFC 68: Support for combining features from multiple layers
> * MS RFC 69: Support for clustering of features in point layers
>
> (RFCs are available online at http://mapserver.org/development/rfc/)
>
> As usual there an a large number of additional small enhancements and
> bug fixes. For a complete list see the HISTORY.TXT file at:
>
>
> http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT
>
> We have started working on a 5.6 -> 6.0 migration guide. This document
> contains important notes on backwards incompatibilities or other
> changes required when upgrading to 6.0. It is not complete yet but we
> strongly recommend that you review the latest version online at:
>
> http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
>
>
> The source for this release can be downloaded at:
>
> http://mapserver.org/download.html
> or
> http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz
>
> The binary distributions listed in the download page should be updated
> with binaries for the new 6.0.0-beta1 release in the next day or so.
>
>
> This is the first of four planned beta releases and if all goes well a
> final release should occur around the end of April. The full release
> plan can be viewed at:
>
> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
>
> Once again we need your help to ensure a high quality product,
> especially for this beta due to its timing with next week's Code
> Sprint, so please help out by testing your applications with this new
> code base.
>
> Thanks! - The MapServer Team
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
http://users.ntua.gr/tzotsos
From andy at squeakycode.net Thu Mar 10 14:51:42 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 16:51:42 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D795304.4050007@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D790B77.9020502@squeakycode.net> <4D793A92.3020907@swoodbridge.com> <4D794354.7070203@dmsolutions.ca>
<4D795304.4050007@squeakycode.net>
Message-ID: <4D7955FE.8030701@squeakycode.net>
On 3/10/2011 4:39 PM, Andy Colson wrote:
>> On 10/03/2011 3:54 PM, Stephen Woodbridge wrote:
>>> A couple of points on this, MS6.0 no longer has a GD driver? is this
>>> correct? if so, then:
>>> a. need to add to migration guide
>>> b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
>>> c. mapfile parsing should throw an error ob DRIVER 'GD/...'
>>>
>>> -Steve W
>>>
>
> On 3/10/2011 3:32 PM, Yewondwossen Assefa wrote:
> > GD is still there . It is still there and does 8bit png and gif.
> >
>
>
> Well, then I think somethings wrong. I cannot get GD to work at all, and
> I cannot get it to use anything else:
>
> andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.jpg -i jpeg
> loadOutputFormat(): General error message. OUTPUTFORMAT clause
> references driver GD/JPEG, but this driver isn't configured.
>
> andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i jpg
> loadOutputFormat(): General error message. OUTPUTFORMAT clause
> references driver GD/JPEG, but this driver isn't configured.
>
> -- yes, bob2 is defined as an outputform in my .map file as AGG/PNG
>
> andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i bob2
> loadOutputFormat(): General error message. OUTPUTFORMAT clause
> references driver GD/JPEG, but this driver isn't configured.
>
> andy at mapper:/pub/maps$ shp2img -m blueearthmn.map -o tmp.png -i png
> loadOutputFormat(): General error message. OUTPUTFORMAT clause
> references driver GD/JPEG, but this driver isn't configured.
>
> Does not seem to matter what I have in the .map file... nothing works.
>
> And I did compile GD in, why why wont it use it?
>
> -Andy
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
BA! I was editing blueearthmn2.map but shp2img'ing blueearthmn.map
but still, I cannot get GD to work at all. And it seems like the
outputFormats are colliding. If I define:
OUTPUTFORMAT
NAME "bob2"
DRIVER 'AGG/PNG'
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
I can use bob2, but if I name it agg or aggpng24 (or whatever) it has
problems. (same with jpeg and jpg, cant seem to use em) If I use
anything "standard" I get an empty image back. Meaning zero byte file.
(from perl mapscript). Using bob2 I can get an image back, and it
looks nice.
-Andy
From jmckenna at gatewaygeomatics.com Thu Mar 10 15:06:37 2011
From: jmckenna at gatewaygeomatics.com (Jeff McKenna)
Date: Thu, 10 Mar 2011 19:06:37 -0400
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D792FAE.9050805@gatewaygeomatics.com>
References: <4D783BDA.5060600@mapgears.com>
<4D792FAE.9050805@gatewaygeomatics.com>
Message-ID: <4D79597D.4050907@gatewaygeomatics.com>
I must not be the only one wanting to test the Cairo PDF output in
6.0...and I thought I'd end the day with something positive: it looks
nice and it is easy to test! :)
Verify that you have the support required in your local MapServer build
by executing "mapserv -v" and making sure the response contains
"SUPPORTS=CAIRO".
Then simply change IMAGETYPE in your mapfile to "pdf", and test with a
shp2img command (shp2img -m test.map -o test.pdf) et voila!
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
From armin.burger at gmx.net Thu Mar 10 15:29:47 2011
From: armin.burger at gmx.net (Armin Burger)
Date: Fri, 11 Mar 2011 00:29:47 +0100
Subject: [mapserver-users] MapServer 6 and KML outputformat
Message-ID: <4D795EEB.2030709@gmx.net>
Hi all
the outputformat KML in the new MS 6 is quite nice and it allows easy
and flexible data export to KML especially via Mapscript. But the
implementation of the export of data attributes could be improved IMHO.
Currently the fields/items of the layers (defined under map file
METADATA KML_INCLUDE_ITEMS) are exported to a KML tag ""
and inserted as HTML table. While this is of course possible, a cleander
way would be how GDAL/OGR exports the attributes:
GDAL/OGR uses the tag and places the attribute values in
tags, like
...
Berlin
3899412
DE
This leads to a much better display in Google Earth.
In addition to the KML_INCLUDE_ITEMS, another possibility to define a
field/item used in KML for the tag would be useful, like OGR
allows this via the NameField option. So maybe a METADATA definition
like KML_NAME_FIELD could do this.
Best regards
Armin
From andy at squeakycode.net Thu Mar 10 17:16:10 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 19:16:10 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D783BDA.5060600@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
Message-ID: <4D7977DA.6080709@squeakycode.net>
On 03/09/2011 08:47 PM, Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
I cannot seem to get opengl to work.
a stacktrace of shp2img:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
(gdb) backtrace
#0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
#1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned int, colorObj*) ()
#2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*, colorObj*) ()
#3 0x000000000044cd26 in msPrepareImage ()
#4 0x000000000044ce75 in msDrawMap ()
#5 0x0000000000415067 in main ()
(gdb)
MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
I dont need special video card and/or drivers, do I? And I'm not running X. Dont need to, do I?
-Andy
From Phil.Anzel at ftc.usda.gov Thu Mar 10 17:24:18 2011
From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO)
Date: Thu, 10 Mar 2011 19:24:18 -0600
Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1
release
Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
All,
I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
Can you help?
Thanks,
- Phil Anzel
Web Soil Survey development team
Vistronix Inc. for USDA/NRCS/ITC
..... start of map file .....
MAP
OUTPUTFORMAT
NAME 'pnga'
MIMETYPE 'image/pnga'
DRIVER 'AGG/PNG'
EXTENSION 'png'
IMAGEMODE 'RGBA'
TRANSPARENT TRUE
FORMATOPTION 'INTERLACE=OFF'
END
STATUS ON
SIZE 954 589
EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
RESOLUTION 70
UNITS METERS
IMAGECOLOR 255 255 255
PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
symbol
name 'circle' filled true type ellipse points 0 0 1 1 end
end
LAYER
NAME 'single line'
STATUS ON
TYPE LINE
feature points -11760750 5057520 -11752920 5062330 end end
CLASS
style
symbol 'circle'
size 20
color 255 255 0
outlinecolor 255 0 0
end
style
width 1
color 0 0 255
end
end
END # end of layer 'single line'
END # end of MAP
..... end of map file .....
From andy at squeakycode.net Thu Mar 10 18:02:49 2011
From: andy at squeakycode.net (Andy Colson)
Date: Thu, 10 Mar 2011 20:02:49 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D7977DA.6080709@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D7977DA.6080709@squeakycode.net>
Message-ID: <4D7982C9.4050601@squeakycode.net>
On 03/10/2011 07:16 PM, Andy Colson wrote:
> On 03/09/2011 08:47 PM, Daniel Morissette wrote:
>> The MapServer Team is pleased to announce the release of MapServer 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>
>
> I cannot seem to get opengl to work.
>
> a stacktrace of shp2img:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
> (gdb) backtrace
> #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
> #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned int, colorObj*) ()
> #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*, colorObj*) ()
> #3 0x000000000044cd26 in msPrepareImage ()
> #4 0x000000000044ce75 in msDrawMap ()
> #5 0x0000000000415067 in main ()
> (gdb)
>
>
>
> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
> I dont need special video card and/or drivers, do I? And I'm not running X. Dont need to, do I?
>
> -Andy
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
To reply to myself, after some googling, it looks like yes, X is needed.
Which kinda sucks. This is a webserver, it runs apache and postgresql. In a rack someplace. Doesn't even have a monitor attached. If I ever need to do something I ssh in.
Its also has a crappy video card. Cuz its a server. Never thought I'd need good video.
So here is my delima: do I buy a $80 video card, and run X, so I can get hardware accelerated maps? Is it worth it? Is it that much faster?
How many concurrent maps can be drawn at once? If 10 people hit my website can all 10 images be rendered at once? Or will one run and the others error out? Is there an upper limit for the number of concurrent renderings?
Any benchmarks?
-Andy
From thomas.bonfort at gmail.com Fri Mar 11 03:10:54 2011
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 11 Mar 2011 12:10:54 +0100
Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1
release
In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
References:
<809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
Message-ID:
Phil,
what kind of symbology are you trying to obtain. I suspect you're
aiming for a thick line, which now does not require the use of a
symbol, but rather:
style
width 20
color 0 0 255
end
regards,
thomas
On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
wrote:
> All,
>
> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>
> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>
> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>
> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>
> Can you help?
>
> Thanks,
>
> - Phil Anzel
> ?Web Soil Survey development team
> ?Vistronix Inc. for USDA/NRCS/ITC
>
> ..... start of map file .....
>
> MAP
> ?OUTPUTFORMAT
> ? ?NAME 'pnga'
> ? ?MIMETYPE 'image/pnga'
> ? ?DRIVER 'AGG/PNG'
> ? ?EXTENSION 'png'
> ? ?IMAGEMODE 'RGBA'
> ? ?TRANSPARENT TRUE
> ? ?FORMATOPTION 'INTERLACE=OFF'
> ?END
> ?STATUS ON
> ?SIZE 954 589
> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
> ?RESOLUTION 70
> ?UNITS METERS
> ?IMAGECOLOR 255 255 255
> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>
> ?symbol
> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
> ?end
>
> ?LAYER
> ? ?NAME ?'single line'
> ? ?STATUS ON
> ? ?TYPE LINE
> ? ?feature points -11760750 5057520 -11752920 5062330 end end
> ? ?CLASS
> ? ? ?style
> ? ? ? ?symbol 'circle'
> ? ? ? ?size 20
> ? ? ? ?color 255 255 0
> ? ? ? ?outlinecolor 255 0 0
> ? ? ?end
> ? ? ?style
> ? ? ? ?width 1
> ? ? ? ?color 0 0 255
> ? ? ?end
> ? ?end
> ?END # end of layer 'single line'
> END ?# end of MAP
>
> ..... end of map file .....
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From thomas.bonfort at gmail.com Fri Mar 11 03:20:41 2011
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 11 Mar 2011 12:20:41 +0100
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D7982C9.4050601@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D7977DA.6080709@squeakycode.net>
<4D7982C9.4050601@squeakycode.net>
Message-ID:
Andy,
yes a (beefy) video card is needed or at least wanted, as you want to
offset the calculations to the GPU. If one isn't present, you're going
to fall back to a software opengl implementation which will be orders
of magnitude slower than what AGG is going to take.
cc-ing Toby if he wants to comment further on this.
regards,
thomas
On Fri, Mar 11, 2011 at 03:02, Andy Colson wrote:
> On 03/10/2011 07:16 PM, Andy Colson wrote:
>>
>> On 03/09/2011 08:47 PM, Daniel Morissette wrote:
>>>
>>> The MapServer Team is pleased to announce the release of MapServer
>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>>
>>
>> I cannot seem to get opengl to work.
>>
>> a stacktrace of shp2img:
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
>> (gdb) backtrace
>> #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
>> #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned
>> int, colorObj*) ()
>> #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*,
>> colorObj*) ()
>> #3 0x000000000044cd26 in msPrepareImage ()
>> #4 0x000000000044ce75 in msDrawMap ()
>> #5 0x0000000000415067 in main ()
>> (gdb)
>>
>>
>>
>> MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
>> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL SUPPORTS=FREETYPE
>> SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR
>> INPUT=GDAL INPUT=SHAPEFILE
>>
>> I dont need special video card and/or drivers, do I? And I'm not running
>> X. Dont need to, do I?
>>
>> -Andy
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> To reply to myself, after some googling, it looks like yes, X is needed.
>
> Which kinda sucks. ?This is a webserver, it runs apache and postgresql. ?In
> a rack someplace. ?Doesn't even have a monitor attached. ?If I ever need to
> do something I ssh in.
>
> Its also has a crappy video card. ?Cuz its a server. ?Never thought I'd need
> good video.
>
> So here is my delima: do I buy a $80 video card, and run X, so I can get
> hardware accelerated maps? ?Is it worth it? ?Is it that much faster?
>
> How many concurrent maps can be drawn at once? ?If 10 people hit my website
> can all 10 images be rendered at once? ?Or will one run and the others error
> out? ?Is there an upper limit for the number of concurrent renderings?
>
> Any benchmarks?
>
> -Andy
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From thomas.bonfort at gmail.com Fri Mar 11 03:17:20 2011
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 11 Mar 2011 12:17:20 +0100
Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1
release
In-Reply-To:
References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
Message-ID:
huh, I may have misinterpreted...
you can't expect to obtain a point/marker symbology when using a line geometry.
if you effectively want to use marker symbols, you can have a look RFC
48 and its
GEOMTRANSFORM "start|end|vertices" transformations.
--
thomas
On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote:
> Phil,
>
> what kind of symbology are you trying to obtain. I suspect you're
> aiming for a thick line, which now does not require the use of a
> symbol, but rather:
>
> style
> ?width 20
> ?color 0 0 255
> end
>
> regards,
> thomas
>
> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
> wrote:
>> All,
>>
>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>>
>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>>
>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>>
>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>>
>> Can you help?
>>
>> Thanks,
>>
>> - Phil Anzel
>> ?Web Soil Survey development team
>> ?Vistronix Inc. for USDA/NRCS/ITC
>>
>> ..... start of map file .....
>>
>> MAP
>> ?OUTPUTFORMAT
>> ? ?NAME 'pnga'
>> ? ?MIMETYPE 'image/pnga'
>> ? ?DRIVER 'AGG/PNG'
>> ? ?EXTENSION 'png'
>> ? ?IMAGEMODE 'RGBA'
>> ? ?TRANSPARENT TRUE
>> ? ?FORMATOPTION 'INTERLACE=OFF'
>> ?END
>> ?STATUS ON
>> ?SIZE 954 589
>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
>> ?RESOLUTION 70
>> ?UNITS METERS
>> ?IMAGECOLOR 255 255 255
>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>>
>> ?symbol
>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
>> ?end
>>
>> ?LAYER
>> ? ?NAME ?'single line'
>> ? ?STATUS ON
>> ? ?TYPE LINE
>> ? ?feature points -11760750 5057520 -11752920 5062330 end end
>> ? ?CLASS
>> ? ? ?style
>> ? ? ? ?symbol 'circle'
>> ? ? ? ?size 20
>> ? ? ? ?color 255 255 0
>> ? ? ? ?outlinecolor 255 0 0
>> ? ? ?end
>> ? ? ?style
>> ? ? ? ?width 1
>> ? ? ? ?color 0 0 255
>> ? ? ?end
>> ? ?end
>> ?END # end of layer 'single line'
>> END ?# end of MAP
>>
>> ..... end of map file .....
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
From Steve.Lime at state.mn.us Fri Mar 11 05:29:47 2011
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Fri, 11 Mar 2011 07:29:47 -0600
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
In-Reply-To: <4D7954BF.2040006@squeakycode.net>
References: <4D783BDA.5060600@mapgears.com> <4D790CB9.8010905@squeakycode.net>
,
<4D7954BF.2040006@squeakycode.net>
Message-ID:
This is fixed in svn. See http://trac.osgeo.org/mapserver/ticket/3727.
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson [andy at squeakycode.net]
Sent: Thursday, March 10, 2011 4:46 PM
To: Lime, Steve D (DNR)
Cc: mapserver-users; Daniel Morissette
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson
> Sent: Thursday, March 10, 2011 11:39 AM
> To: Daniel Morissette
> Cc: mapserver-users
> Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
>
> On 3/9/2011 8:47 PM, Daniel Morissette wrote:
>> The MapServer Team is pleased to announce the release of MapServer
>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
>
> My mapfile has:
>
> LABEL
> TYPE truetype
> FONT "Vera"
> SIZE 10
> COLOR 255 255 255
> OUTLINECOLOR 0 61 245
> BUFFER 3
> ANGLE [txt_angle]
> POSITION cc
> PARTIALS false
> END
>
> I get error:
>
> ERROR: 4:Parsing error near (txt_angle):(line 164):getSymbol()
>
> (the line number is correct... that's very nice)
>
> -Andy
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
On 3/10/2011 3:18 PM, Lime, Steve D (DNR) wrote:
> Hmm... Is the mapfile being loaded through MapScript or CGI/sh2img?
Will have a look.
>
> THANKS FOR TESTING!!!
>
> Steve
>
Both fail. Here is the map file. It uses postGis, hopefully it'll die
parsing before you actually need to hit the db.
-Andy
From thomas.bonfort at gmail.com Fri Mar 11 05:43:41 2011
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 11 Mar 2011 14:43:41 +0100
Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1
release
In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov>
References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov>
Message-ID:
for a tie symbol you should specify a (negative) GAP.
something like:
http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256
is obtained with
SYMBOL
NAME "rail"
TYPE TRUETYPE
FONT sc
CHARACTER '|'
GAP -3
END
...
STYLE
WIDTH 2
OUTLINEWIDTH 1
OUTLINECOLOR "#555554"
COLOR "#ffffff"
END
STYLE
SYMBOL rail
SIZE 5
COLOR "#555554"
END
On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO
wrote:
> Hi, Thomas,
>
> Thanks for looking into this problem.
>
> My goal is to create a "railroad" cross-hatching along a line. I originally used:
> ? ?SYMBOL
> ? ? ?NAME 'default'
> ? ? ?Type simple
> ? ?END
> ? ?SYMBOL
> ? ? ?NAME 'tie'
> ? ? ?TYPE vector
> ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END
> ? ?END
> These were referenced, within a layer of type "line", by:
> ? CLASS
> ? ? STYLE
> ? ? ? SYMBOL ? ? ? ? ? ?'default'
> ? ? ? SIZE ? ? ? ? ? ? ?1
> ? ? ? COLOR ? ? ? ? ? ? 0 0 0
> ? ? END
> ? ? STYLE
> ? ? ?SYMBOL ? ? ? ? ? ? 'tie'
> ? ? ?SIZE ? ? ? ? ? ? ? 8
> ? ? ?COLOR ? ? ? ? ? ? ?0 0 0
> ? ? END
> ? END
>
> This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects".
>
> Closer to the 2.4.3 example, if I define:
> ?symbol
> ? ?name 'circle'
> ? ?filled true
> ? ?type ellipse
> ? ?points 0 0 1 1 end
> ?end
> and reference this definition, as per the example, with:
> ? ? style
> ? ? ? symbol "circle"
> ? ? ? color 178 114 1
> ? ? ? size 15
> ? ? end
> ? ? style
> ? ? ? symbol "circle"
> ? ? ? color 254 161 0
> ? ? ? size 7
> ? ? end
> then there is no image created.
>
> Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error.
>
> Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn?
>
> Thanks again.
>
> - Phil
>
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Friday, March 11, 2011 4:17 AM
> To: Anzel, Phil - Fort Collins, CO
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>
> huh, I may have misinterpreted...
>
> you can't expect to obtain a point/marker symbology when using a line geometry.
>
> if you effectively want to use marker symbols, you can have a look RFC
> 48 and its
> ?GEOMTRANSFORM "start|end|vertices" transformations.
>
> --
> thomas
>
> On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote:
>> Phil,
>>
>> what kind of symbology are you trying to obtain. I suspect you're
>> aiming for a thick line, which now does not require the use of a
>> symbol, but rather:
>>
>> style
>> ?width 20
>> ?color 0 0 255
>> end
>>
>> regards,
>> thomas
>>
>> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
>> wrote:
>>> All,
>>>
>>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>>>
>>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>>>
>>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>>>
>>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>>>
>>> Can you help?
>>>
>>> Thanks,
>>>
>>> - Phil Anzel
>>> ?Web Soil Survey development team
>>> ?Vistronix Inc. for USDA/NRCS/ITC
>>>
>>> ..... start of map file .....
>>>
>>> MAP
>>> ?OUTPUTFORMAT
>>> ? ?NAME 'pnga'
>>> ? ?MIMETYPE 'image/pnga'
>>> ? ?DRIVER 'AGG/PNG'
>>> ? ?EXTENSION 'png'
>>> ? ?IMAGEMODE 'RGBA'
>>> ? ?TRANSPARENT TRUE
>>> ? ?FORMATOPTION 'INTERLACE=OFF'
>>> ?END
>>> ?STATUS ON
>>> ?SIZE 954 589
>>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
>>> ?RESOLUTION 70
>>> ?UNITS METERS
>>> ?IMAGECOLOR 255 255 255
>>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>>>
>>> ?symbol
>>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
>>> ?end
>>>
>>> ?LAYER
>>> ? ?NAME ?'single line'
>>> ? ?STATUS ON
>>> ? ?TYPE LINE
>>> ? ?feature points -11760750 5057520 -11752920 5062330 end end
>>> ? ?CLASS
>>> ? ? ?style
>>> ? ? ? ?symbol 'circle'
>>> ? ? ? ?size 20
>>> ? ? ? ?color 255 255 0
>>> ? ? ? ?outlinecolor 255 0 0
>>> ? ? ?end
>>> ? ? ?style
>>> ? ? ? ?width 1
>>> ? ? ? ?color 0 0 255
>>> ? ? ?end
>>> ? ?end
>>> ?END # end of layer 'single line'
>>> END ?# end of MAP
>>>
>>> ..... end of map file .....
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>
From Phil.Anzel at ftc.usda.gov Fri Mar 11 05:35:38 2011
From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO)
Date: Fri, 11 Mar 2011 07:35:38 -0600
Subject: [mapserver-users] Symbol not showing up in MapServer
6.0.0-beta1 release
In-Reply-To:
References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov>
Hi, Thomas,
Thanks for looking into this problem.
My goal is to create a "railroad" cross-hatching along a line. I originally used:
SYMBOL
NAME 'default'
Type simple
END
SYMBOL
NAME 'tie'
TYPE vector
POINTS 0 0 0 7 -99 -99 7 0 7 7 END
END
These were referenced, within a layer of type "line", by:
CLASS
STYLE
SYMBOL 'default'
SIZE 1
COLOR 0 0 0
END
STYLE
SYMBOL 'tie'
SIZE 8
COLOR 0 0 0
END
END
This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects".
Closer to the 2.4.3 example, if I define:
symbol
name 'circle'
filled true
type ellipse
points 0 0 1 1 end
end
and reference this definition, as per the example, with:
style
symbol "circle"
color 178 114 1
size 15
end
style
symbol "circle"
color 254 161 0
size 7
end
then there is no image created.
Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error.
Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn?
Thanks again.
- Phil
-----Original Message-----
From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Sent: Friday, March 11, 2011 4:17 AM
To: Anzel, Phil - Fort Collins, CO
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
huh, I may have misinterpreted...
you can't expect to obtain a point/marker symbology when using a line geometry.
if you effectively want to use marker symbols, you can have a look RFC
48 and its
GEOMTRANSFORM "start|end|vertices" transformations.
--
thomas
On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote:
> Phil,
>
> what kind of symbology are you trying to obtain. I suspect you're
> aiming for a thick line, which now does not require the use of a
> symbol, but rather:
>
> style
> ?width 20
> ?color 0 0 255
> end
>
> regards,
> thomas
>
> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
> wrote:
>> All,
>>
>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>>
>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>>
>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>>
>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>>
>> Can you help?
>>
>> Thanks,
>>
>> - Phil Anzel
>> ?Web Soil Survey development team
>> ?Vistronix Inc. for USDA/NRCS/ITC
>>
>> ..... start of map file .....
>>
>> MAP
>> ?OUTPUTFORMAT
>> ? ?NAME 'pnga'
>> ? ?MIMETYPE 'image/pnga'
>> ? ?DRIVER 'AGG/PNG'
>> ? ?EXTENSION 'png'
>> ? ?IMAGEMODE 'RGBA'
>> ? ?TRANSPARENT TRUE
>> ? ?FORMATOPTION 'INTERLACE=OFF'
>> ?END
>> ?STATUS ON
>> ?SIZE 954 589
>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
>> ?RESOLUTION 70
>> ?UNITS METERS
>> ?IMAGECOLOR 255 255 255
>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>>
>> ?symbol
>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
>> ?end
>>
>> ?LAYER
>> ? ?NAME ?'single line'
>> ? ?STATUS ON
>> ? ?TYPE LINE
>> ? ?feature points -11760750 5057520 -11752920 5062330 end end
>> ? ?CLASS
>> ? ? ?style
>> ? ? ? ?symbol 'circle'
>> ? ? ? ?size 20
>> ? ? ? ?color 255 255 0
>> ? ? ? ?outlinecolor 255 0 0
>> ? ? ?end
>> ? ? ?style
>> ? ? ? ?width 1
>> ? ? ? ?color 0 0 255
>> ? ? ?end
>> ? ?end
>> ?END # end of layer 'single line'
>> END ?# end of MAP
>>
>> ..... end of map file .....
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
From Phil.Anzel at ftc.usda.gov Fri Mar 11 06:07:52 2011
From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO)
Date: Fri, 11 Mar 2011 08:07:52 -0600
Subject: [mapserver-users] Symbol not showing up in MapServer
6.0.0-beta1 release
In-Reply-To:
References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov>
Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov>
Thomas,
Thanks yet again. I tried your suggestion and it looks quite nice.
If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1.
- Phil
-----Original Message-----
From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Sent: Friday, March 11, 2011 6:44 AM
To: Anzel, Phil - Fort Collins, CO
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
for a tie symbol you should specify a (negative) GAP.
something like:
http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256
is obtained with
SYMBOL
NAME "rail"
TYPE TRUETYPE
FONT sc
CHARACTER '|'
GAP -3
END
...
STYLE
WIDTH 2
OUTLINEWIDTH 1
OUTLINECOLOR "#555554"
COLOR "#ffffff"
END
STYLE
SYMBOL rail
SIZE 5
COLOR "#555554"
END
On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO
wrote:
> Hi, Thomas,
>
> Thanks for looking into this problem.
>
> My goal is to create a "railroad" cross-hatching along a line. I originally used:
> ? ?SYMBOL
> ? ? ?NAME 'default'
> ? ? ?Type simple
> ? ?END
> ? ?SYMBOL
> ? ? ?NAME 'tie'
> ? ? ?TYPE vector
> ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END
> ? ?END
> These were referenced, within a layer of type "line", by:
> ? CLASS
> ? ? STYLE
> ? ? ? SYMBOL ? ? ? ? ? ?'default'
> ? ? ? SIZE ? ? ? ? ? ? ?1
> ? ? ? COLOR ? ? ? ? ? ? 0 0 0
> ? ? END
> ? ? STYLE
> ? ? ?SYMBOL ? ? ? ? ? ? 'tie'
> ? ? ?SIZE ? ? ? ? ? ? ? 8
> ? ? ?COLOR ? ? ? ? ? ? ?0 0 0
> ? ? END
> ? END
>
> This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects".
>
> Closer to the 2.4.3 example, if I define:
> ?symbol
> ? ?name 'circle'
> ? ?filled true
> ? ?type ellipse
> ? ?points 0 0 1 1 end
> ?end
> and reference this definition, as per the example, with:
> ? ? style
> ? ? ? symbol "circle"
> ? ? ? color 178 114 1
> ? ? ? size 15
> ? ? end
> ? ? style
> ? ? ? symbol "circle"
> ? ? ? color 254 161 0
> ? ? ? size 7
> ? ? end
> then there is no image created.
>
> Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error.
>
> Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn?
>
> Thanks again.
>
> - Phil
>
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Friday, March 11, 2011 4:17 AM
> To: Anzel, Phil - Fort Collins, CO
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>
> huh, I may have misinterpreted...
>
> you can't expect to obtain a point/marker symbology when using a line geometry.
>
> if you effectively want to use marker symbols, you can have a look RFC
> 48 and its
> ?GEOMTRANSFORM "start|end|vertices" transformations.
>
> --
> thomas
>
> On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote:
>> Phil,
>>
>> what kind of symbology are you trying to obtain. I suspect you're
>> aiming for a thick line, which now does not require the use of a
>> symbol, but rather:
>>
>> style
>> ?width 20
>> ?color 0 0 255
>> end
>>
>> regards,
>> thomas
>>
>> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
>> wrote:
>>> All,
>>>
>>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>>>
>>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>>>
>>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>>>
>>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>>>
>>> Can you help?
>>>
>>> Thanks,
>>>
>>> - Phil Anzel
>>> ?Web Soil Survey development team
>>> ?Vistronix Inc. for USDA/NRCS/ITC
>>>
>>> ..... start of map file .....
>>>
>>> MAP
>>> ?OUTPUTFORMAT
>>> ? ?NAME 'pnga'
>>> ? ?MIMETYPE 'image/pnga'
>>> ? ?DRIVER 'AGG/PNG'
>>> ? ?EXTENSION 'png'
>>> ? ?IMAGEMODE 'RGBA'
>>> ? ?TRANSPARENT TRUE
>>> ? ?FORMATOPTION 'INTERLACE=OFF'
>>> ?END
>>> ?STATUS ON
>>> ?SIZE 954 589
>>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
>>> ?RESOLUTION 70
>>> ?UNITS METERS
>>> ?IMAGECOLOR 255 255 255
>>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>>>
>>> ?symbol
>>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
>>> ?end
>>>
>>> ?LAYER
>>> ? ?NAME ?'single line'
>>> ? ?STATUS ON
>>> ? ?TYPE LINE
>>> ? ?feature points -11760750 5057520 -11752920 5062330 end end
>>> ? ?CLASS
>>> ? ? ?style
>>> ? ? ? ?symbol 'circle'
>>> ? ? ? ?size 20
>>> ? ? ? ?color 255 255 0
>>> ? ? ? ?outlinecolor 255 0 0
>>> ? ? ?end
>>> ? ? ?style
>>> ? ? ? ?width 1
>>> ? ? ? ?color 0 0 255
>>> ? ? ?end
>>> ? ?end
>>> ?END # end of layer 'single line'
>>> END ?# end of MAP
>>>
>>> ..... end of map file .....
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>
From joanne.mcgraw at SYMPATICO.CA Fri Mar 11 07:52:23 2011
From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName)
Date: Fri, 11 Mar 2011 07:52:23 -0800 (PST)
Subject: [mapserver-users] Re: SLD parameter in GetMap and GetLegendGraphic
requests
In-Reply-To: <1299707195382-6155608.post@n2.nabble.com>
References: <1299707195382-6155608.post@n2.nabble.com>
Message-ID: <1299858743779-6161896.post@n2.nabble.com>
Okay, well, it was worth a shot...
We are moving the location of dynamically-generated SLDs to a
publicly-accessible area of our website. They will be remote from the
Shapefiles they are used for, but we'll survive.
I thought I should add a final comment to provide (what appears to be) the
only resolution in case someone else is trying to find a way around the same
thing in future.
Cheers all,
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/SLD-parameter-in-GetMap-and-GetLegendGraphic-requests-tp6155608p6161896.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From joanne.mcgraw at SYMPATICO.CA Fri Mar 11 08:05:24 2011
From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName)
Date: Fri, 11 Mar 2011 08:05:24 -0800 (PST)
Subject: [mapserver-users] Re: WMS w/SLD - Can I get rid of the labels
returned with a GetLegendGraphic request?
In-Reply-To: <1299623823709-6146892.post@n2.nabble.com>
References: <1299623638820-6146719.post@n2.nabble.com>
<1299623823709-6146892.post@n2.nabble.com>
Message-ID: <1299859524604-6161941.post@n2.nabble.com>
Another one bites the dust....I guess this one isn't possible as asked
either.
I did want to let any future readers know what we have done to address this
is create a "legend generator" (for lack of a better term) web service that
uses a getStyles request for a given layer, parses the SLD and generates
image files representing each rule. Then, it builds a JSON object with all
the details to build the legend presentation in whatever client calls it
(including the paths to the legend icons). The client can decide if it wants
to display the text that goes with a given legend icon itself.
Cheers all,
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-w-SLD-Can-I-get-rid-of-the-labels-returned-with-a-GetLegendGraphic-request-tp6146719p6161941.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From peter.hopfgartner at r3-gis.com Fri Mar 11 08:11:04 2011
From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner)
Date: Fri, 11 Mar 2011 17:11:04 +0100 (CET)
Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Message-ID: <20110311161104.ED9D71678235@mail.r3-gis.com>
Hi Daniel
--------Daniel Morissette wrote--------
Subject: Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
Date: 10.03.2011 20:05
>Hi Peter,
>
>It is quite likely that you are using a SWIG version newer than 1.3.36.
>
CentOS comes with swig 1.3.29, which, I guess, is not recent enough. I tried to skip "make interface", but swig is run even without this. How can I avoid that swig regenerates the wrappers?
Anyway, having a closer look, it seems more that CCFLAGS was not build correctly, since it contains things like "@AGG_ENABLED@ @PDF_ENABLED@" which leads to the errors:
gcc: @AGG_ENABLED@: No such file or directory
gcc: @PDF_ENABLED@: No such file or directory
gcc: @PDF_INC@: No such file or directory
The others are just warnings.
>The Java SWIG wrappers work best with SWIG 1.3.36. The MapServer source
>package already contains SWIG wrappers generated using SWIG 1.3.36 so
>you could use that, or if you must regenerate them then I'd suggest that
>you try with SWIG 1.3.36.
>
>Daniel
>
Peter
R3 GIS Srl - GmbH
http://www.r3-gis.com
>
>On 11-03-10 02:02 PM, Peter Hopfgartner wrote:
>> While trying to build the package for CentOS 5.6, I stumble on Java
>support:
>>
>> + cd ../java
>> + JAVA_HOME=/usr/lib/jvm/java-1.6.0
>> + make interface
>> mkdir -p edu/umn/gis/mapscript
>> swig -java -package edu.umn.gis.mapscript -outdir edu/umn/gis/mapscript
>-o mapscript_wrap.c ../mapscript.i
>> + JAVA_HOME=/usr/lib/jvm/java-1.6.0
>> + make
>> javac edu/umn/gis/mapscript/*.java
>> gcc -fpic -c -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC
>-Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR
>-DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR
>-DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_JPEG -DUSE_GD_GIF -DUSE_GD_PNG
>-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW
>-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
>-DGD_HAS_GET_TRUE_COLOR_PIXEL @AGG_ENABLED@ @PDF_ENABLED@ -DUSE_OGR
>-DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS
>-DPOSTGIS_HAS_SERVER_VERSION -DUSE_MYGIS -DUSE_THREAD -I/usr/include
>-Irenderers/agg/include @PDF_INC@ -I/usr/include/php/ext/ereg/
>-I/usr/include/gdal -I/usr/include -I/usr/include/mysql -g -pipe
>-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
>--param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
>-D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -I/usr/include
>-I/usr/include/libxml2 -I/usr/l
>ib/jvm/java-1.6.0/include -I/usr/lib/jvm/java-1.6.0/include/linux
>-fno-strict-aliasing mapscript_wrap.c
>> gcc: @AGG_ENABLED@: No such file or directory
>> gcc: @PDF_ENABLED@: No such file or directory
>> gcc: @PDF_INC@: No such file or directory
>> mapscript_wrap.c: In function 'new_imageObj':
>> mapscript_wrap.c:2746: warning: passing argument 1 of
>'renderer->loadImageFromFile' discards qualifiers from pointer target type
>> mapscript_wrap.c: In function
>'Java_edu_umn_gis_mapscript_mapscriptJNI_imageObj_1getBytes':
>> mapscript_wrap.c:29157: warning: pointer targets in passing argument 2
>of 'SWIG_JavaArrayOutSchar' differ in signedness
>> mapscript_wrap.c: In function
>'Java_edu_umn_gis_mapscript_mapscriptJNI_msIO_1getStdoutBufferBytes':
>> mapscript_wrap.c:43772: warning: pointer targets in passing argument 2
>of 'SWIG_JavaArrayOutSchar' differ in signedness
>> make: *** [mapscript_so] Error 1
>> error: Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448
>(%build)
>>
>>
>> RPM build errors:
>> Bad exit status from /home/rpmbuild/rpmbuild/tmp/rpm-tmp.49448
>(%build)
>> [rpmbuild at rpm-devel ~]$
>>
>> Regards,
>>
>> Peter
>>
>> R3 GIS Srl - GmbH
>> http://www.r3-gis.com
>>
>>
>> --------Daniel Morissette wrote--------
>> Subject: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!
>> Date: 10.03.2011 03:48
>>
>>> The MapServer Team is pleased to announce the release of MapServer
>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>>
>>> This new release introduces important changes in key components of the
>>> MapServer core (rendering, query and expressions), and for this reason
>>> we count on you, MapServer power users, to help test the release in
>your
>>> respective environments and provide feedback (through the users list
>or
>>> Trac tickets).
>> (...)
>>>
>>> Thanks! - The MapServer Team
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>
>
>--
>Daniel Morissette
>http://www.mapgears.com/
>Provider of Professional MapServer Support since 2000
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
From joanne.mcgraw at SYMPATICO.CA Fri Mar 11 08:49:46 2011
From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName)
Date: Fri, 11 Mar 2011 08:49:46 -0800 (PST)
Subject: [mapserver-users] Another dynamic WMS server and WMC question -
dynamic Name anyone?
Message-ID: <1299862186148-6162084.post@n2.nabble.com>
Just looking for ideas regarding another dynamic WMS and WMC question ...
As described in other posts about this project I am working on, we have a
process that dynamically generates Shapefiles and then, using a "blank" Map
file acting as a WMS server, we do GetMap requests that include the DATA
path to the new file to add the individual vector layers to a single image.
We have another "blank" Map file that we use to print these layers. For this
we pass a WMC context that defines all the layers that should be included.
While I hope that background explanation is good enough for the purposes of
this post, if it is not, a more detailed description of this process
(including examples) can be found
at:http://osgeo-org.1803224.n2.nabble.com/mode-map-with-WMC-of-dynamic-lt-Layer-gt-failing-with-getString-error-td5824774.html#a5831237
Now, my problem...
The "blank" WMS server Map file has 3 layers in it: a point, a line and a
polygon. Each have their own unique name: "Point", "Line", "Polygon". When
we add a dynamic vector/WMS layer individually, the WMS GetMap request uses
that name to indicate which layer provides the basic configuration. When
that layer is added to the WMC for printing, that name is used as the value
of the Layer's Name entity in the LayerList to indicate which Map file layer
to use. All this is fine unless there are more than one of the same type of
layer added to the WMC. At that time, there are multiple LayerList Layers
with the same Name value (say, "Line") in the WMC.
So, my question is this...
Is there any way of dynamically assigning a name to a layer in the mapfile.
I really can't imagine that there is but am wondering if there's some way of
using something like the DATAPATTERN for a layer where, say, as long as the
format of characters match it will use that layer. Something like:
LAYER
NAME "line"
NAMEFORMAT "Line*"
STATUS ON
TYPE line
PROJECTION
"init=epsg:42304"
END
CLASS
COLOR 0 0 0
NAME "Some Line Layer"
END
METADATA
"wms_title" "Some Line Layer"
END
END
So that if I made a request as below it would resolve to figuring out what
the correct layer to use is but still allow that unique name to be used to
reference it:
http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/testing/dynamic.map&request=getMap&service=wms&version=1.1.1&map.layer[LineOfRoads]=DATA
?id3/vector?
END&layers=LineOfRoads&srs=EPSG:42304&bbox=-2338951,-800000,3008692,3900000&format=image/png&height=300&width=300
I don't really expect that it would actually work like this...the amount of
time necessary for processing and resolving requests would be prohibitive.
I'm just trying to suggest something that might convey what we're trying to
accomplish in the hopes of causing some creative juices to spill out there
and asking if anyone knows of any way (even an obscure one) that will allow
us to get unique Name values into the printing WMC.
Cheers,
jtm
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Another-dynamic-WMS-server-and-WMC-question-dynamic-Name-anyone-tp6162084p6162084.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From arlen.poort at gmail.com Fri Mar 11 09:10:25 2011
From: arlen.poort at gmail.com (Arlen Poort)
Date: Fri, 11 Mar 2011 18:10:25 +0100
Subject: [mapserver-users] Stunned by itemnquery, qstring etc.
Message-ID:
Dear listers,
I have searched the archives through and through, but I can't get a working
solution. I am trying to build a url to query Mapserver. But whatever I try,
I always get the same result, which are the contents of my EMPTY template,
as defined in my mapfile.
The url I've built is this one, which I hoped to give me a list of all items
starting with 'R':
http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv?
map=/var/www/fgs/chameleon/map/PS2011SB.map
&mode=itemnquery
&qlayer=Grootste2010
&qitem=Gemnaam
&qstring=/^R/
I've tried this one too, which I hoped would give me the item 'Rotterdam':
http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv?
map=/var/www/fgs/chameleon/map/PS2011SB.map
&mode=itemquery
&qlayer=Grootste2010
&qstring=('Gemnaam'='Rotterdam')
I also tried escaped characters (%5b and %3d etc,), but every result is the
same: nothing.
Can anyone please help me? (Documentation below.)
Thanks!
Arlen
You can find the complete application (in Openlayers) here:
http://mapserver.nrc-handelsblad.com/PS2011SB.html
************************************************************************************************************
My mapfile looks like this:
MAP
NAME TK2010
STATUS ON
SIZE 458 542
SYMBOLSET ../etc/symbols.sym
EXTENT 13000 305000 279000 620000
UNITS METERS
SHAPEPATH "../data"
IMAGECOLOR 255 255 255
FONTSET ../etc/fonts.txt
WEB
IMAGEPATH "/var/www/fgs/chameleon/htdocs/tmp/"
IMAGEURL "tmp/"
LOG "/tmp/gmap.log"
EMPTY "http://mapserver.nrc-handelsblad.com/empty.html"
METADATA
"wms_feature_info_mime_type" "text/html"
"wms_title" "WMS NRC TK2010"
"wms_onlineresource" "
http://mapserver.nrc-handelsblad.com/cgi-bin/mapserv?"
"wms_srs" "EPSG:28992 EPSG:4326 EPSG:900913"
END
END
LEGEND
IMAGECOLOR 255 255 255
KEYSIZE 20 14
POSITION ul
LABEL
FONT sans
TYPE TRUETYPE
SIZE 8
OFFSET 0 -2
END
STATUS off
END
PROJECTION
"proj=longlat"
"ellps=WGS84"
"datum=WGS84"
"no_defs"
END
OUTPUTFORMAT
NAME "aggpng24"
DRIVER AGG/PNG
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
QUERYMAP
STATUS on
STYLE hilite
COLOR 255 255 0
SIZE 320 160
END
SYMBOL
NAME "Stembureau"
TYPE ellipse
FILLED true
POINTS
1 1
END
END
LAYER
NAME "Grootste2010"
METADATA
"wms_feature_info_mime_type" "text/html"
"wms_title" "Grootste partij 2010"
"DESCRIPTION" "Verkiezingen TK2010"
"LAYER" "TK2010"
"qstring_validation_pattern" '.'
END
TYPE POINT
STATUS on
DATA "/var/www/fgs/chameleon/data/PS2011/PS2011stembureausDispWGS84.shp"
TOLERANCE 10
OPACITY 100
HEADER "PS2011SBheader.html"
TEMPLATE "PS2011SBquerytemplate.html"
FOOTER "PS2011SBfooter.html"
CLASS
STYLE
SYMBOL "Stembureau"
SIZE 9
COLOR 109 208 122
OUTLINECOLOR 52 162 67
END
MAXSCALEDENOM 5000000
END
END
*************************************************************************************************************
My querytemplate look like this:
[ID]
[SBNR]
[GEMNR]
[Gemnaam]
[SBNAAM]
(etc.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From yassefa at dmsolutions.ca Fri Mar 11 09:21:05 2011
From: yassefa at dmsolutions.ca (Yewondwossen Assefa)
Date: Fri, 11 Mar 2011 12:21:05 -0500
Subject: [mapserver-users] MapServer 6 and KML outputformat
In-Reply-To: <4D795EEB.2030709@gmx.net>
References: <4D795EEB.2030709@gmx.net>
Message-ID: <4D7A5A01.70503@dmsolutions.ca>
On 10/03/2011 6:29 PM, Armin Burger wrote:
> Currently the fields/items of the layers (defined under map file
> METADATA KML_INCLUDE_ITEMS) are exported to a KML tag ""
> and inserted as HTML table. While this is of course possible, a
> cleander way would be how GDAL/OGR exports the attributes:
>
> GDAL/OGR uses the tag and places the attribute values
> in tags, like
>
> ...
>
> Berlin
> 3899412
> DE
>
>
> This leads to a much better display in Google Earth.
>
I have added this in http://trac.osgeo.org/mapserver/ticket/3728 and
possibly address it before 6.0 or shortly after.
> In addition to the KML_INCLUDE_ITEMS, another possibility to define a
> field/item used in KML for the tag would be useful, like OGR
> allows this via the NameField option. So maybe a METADATA definition
> like KML_NAME_FIELD could do this.
The is added to the current svn and will be available for beta2 (ticket
). The docs are also
updated. Note that the metedata is KML_NAME_ITEM to follow other metada
names used.
best regards,
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: yassefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Phil.Anzel at ftc.usda.gov Fri Mar 11 09:25:59 2011
From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO)
Date: Fri, 11 Mar 2011 11:25:59 -0600
Subject: [mapserver-users] Symbol not showing up in MapServer
6.0.0-beta1 release
In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov>
References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov>
Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov>
Thomas and All,
A follow up: submitted as a tracker defect: http://trac.osgeo.org/mapserver/ticket/3729
The test map file is:
MAP
OUTPUTFORMAT
NAME 'pnga'
MIMETYPE 'image/pnga'
DRIVER 'AGG/PNG'
EXTENSION 'png'
IMAGEMODE 'RGBA'
TRANSPARENT TRUE
FORMATOPTION 'INTERLACE=OFF'
END
STATUS ON
SIZE 954 589
EXTENT 0 0 954 589
RESOLUTION 72
IMAGECOLOR 255 255 255
symbol
name 'circle' filled true type ellipse points 0 0 1 1 end
end
LAYER
NAME 'single line'
STATUS ON
TYPE LINE
feature points 10 10 950 580 end end
CLASS
style
symbol 'circle'
size 20
color 255 255 0
outlinecolor 255 0 0
end
style
width 1
color 0 0 255
end
end
END # end of layer 'single line'
END # end of MAP
The above map file works as desired under 5.6 and demonstrates the problem under 5.7/6.0.
- Phil
-----Original Message-----
From: Anzel, Phil - Fort Collins, CO
Sent: Friday, March 11, 2011 7:08 AM
To: thomas bonfort
Cc: mapserver-users at lists.osgeo.org; Anzel, Phil - Fort Collins, CO
Subject: RE: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
Thomas,
Thanks yet again. I tried your suggestion and it looks quite nice.
If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1.
- Phil
-----Original Message-----
From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Sent: Friday, March 11, 2011 6:44 AM
To: Anzel, Phil - Fort Collins, CO
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
for a tie symbol you should specify a (negative) GAP.
something like:
http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256
is obtained with
SYMBOL
NAME "rail"
TYPE TRUETYPE
FONT sc
CHARACTER '|'
GAP -3
END
...
STYLE
WIDTH 2
OUTLINEWIDTH 1
OUTLINECOLOR "#555554"
COLOR "#ffffff"
END
STYLE
SYMBOL rail
SIZE 5
COLOR "#555554"
END
On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO
wrote:
> Hi, Thomas,
>
> Thanks for looking into this problem.
>
> My goal is to create a "railroad" cross-hatching along a line. I originally used:
> ? ?SYMBOL
> ? ? ?NAME 'default'
> ? ? ?Type simple
> ? ?END
> ? ?SYMBOL
> ? ? ?NAME 'tie'
> ? ? ?TYPE vector
> ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END
> ? ?END
> These were referenced, within a layer of type "line", by:
> ? CLASS
> ? ? STYLE
> ? ? ? SYMBOL ? ? ? ? ? ?'default'
> ? ? ? SIZE ? ? ? ? ? ? ?1
> ? ? ? COLOR ? ? ? ? ? ? 0 0 0
> ? ? END
> ? ? STYLE
> ? ? ?SYMBOL ? ? ? ? ? ? 'tie'
> ? ? ?SIZE ? ? ? ? ? ? ? 8
> ? ? ?COLOR ? ? ? ? ? ? ?0 0 0
> ? ? END
> ? END
>
> This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects".
>
> Closer to the 2.4.3 example, if I define:
> ?symbol
> ? ?name 'circle'
> ? ?filled true
> ? ?type ellipse
> ? ?points 0 0 1 1 end
> ?end
> and reference this definition, as per the example, with:
> ? ? style
> ? ? ? symbol "circle"
> ? ? ? color 178 114 1
> ? ? ? size 15
> ? ? end
> ? ? style
> ? ? ? symbol "circle"
> ? ? ? color 254 161 0
> ? ? ? size 7
> ? ? end
> then there is no image created.
>
> Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error.
>
> Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn?
>
> Thanks again.
>
> - Phil
>
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Friday, March 11, 2011 4:17 AM
> To: Anzel, Phil - Fort Collins, CO
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>
> huh, I may have misinterpreted...
>
> you can't expect to obtain a point/marker symbology when using a line geometry.
>
> if you effectively want to use marker symbols, you can have a look RFC
> 48 and its
> ?GEOMTRANSFORM "start|end|vertices" transformations.
>
> --
> thomas
>
> On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote:
>> Phil,
>>
>> what kind of symbology are you trying to obtain. I suspect you're
>> aiming for a thick line, which now does not require the use of a
>> symbol, but rather:
>>
>> style
>> ?width 20
>> ?color 0 0 255
>> end
>>
>> regards,
>> thomas
>>
>> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
>> wrote:
>>> All,
>>>
>>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>>>
>>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>>>
>>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>>>
>>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>>>
>>> Can you help?
>>>
>>> Thanks,
>>>
>>> - Phil Anzel
>>> ?Web Soil Survey development team
>>> ?Vistronix Inc. for USDA/NRCS/ITC
>>>
>>> ..... start of map file .....
>>>
>>> MAP
>>> ?OUTPUTFORMAT
>>> ? ?NAME 'pnga'
>>> ? ?MIMETYPE 'image/pnga'
>>> ? ?DRIVER 'AGG/PNG'
>>> ? ?EXTENSION 'png'
>>> ? ?IMAGEMODE 'RGBA'
>>> ? ?TRANSPARENT TRUE
>>> ? ?FORMATOPTION 'INTERLACE=OFF'
>>> ?END
>>> ?STATUS ON
>>> ?SIZE 954 589
>>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
>>> ?RESOLUTION 70
>>> ?UNITS METERS
>>> ?IMAGECOLOR 255 255 255
>>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>>>
>>> ?symbol
>>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
>>> ?end
>>>
>>> ?LAYER
>>> ? ?NAME ?'single line'
>>> ? ?STATUS ON
>>> ? ?TYPE LINE
>>> ? ?feature points -11760750 5057520 -11752920 5062330 end end
>>> ? ?CLASS
>>> ? ? ?style
>>> ? ? ? ?symbol 'circle'
>>> ? ? ? ?size 20
>>> ? ? ? ?color 255 255 0
>>> ? ? ? ?outlinecolor 255 0 0
>>> ? ? ?end
>>> ? ? ?style
>>> ? ? ? ?width 1
>>> ? ? ? ?color 0 0 255
>>> ? ? ?end
>>> ? ?end
>>> ?END # end of layer 'single line'
>>> END ?# end of MAP
>>>
>>> ..... end of map file .....
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>
>
From thomas.bonfort at gmail.com Fri Mar 11 10:06:56 2011
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Fri, 11 Mar 2011 19:06:56 +0100
Subject: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1
release
In-Reply-To: <809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov>
References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov>
Message-ID:
Phil,
You're using the old version of drawing thick lines, that was needed
for GD. We'll have to decide at the codesprint if this is something
that we want to stop supporting, as this is something that we are
trailing along since 4.10. As I said in my first email, thick lines
are obtained with the WIDTH keyword.
As for vector symbols, there are known limitations actually, which we
will try to overcome during the codesprint - what's certain is we
won't be able to maintain backwards compatibility *and* expect
consistent rendering across renderers.
best regards,
thomas
On Fri, Mar 11, 2011 at 18:25, Anzel, Phil - Fort Collins, CO
wrote:
> Thomas and All,
>
> A follow up: submitted as a tracker defect: http://trac.osgeo.org/mapserver/ticket/3729
>
> The test map file is:
> MAP
> ?OUTPUTFORMAT
> ? ?NAME 'pnga'
> ? ?MIMETYPE 'image/pnga'
> ? ?DRIVER 'AGG/PNG'
> ? ?EXTENSION 'png'
> ? ?IMAGEMODE 'RGBA'
> ? ?TRANSPARENT TRUE
> ? ?FORMATOPTION 'INTERLACE=OFF'
> ?END
> ?STATUS ON
> ?SIZE 954 589
> ?EXTENT 0 0 954 589
> ?RESOLUTION 72
> ?IMAGECOLOR 255 255 255
>
> ?symbol
> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
> ?end
>
> ?LAYER
> ? ?NAME ?'single line'
> ? ?STATUS ON
> ? ?TYPE LINE
> ? ?feature points 10 10 950 580 end end
> ? ?CLASS
> ? ? ?style
> ? ? ? ?symbol 'circle'
> ? ? ? ?size 20
> ? ? ? ?color 255 255 0
> ? ? ? ?outlinecolor 255 0 0
> ? ? ?end
> ? ? ?style
> ? ? ? ?width 1
> ? ? ? ?color 0 0 255
> ? ? ?end
> ? ?end
> ?END # end of layer 'single line'
> END ?# end of MAP
>
> The above map file works as desired under 5.6 and demonstrates the problem under 5.7/6.0.
>
> - Phil
>
> -----Original Message-----
> From: Anzel, Phil - Fort Collins, CO
> Sent: Friday, March 11, 2011 7:08 AM
> To: thomas bonfort
> Cc: mapserver-users at lists.osgeo.org; Anzel, Phil - Fort Collins, CO
> Subject: RE: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>
> Thomas,
>
> Thanks yet again. I tried your suggestion and it looks quite nice.
>
> If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1.
>
> - Phil
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Friday, March 11, 2011 6:44 AM
> To: Anzel, Phil - Fort Collins, CO
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>
> for a tie symbol you should specify a (negative) GAP.
>
> something like:
> http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256
>
> is obtained with
>
> SYMBOL
> ? ?NAME "rail"
> ? ?TYPE TRUETYPE
> ? ?FONT sc
> ? ?CHARACTER '|'
> ? ?GAP -3
> END
>
> ...
>
> ? ? ? ?STYLE
> ? ? ? ? ? ?WIDTH 2
> ? ? ? ? ? ?OUTLINEWIDTH 1
> ? ? ? ? ? ?OUTLINECOLOR "#555554"
> ? ? ? ? ? ?COLOR "#ffffff"
> ? ? ? ?END
> ? ? ? ?STYLE
> ? ? ? ? ? ?SYMBOL rail
> ? ? ? ? ? ?SIZE 5
> ? ? ? ? ? ?COLOR "#555554"
> ? ? ? ?END
>
> On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO
> wrote:
>> Hi, Thomas,
>>
>> Thanks for looking into this problem.
>>
>> My goal is to create a "railroad" cross-hatching along a line. I originally used:
>> ? ?SYMBOL
>> ? ? ?NAME 'default'
>> ? ? ?Type simple
>> ? ?END
>> ? ?SYMBOL
>> ? ? ?NAME 'tie'
>> ? ? ?TYPE vector
>> ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END
>> ? ?END
>> These were referenced, within a layer of type "line", by:
>> ? CLASS
>> ? ? STYLE
>> ? ? ? SYMBOL ? ? ? ? ? ?'default'
>> ? ? ? SIZE ? ? ? ? ? ? ?1
>> ? ? ? COLOR ? ? ? ? ? ? 0 0 0
>> ? ? END
>> ? ? STYLE
>> ? ? ?SYMBOL ? ? ? ? ? ? 'tie'
>> ? ? ?SIZE ? ? ? ? ? ? ? 8
>> ? ? ?COLOR ? ? ? ? ? ? ?0 0 0
>> ? ? END
>> ? END
>>
>> This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects".
>>
>> Closer to the 2.4.3 example, if I define:
>> ?symbol
>> ? ?name 'circle'
>> ? ?filled true
>> ? ?type ellipse
>> ? ?points 0 0 1 1 end
>> ?end
>> and reference this definition, as per the example, with:
>> ? ? style
>> ? ? ? symbol "circle"
>> ? ? ? color 178 114 1
>> ? ? ? size 15
>> ? ? end
>> ? ? style
>> ? ? ? symbol "circle"
>> ? ? ? color 254 161 0
>> ? ? ? size 7
>> ? ? end
>> then there is no image created.
>>
>> Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error.
>>
>> Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn?
>>
>> Thanks again.
>>
>> - Phil
>>
>>
>> -----Original Message-----
>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
>> Sent: Friday, March 11, 2011 4:17 AM
>> To: Anzel, Phil - Fort Collins, CO
>> Cc: mapserver-users at lists.osgeo.org
>> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>>
>> huh, I may have misinterpreted...
>>
>> you can't expect to obtain a point/marker symbology when using a line geometry.
>>
>> if you effectively want to use marker symbols, you can have a look RFC
>> 48 and its
>> ?GEOMTRANSFORM "start|end|vertices" transformations.
>>
>> --
>> thomas
>>
>> On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote:
>>> Phil,
>>>
>>> what kind of symbology are you trying to obtain. I suspect you're
>>> aiming for a thick line, which now does not require the use of a
>>> symbol, but rather:
>>>
>>> style
>>> ?width 20
>>> ?color 0 0 255
>>> end
>>>
>>> regards,
>>> thomas
>>>
>>> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
>>> wrote:
>>>> All,
>>>>
>>>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>>>>
>>>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>>>>
>>>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>>>>
>>>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>>>>
>>>> Can you help?
>>>>
>>>> Thanks,
>>>>
>>>> - Phil Anzel
>>>> ?Web Soil Survey development team
>>>> ?Vistronix Inc. for USDA/NRCS/ITC
>>>>
>>>> ..... start of map file .....
>>>>
>>>> MAP
>>>> ?OUTPUTFORMAT
>>>> ? ?NAME 'pnga'
>>>> ? ?MIMETYPE 'image/pnga'
>>>> ? ?DRIVER 'AGG/PNG'
>>>> ? ?EXTENSION 'png'
>>>> ? ?IMAGEMODE 'RGBA'
>>>> ? ?TRANSPARENT TRUE
>>>> ? ?FORMATOPTION 'INTERLACE=OFF'
>>>> ?END
>>>> ?STATUS ON
>>>> ?SIZE 954 589
>>>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
>>>> ?RESOLUTION 70
>>>> ?UNITS METERS
>>>> ?IMAGECOLOR 255 255 255
>>>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>>>>
>>>> ?symbol
>>>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
>>>> ?end
>>>>
>>>> ?LAYER
>>>> ? ?NAME ?'single line'
>>>> ? ?STATUS ON
>>>> ? ?TYPE LINE
>>>> ? ?feature points -11760750 5057520 -11752920 5062330 end end
>>>> ? ?CLASS
>>>> ? ? ?style
>>>> ? ? ? ?symbol 'circle'
>>>> ? ? ? ?size 20
>>>> ? ? ? ?color 255 255 0
>>>> ? ? ? ?outlinecolor 255 0 0
>>>> ? ? ?end
>>>> ? ? ?style
>>>> ? ? ? ?width 1
>>>> ? ? ? ?color 0 0 255
>>>> ? ? ?end
>>>> ? ?end
>>>> ?END # end of layer 'single line'
>>>> END ?# end of MAP
>>>>
>>>> ..... end of map file .....
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>
>>
>
From Poteat.Brian at geoeye.com Wed Mar 9 06:17:55 2011
From: Poteat.Brian at geoeye.com (Brian Poteat)
Date: Wed, 9 Mar 2011 07:17:55 -0700
Subject: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
In-Reply-To:
References: <4B420E4877773244A5DE388033C7E800A0408E754C@MS1.geoeye.com>
Message-ID: <4B420E4877773244A5DE388033C7E800A0408E7AB8@MS1.geoeye.com>
Thanks Tamas,
I put together a solution that mimics what I am doing at a very simple level and I got it to error fairly easily.
This zip contains an example mapfile and the solution used to reproduce the setup. I just put everything in c:\tmp\test. The applications are .NET 4.0 WCF endpoints and will install as IIS web services (so obviously you?ll need the appropriate software to build/run).
http://dl.dropbox.com/u/649621/WcfMapScript.zip
If you build the solution and then execute the following service requests in order, at some point the requests no longer return correct data. Asking for one layer will return the other. Sometimes the results vary but usually just mixing up the requested layers on the two different services will cause strange behavior.
http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
http://localhost/MapScriptService/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L57&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
http://localhost/MapScriptService2/MapScriptService.svc/ms?mapfile=C:\tmp\test\map.map&LAYERS=L54&CRS=EPSG:4326&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&BBOX=60.999933182566,24.9997419977717,73.0167274,30.0446813&WIDTH=1032&HEIGHT=358
I apologize for the strange requests and images but I am a not really familiar with the mapfile format and just tried to reproduce the requests as closely as they were in a real environment.
Brian
From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: Tuesday, March 08, 2011 4:46 PM
To: Brian Poteat
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] MapScript issue in multiple WCF apps (ASP.NET)
Hi Brian,
Could you provide the sequence of the requests, a mapfile example, that can be used to reproduce this problem?
What do you mean by "configure them independently"? Different application pool for each service type?
Best regards,
Tamas
2011/3/8 Brian Poteat >
I have a very strange issue while using MapScript from within some web service projects. I have different projects/applications for different services ? one for each of WCF, WMS, WFS, and WMTS ? so we can configure them independently. MapScript requests work fine for all of them separately but if I access MapScript from one and then another, one of them will not work correctly anymore. The requests will return success (result == 0) and the format returned is correct but the data is either null or an incorrect image. It doesn?t seem to be a threading issue since I can bombard any one of the services with asynchronous requests and they are handled fine and the problems don?t necessarily come while using the different applications at the same time ? just one then the other.
I am using a support project for making the MS requests that is referenced by each application (though I tried putting the code directly in each app with the same results). Below is a simplified version of the helper utility I am using. Is there anything that stands out as being an obvious issue? My endpoint applications simply get the query parameters from the url request and pass them as the requestParams argument with the appropriate map file.
namespace MapScript
{
public class MapScriptResponse
{
public string Format { get; set; }
public byte[] Data { get; set; }
public string ErrorString { get; set; }
public DateTime LastModified { get; set; }
}
public class MapScriptUtilities
{
///
/// Execute a service request to mapserver through mapscript
///
/// Physical path to the map file on which to make the request
/// List of request parameters
/// The response from mapscript.
public static MapScriptResponse ServiceRequest(string mapFile, Dictionary requestParams)
{
MapScriptResponse response = new MapScriptResponse();
mapObj map = new mapObj(mapFile);
OWSRequest owsRequest = new OWSRequest();
Dictionary.Enumerator en = requestParams.GetEnumerator();
string paramName = "";
string paramValue = "";
while (en.MoveNext())
{
paramName = en.Current.Key;
paramValue = en.Current.Value;
owsRequest.setParameter(paramName, paramValue);
}
mapscript.msIO_installStdoutToBuffer();
int resultCode = map.OWSDispatch(owsRequest);
if (resultCode == 0)
{
response.Format = mapscript.msIO_stripStdoutBufferContentType();
response.Data = mapscript.msIO_getStdoutBufferBytes();
}
return response;
}
}
}
Any help would be greatly appreciated.
Brian
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From andy at squeakycode.net Fri Mar 11 10:34:54 2011
From: andy at squeakycode.net (Andy Colson)
Date: Fri, 11 Mar 2011 12:34:54 -0600
Subject: [mapserver-users] MapServer 6 beta, opengl
Message-ID: <4D7A6B4E.9050606@squeakycode.net>
Started X, changed my .map file to use opengl, ran shp2img, which before
would segfault, now runs ok and produces and image. But the image is
just static.
I'll attempt to attach it.
Any ideas?
-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.png
Type: image/png
Size: 952953 bytes
Desc: not available
URL:
From Phil.Anzel at ftc.usda.gov Fri Mar 11 12:49:18 2011
From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO)
Date: Fri, 11 Mar 2011 14:49:18 -0600
Subject: [mapserver-users] Symbol not showing up in MapServer
6.0.0-beta1 release
In-Reply-To:
References: <809503517A1B0347AF9A161507E6B29923BA4ECC75@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECC91@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECCA0@mokansasc7s304.agent.one.usda.gov>
<809503517A1B0347AF9A161507E6B29923BA4ECD61@mokansasc7s304.agent.one.usda.gov>
Message-ID: <809503517A1B0347AF9A161507E6B29923BA4ECDF2@mokansasc7s304.agent.one.usda.gov>
Thomas,
Thanks again. I'll keep my eyes open for Code Sprint outcomes with respect to Symbols of Type Vector.
- Phil
-----Original Message-----
From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Sent: Friday, March 11, 2011 11:07 AM
To: Anzel, Phil - Fort Collins, CO
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
Phil,
You're using the old version of drawing thick lines, that was needed
for GD. We'll have to decide at the codesprint if this is something
that we want to stop supporting, as this is something that we are
trailing along since 4.10. As I said in my first email, thick lines
are obtained with the WIDTH keyword.
As for vector symbols, there are known limitations actually, which we
will try to overcome during the codesprint - what's certain is we
won't be able to maintain backwards compatibility *and* expect
consistent rendering across renderers.
best regards,
thomas
On Fri, Mar 11, 2011 at 18:25, Anzel, Phil - Fort Collins, CO
wrote:
> Thomas and All,
>
> A follow up: submitted as a tracker defect: http://trac.osgeo.org/mapserver/ticket/3729
>
> The test map file is:
> MAP
> ?OUTPUTFORMAT
> ? ?NAME 'pnga'
> ? ?MIMETYPE 'image/pnga'
> ? ?DRIVER 'AGG/PNG'
> ? ?EXTENSION 'png'
> ? ?IMAGEMODE 'RGBA'
> ? ?TRANSPARENT TRUE
> ? ?FORMATOPTION 'INTERLACE=OFF'
> ?END
> ?STATUS ON
> ?SIZE 954 589
> ?EXTENT 0 0 954 589
> ?RESOLUTION 72
> ?IMAGECOLOR 255 255 255
>
> ?symbol
> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
> ?end
>
> ?LAYER
> ? ?NAME ?'single line'
> ? ?STATUS ON
> ? ?TYPE LINE
> ? ?feature points 10 10 950 580 end end
> ? ?CLASS
> ? ? ?style
> ? ? ? ?symbol 'circle'
> ? ? ? ?size 20
> ? ? ? ?color 255 255 0
> ? ? ? ?outlinecolor 255 0 0
> ? ? ?end
> ? ? ?style
> ? ? ? ?width 1
> ? ? ? ?color 0 0 255
> ? ? ?end
> ? ?end
> ?END # end of layer 'single line'
> END ?# end of MAP
>
> The above map file works as desired under 5.6 and demonstrates the problem under 5.7/6.0.
>
> - Phil
>
> -----Original Message-----
> From: Anzel, Phil - Fort Collins, CO
> Sent: Friday, March 11, 2011 7:08 AM
> To: thomas bonfort
> Cc: mapserver-users at lists.osgeo.org; Anzel, Phil - Fort Collins, CO
> Subject: RE: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>
> Thomas,
>
> Thanks yet again. I tried your suggestion and it looks quite nice.
>
> If I may, a related question: is there a change in behavior in use of symbols? I'm fairly certain that the MapServer tutorial example worked under 5.6.3, as did my use of the "tie" symbol. The motivation here is to tease out a potential bug in Mapserver 6.0.0-beta1.
>
> - Phil
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Friday, March 11, 2011 6:44 AM
> To: Anzel, Phil - Fort Collins, CO
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>
> for a tie symbol you should specify a (negative) GAP.
>
> something like:
> http://www2.terriscope.fr/geocache/wms?LAYERS=osm&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=epsg%3A4326&BBOX=1.34033203125,43.76953125,1.3623046875,43.79150390625&WIDTH=256&HEIGHT=256
>
> is obtained with
>
> SYMBOL
> ? ?NAME "rail"
> ? ?TYPE TRUETYPE
> ? ?FONT sc
> ? ?CHARACTER '|'
> ? ?GAP -3
> END
>
> ...
>
> ? ? ? ?STYLE
> ? ? ? ? ? ?WIDTH 2
> ? ? ? ? ? ?OUTLINEWIDTH 1
> ? ? ? ? ? ?OUTLINECOLOR "#555554"
> ? ? ? ? ? ?COLOR "#ffffff"
> ? ? ? ?END
> ? ? ? ?STYLE
> ? ? ? ? ? ?SYMBOL rail
> ? ? ? ? ? ?SIZE 5
> ? ? ? ? ? ?COLOR "#555554"
> ? ? ? ?END
>
> On Fri, Mar 11, 2011 at 14:35, Anzel, Phil - Fort Collins, CO
> wrote:
>> Hi, Thomas,
>>
>> Thanks for looking into this problem.
>>
>> My goal is to create a "railroad" cross-hatching along a line. I originally used:
>> ? ?SYMBOL
>> ? ? ?NAME 'default'
>> ? ? ?Type simple
>> ? ?END
>> ? ?SYMBOL
>> ? ? ?NAME 'tie'
>> ? ? ?TYPE vector
>> ? ? ?POINTS 0 0 ?0 7 ?-99 -99 ?7 0 ?7 7 ?END
>> ? ?END
>> These were referenced, within a layer of type "line", by:
>> ? CLASS
>> ? ? STYLE
>> ? ? ? SYMBOL ? ? ? ? ? ?'default'
>> ? ? ? SIZE ? ? ? ? ? ? ?1
>> ? ? ? COLOR ? ? ? ? ? ? 0 0 0
>> ? ? END
>> ? ? STYLE
>> ? ? ?SYMBOL ? ? ? ? ? ? 'tie'
>> ? ? ?SIZE ? ? ? ? ? ? ? 8
>> ? ? ?COLOR ? ? ? ? ? ? ?0 0 0
>> ? ? END
>> ? END
>>
>> This had worked under MapServer 5.6.3. I returned to this example after upgrading to 5.7DEV on March 9, 2011, and found that the "tie" cross-hatching had disappeared. I tried several other symbols; I used the "circle" as an example because it also worked in the past and is used in the MapServer "Introduction to MapServer", section 2.4.3, "CLASS and STYLE objects".
>>
>> Closer to the 2.4.3 example, if I define:
>> ?symbol
>> ? ?name 'circle'
>> ? ?filled true
>> ? ?type ellipse
>> ? ?points 0 0 1 1 end
>> ?end
>> and reference this definition, as per the example, with:
>> ? ? style
>> ? ? ? symbol "circle"
>> ? ? ? color 178 114 1
>> ? ? ? size 15
>> ? ? end
>> ? ? style
>> ? ? ? symbol "circle"
>> ? ? ? color 254 161 0
>> ? ? ? size 7
>> ? ? end
>> then there is no image created.
>>
>> Given these experimental results, I wonder if there has been a change in behavior in drawing symbols. Alternatively I've made a very simple error.
>>
>> Is there an error in my map file? How do you recommend that the "railroad" hatched line be drawn?
>>
>> Thanks again.
>>
>> - Phil
>>
>>
>> -----Original Message-----
>> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
>> Sent: Friday, March 11, 2011 4:17 AM
>> To: Anzel, Phil - Fort Collins, CO
>> Cc: mapserver-users at lists.osgeo.org
>> Subject: Re: [mapserver-users] Symbol not showing up in MapServer 6.0.0-beta1 release
>>
>> huh, I may have misinterpreted...
>>
>> you can't expect to obtain a point/marker symbology when using a line geometry.
>>
>> if you effectively want to use marker symbols, you can have a look RFC
>> 48 and its
>> ?GEOMTRANSFORM "start|end|vertices" transformations.
>>
>> --
>> thomas
>>
>> On Fri, Mar 11, 2011 at 12:10, thomas bonfort wrote:
>>> Phil,
>>>
>>> what kind of symbology are you trying to obtain. I suspect you're
>>> aiming for a thick line, which now does not require the use of a
>>> symbol, but rather:
>>>
>>> style
>>> ?width 20
>>> ?color 0 0 255
>>> end
>>>
>>> regards,
>>> thomas
>>>
>>> On Fri, Mar 11, 2011 at 02:24, Anzel, Phil - Fort Collins, CO
>>> wrote:
>>>> All,
>>>>
>>>> I upgraded to MapServer 5.7 (6.0.0-beta1) code for x32/VS2010 (downloaded from http://vbkto.dyndns.org/sdk/) on March 9, 2011.
>>>>
>>>> It appears that embedded symbols are not drawn. Below is a simple map file that has a single diagonal line as a feature and two styles; the first should draw a 25-pixel circle, the second a single-pixel line; similar map files worked under 5.6.3. I do not know if this worked under 5.7 circa December 15, 2010.
>>>>
>>>> Only the single-pixel line is drawn. I've tried various other symbol definitions; none appear in the output.
>>>>
>>>> I'm using the "drawmap.exe" utility to draw the PNG output file under Microsoft Windows XP Professional 2002 SP 3. No errors are reported.
>>>>
>>>> Can you help?
>>>>
>>>> Thanks,
>>>>
>>>> - Phil Anzel
>>>> ?Web Soil Survey development team
>>>> ?Vistronix Inc. for USDA/NRCS/ITC
>>>>
>>>> ..... start of map file .....
>>>>
>>>> MAP
>>>> ?OUTPUTFORMAT
>>>> ? ?NAME 'pnga'
>>>> ? ?MIMETYPE 'image/pnga'
>>>> ? ?DRIVER 'AGG/PNG'
>>>> ? ?EXTENSION 'png'
>>>> ? ?IMAGEMODE 'RGBA'
>>>> ? ?TRANSPARENT TRUE
>>>> ? ?FORMATOPTION 'INTERLACE=OFF'
>>>> ?END
>>>> ?STATUS ON
>>>> ?SIZE 954 589
>>>> ?EXTENT -11760744.430293 5057510.78178777 -11752931.9172644 5062334.23060729
>>>> ?RESOLUTION 70
>>>> ?UNITS METERS
>>>> ?IMAGECOLOR 255 255 255
>>>> ?PROJECTION 'proj=merc' 'a=6378137' 'b=6378137' 'lat_ts=0.0' 'lon_0=0.0' 'x_0=0.0' 'y_0=0' 'k=1.0' 'units=m' 'nadgrids=@null' 'north' 'no_defs' END
>>>>
>>>> ?symbol
>>>> ? ?name 'circle' filled true type ellipse points 0 0 1 1 end
>>>> ?end
>>>>
>>>> ?LAYER
>>>> ? ?NAME ?'single line'
>>>> ? ?STATUS ON
>>>> ? ?TYPE LINE
>>>> ? ?feature points -11760750 5057520 -11752920 5062330 end end
>>>> ? ?CLASS
>>>> ? ? ?style
>>>> ? ? ? ?symbol 'circle'
>>>> ? ? ? ?size 20
>>>> ? ? ? ?color 255 255 0
>>>> ? ? ? ?outlinecolor 255 0 0
>>>> ? ? ?end
>>>> ? ? ?style
>>>> ? ? ? ?width 1
>>>> ? ? ? ?color 0 0 255
>>>> ? ? ?end
>>>> ? ?end
>>>> ?END # end of layer 'single line'
>>>> END ?# end of MAP
>>>>
>>>> ..... end of map file .....
>>>> _______________________________________________
>>>> mapserver-users mailing list
>>>> mapserver-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>>
>>>
>>
>
From wal3 at mindspring.com Fri Mar 11 13:44:41 2011
From: wal3 at mindspring.com (Worth Lutz)
Date: Fri, 11 Mar 2011 16:44:41 -0500
Subject: [Ubuntu] Re: [mapserver-users] MapServer 6.0.0-beta1 release
-Please test!
In-Reply-To: <201103092313.22149.aboudreault@mapgears.com>
References: <4D783BDA.5060600@mapgears.com>
<201103092313.22149.aboudreault@mapgears.com>
Message-ID:
Alan,
Thanks for the ubuntugis repository.
It took me a good bit of trying today but I got Mapserver 6.0 installed
today by building from source. I'm not sure I've got it all right but I've
got a working version for testing. I'd prefer to just load from the
repository.
Could you add "--with-cairo" to the next build to allow pdf output.
Thanks
Worth
_____
From: ubuntu-bounces at lists.osgeo.org [mailto:ubuntu-bounces at lists.osgeo.org]
On Behalf Of Alan Boudreault
Sent: Wednesday, March 09, 2011 11:13 PM
To: mapserver-users at lists.osgeo.org
Cc: ubuntu at lists.osgeo.org; mapserver-devs at lists.osgeo.org
Subject: [Ubuntu] Re: [mapserver-users] MapServer 6.0.0-beta1 release
-Please test!
The binaries of MapServer 6.0.0-beta1 are now available in UbuntuGIS for
Ubuntu hardy, lucid and maverick.
ubuntugis-testing ppa:
https://launchpad.net/~ubuntugis/+archive/ubuntugis-testing/
Alan
On March 9, 2011 09:47:54 pm Daniel Morissette wrote:
> The MapServer Team is pleased to announce the release of MapServer
> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>
> This new release introduces important changes in key components of the
> MapServer core (rendering, query and expressions), and for this reason
> we count on you, MapServer power users, to help test the release in your
> respective environments and provide feedback (through the users list or
> Trac tickets).
>
> The timing and feedback for this first beta is very important since it
> comes one week before the Montreal Code Sprint where about a dozen
> participants will be working specifically on MapServer and will have a
> chance to tackle important 6.0 issues that may be found and reported.
>
> Here is a quick list of RFCs documenting some of the new features or
> important changes in 6.0. This list is not complete, we will update it
> as we polish the release documentation:
>
> Core Changes in MapServer 6.0 which could affect existing applications:
>
> * MS RFC 54: Rendering Interface API
> * MS RFC 64: MapServer Expression Parser Overhaul
> * MS RFC 65: Single-pass Query Changes for 6.0
>
> New Features and Enhancements in MapServer 6.0:
>
> * MS RFC 58: Kml Output
> * MS RFC 60: Labeling enhancement: ability to skip ANGLE FOLLOW labels
> with too much character overlap
> * MS RFC 61: Enhance MapServer Feature Style Support
> * MS RFC 62: Support Additional WFS GetFeature Output Formats
> * MS RFC 63: Built-in OpenLayers map viewer
> * MS RFC 66: Better handling of temporary files
> * MS RFC 67: Enable/Disable Layers in OGC Web Services
> * MS RFC 68: Support for combining features from multiple layers
> * MS RFC 69: Support for clustering of features in point layers
>
> (RFCs are available online at http://mapserver.org/development/rfc/)
>
> As usual there an a large number of additional small enhancements and
> bug fixes. For a complete list see the HISTORY.TXT file at:
>
>
> http://svn.osgeo.org/mapserver/tags/rel-6-0-0-beta1/mapserver/HISTORY.TXT
>
> We have started working on a 5.6 -> 6.0 migration guide. This document
> contains important notes on backwards incompatibilities or other changes
> required when upgrading to 6.0. It is not complete yet but we strongly
> recommend that you review the latest version online at:
>
>
http://trac.osgeo.org/mapserver/browser/trunk/mapserver/MIGRATION_GUIDE.TXT
>
> The source for this release can be downloaded at:
>
> http://mapserver.org/download.html
> or
> http://download.osgeo.org/mapserver/mapserver-6.0.0-beta1.tar.gz
>
> The binary distributions listed in the download page should be updated
> with binaries for the new 6.0.0-beta1 release in the next day or so.
>
>
> This is the first of four planned beta releases and if all goes well a
> final release should occur around the end of April. The full release
> plan can be viewed at:
>
> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
>
> Once again we need your help to ensure a high quality product,
> especially for this beta due to its timing with next week's Code Sprint,
> so please help out by testing your applications with this new code base.
>
> Thanks! - The MapServer Team
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
UbuntuGIS mailing list
Ubuntu at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki
_____
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1497/3495 - Release Date: 03/09/11
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From andy at squeakycode.net Fri Mar 11 20:13:09 2011
From: andy at squeakycode.net (Andy Colson)
Date: Fri, 11 Mar 2011 22:13:09 -0600
Subject: [mapserver-users] MapServer 6 beta, opengl, linux
In-Reply-To: <4D7A6B4E.9050606@squeakycode.net>
References: <4D7A6B4E.9050606@squeakycode.net>
Message-ID: <4D7AF2D5.3050508@squeakycode.net>
On 03/11/2011 05:20 AM, thomas bonfort wrote:
> Andy,
> yes a (beefy) video card is needed or at least wanted, as you want to
> offset the calculations to the GPU. If one isn't present, you're going
> to fall back to a software opengl implementation which will be orders
> of magnitude slower than what AGG is going to take.
>
> cc-ing Toby if he wants to comment further on this.
>
> regards,
> thomas
>
> On Fri, Mar 11, 2011 at 03:02, Andy Colson wrote:
>> On 03/10/2011 07:16 PM, Andy Colson wrote:
>>>
>>> On 03/09/2011 08:47 PM, Daniel Morissette wrote:
>>>>
>>>> The MapServer Team is pleased to announce the release of MapServer
>>>> 6.0.0-beta1. This is the first beta on our way to a final 6.0 release.
>>>>
>>>
>>> I cannot seem to get opengl to work.
>>>
>>> a stacktrace of shp2img:
>>>
>>> Program received signal SIGSEGV, Segmentation fault.
>>> 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
>>> (gdb) backtrace
>>> #0 0x00007ffff690bcab in glGetIntegerv () from /usr/lib64/libGL.so.1
>>> #1 0x000000000047667f in OglRenderer::OglRenderer(unsigned int, unsigned
>>> int, colorObj*) ()
>>> #2 0x0000000000474988 in msImageCreateOgl(int, int, outputFormatObj*,
>>> colorObj*) ()
>>> #3 0x000000000044cd26 in msPrepareImage ()
>>> #4 0x000000000044ce75 in msDrawMap ()
>>> #5 0x0000000000415067 in main ()
>>> (gdb)
>>>
I'll continue my comments from another thread in this better named thread.
So... I'm confused with mapoglrenderer.cpp.
I dont see where any GLX context or PBuffer have been setup yet before the first call to OglRenderer::OglRenderer. The first thing it does is: glGetIntegerv(GL_VIEWPORT ,viewPort);
But how can there be a viewport size yet? I added a debug message right after it:
if(msGetGlobalDebugLevel() >= MS_DEBUGLEVEL_DEBUG)
{
msDebug("viewport %d, %d, %d, %d\n", viewportX, viewportY, viewportWidth, viewportHeight);
}
and got:
$ ./shp2img -all_debug 15 -m /pub/maps/test.map -o x.png
[Fri Mar 11 19:30:01 2011].731230 msLoadMap(): 0.000s
[Fri Mar 11 19:30:01 2011].731352 viewport 48, 135483496, 134889737, 0
that cant be right... can it?
The next thing is getTextureSize, which calls glTexImage2D. Will that work with no context?
-Andy
From emilianocastaneda at suremptec.com.ar Sun Mar 13 14:25:03 2011
From: emilianocastaneda at suremptec.com.ar (=?ISO-8859-1?Q?Emiliano_Casta=F1eda?=)
Date: Sun, 13 Mar 2011 18:25:03 -0300
Subject: [mapserver-users] Error on QueryBy* on PHP Mapscript when querying
raster layer?
Message-ID:
I have defined a mapfile for a raster LAYER object with a CLASS object to
define a KEYIMAGE tag. The CLASS object doesn?t contain a COLOR tag, but
contains a TEMPLATE tag.
When performing a QueryByRect or QueryByPoint using PHP Mapscript (didn't
try other queries), value1, value2, value3 contain the correct raster data,
but red, green and blue contain 0, even though the image is rendered
correctly with red=value1, green=value2, and blue=value3.
If I add a COLOR tag to the CLASS, when querying red, green and blue contain
this color, as expected.
If I remove the CLASS object, when querying red, green and blue containt
value1, value2 and value3 as expected, but I cannot create a legend icon as
KEYIMAGE is not defined.
Shouldn't red, green and blue contain value1, value2, and value3 if CLASS
object doesn't contain a COLOR tag as those are the rendered values?
Regards
--
Ing. Emiliano Casta?eda
SUR Emprendimientos Tecnol?gicos
Per? 345 Piso 5to Oficina "B" (C1067AAG)
Ciudad de Buenos Aires, Argentina
Tel. +54 (11) 4342-2976/84
emilianocastaneda at suremptec.com.ar
www.suremptec.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From andreas.siegel at vorarlberg.at Mon Mar 14 06:13:48 2011
From: andreas.siegel at vorarlberg.at (sulu)
Date: Mon, 14 Mar 2011 06:13:48 -0700 (PDT)
Subject: [mapserver-users] How to format a GetfeatureInfoRequest results?
Message-ID: <1300108428336-6168987.post@n2.nabble.com>
Hi.
I'm in search of information/tutorial on formatting GetfeatureInfoRequests
by using HTML-Templates.
As an example; assume there is an attibute "test" which may have some
content or may not.
As far as i know i can format the result in the Body-HTML-Template like
that:
[item name=test format=$value escape=none]
This works but i would like to add some logic in order to improve it a bit.
E.g. add an if clause that returns "n/a" if the attribute has no content or
turn it red if the value exceeds som threshold.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6168987.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From Steve.Lime at state.mn.us Mon Mar 14 06:28:56 2011
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Mon, 14 Mar 2011 08:28:56 -0500
Subject: [mapserver-users] How to format a GetfeatureInfoRequest results?
In-Reply-To: <1300108428336-6168987.post@n2.nabble.com>
References: <1300108428336-6168987.post@n2.nabble.com>
Message-ID:
There is limited "logic" support in the item tag. There are two attributes to consider:
- nullformat, sets the string to be displayed if the item is empty
[item name=test nullformat="n\a" ...]
- pattern, sets a regex to check the item against, results are only displayed if the item value matches
[item name=test pattern="foo" format="bar"]
You might be able to combine the two, not sure about that though. Let me know if you have questions.
Steve
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of sulu
Sent: Monday, March 14, 2011 8:14 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] How to format a GetfeatureInfoRequest results?
Hi.
I'm in search of information/tutorial on formatting GetfeatureInfoRequests
by using HTML-Templates.
As an example; assume there is an attibute "test" which may have some
content or may not.
As far as i know i can format the result in the Body-HTML-Template like
that:
[item name=test format=$value escape=none]
This works but i would like to add some logic in order to improve it a bit.
E.g. add an if clause that returns "n/a" if the attribute has no content or
turn it red if the value exceeds som threshold.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6168987.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
From andreas.siegel at vorarlberg.at Mon Mar 14 07:12:53 2011
From: andreas.siegel at vorarlberg.at (sulu)
Date: Mon, 14 Mar 2011 07:12:53 -0700 (PDT)
Subject: [mapserver-users] RE: How to format a GetfeatureInfoRequest results?
In-Reply-To:
References: <1300108428336-6168987.post@n2.nabble.com>
Message-ID: <1300111973552-6169182.post@n2.nabble.com>
Hi Steve.
Thanks!
That works.
Is there a synopsis where i can look up the format options that are
available?
Maybe i'm struck with blindness but i could not find them in the
mapserver.pdf.
Cheers
Andy
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-to-format-a-GetfeatureInfoRequest-results-tp6168987p6169182.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From maymerich at argongra.es Mon Mar 14 08:17:43 2011
From: maymerich at argongra.es (Manuel Aymerich)
Date: Mon, 14 Mar 2011 16:17:43 +0100
Subject: [mapserver-users] About html code inside query attribute responses
Message-ID: <002d01cbe25a$f97883f0$ec698bd0$@es>
Hi,
I've prepared WMS getFeautreInfo queries so that mapserver's template
receives pure html attributes (containing the
tag for example). I would
like to show this html code as it is. So that it integrates with the
existing html header, footer and the rest of the template inside mapservers
response, hoping that at the frontend the html response could be interpreted
as a whole. However, the html stored data is shown either as escaped html or
as url encoded data. I'ver read mapserver documentation but I had not
success while implementing each possible solution:
If I try:
[attribute name] : I get escaped html (
is translated into <br>)
[attrribute name_esc]: I get url encdes text (
is translated into
%3Cbr%2F%3)
[attribute item name_raw]: I get something in between but not pure html
(
is translated into \n).
Mapserver documentation says ".By default the attributes are encoded
especially for HTML representation" but I now disagree.
Any ideas about what's happening here? Any workaround solutions?
Thanks in advance,
Manuel Aymerich
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Steve.Lime at state.mn.us Mon Mar 14 08:45:36 2011
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Mon, 14 Mar 2011 10:45:36 -0500
Subject: [mapserver-users] About html code inside query attribute responses
In-Reply-To: <002d01cbe25a$f97883f0$ec698bd0$@es>
References: <002d01cbe25a$f97883f0$ec698bd0$@es>
Message-ID:
What you describe is basically correct. Except, there is no code in place to translate html elements like you mention with [attribute item name_raw]. That should be the correct method of telling MapServer not to touch the contents of an attribute at all. You could also try:
[item name="name" escape="none"]
That should generate the same output as [name_raw] and is the preferred way of doing this sort of thing.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel Aymerich
Sent: Monday, March 14, 2011 10:18 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] About html code inside query attribute responses
Hi,
I've prepared WMS getFeautreInfo queries so that mapserver's template receives pure html attributes (containing the
tag for example). I would like to show this html code as it is. So that it integrates with the existing html header, footer and the rest of the template inside mapservers response, hoping that at the frontend the html response could be interpreted as a whole. However, the html stored data is shown either as escaped html or as url encoded data. I'ver read mapserver documentation but I had not success while implementing each possible solution:
If I try:
[attribute name] : I get escaped html (
is translated into <br>)
[attrribute name_esc]: I get url encdes text (
is translated into %3Cbr%2F%3)
[attribute item name_raw]: I get something in between but not pure html (
is translated into \n).
Mapserver documentation says "...By default the attributes are encoded especially for HTML representation" but I now disagree.
Any ideas about what's happening here? Any workaround solutions?
Thanks in advance,
Manuel Aymerich
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From emilianocastaneda at suremptec.com.ar Mon Mar 14 09:39:53 2011
From: emilianocastaneda at suremptec.com.ar (=?ISO-8859-1?Q?Emiliano_Casta=F1eda?=)
Date: Mon, 14 Mar 2011 13:39:53 -0300
Subject: [mapserver-users] Problem with QueryByPoint and QueryByRect with
PHP Mapscript
Message-ID:
Hi to all,
Im having a problem when using QueryByPoint and QueryByRect on PHP Mapscript
and Mapserver 5.6.6 on this layer, as Red, Green, and Blue attributes are
always 0, even though the image is rendered correctly.
LAYER
GROUP "grBlueMarble"
NAME "nmBlueMarble"
TYPE raster
DATA "../../../layers/raster/BlueMarble.img"
STATUS OFF
OPACITY 100
PROJECTION
"init=epsg:900913"
END
OFFSITE 0 0 0
CLASS
TEMPLATE "foo.bar"
NAME "BlueMarble"
KEYIMAGE "../../../images/icon_rasterLayer.png"
END
END
As the image is correctly rendered I would expect to receive Red, Green, and
Blue attributes the same as Value_0, Value_1 as Value_2 instead of 0.
If I remove the CLASS object the Red, Green, and Blue attributes are correct
but I cannot define a KEYIMAGE tag.
?Could this be a bug?
Regards,
Ing. Emiliano Casta?eda
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Ken.Boss at state.mn.us Mon Mar 14 12:23:32 2011
From: Ken.Boss at state.mn.us (Boss, Ken (DNR))
Date: Mon, 14 Mar 2011 14:23:32 -0500
Subject: [mapserver-users] Nodata in raster queries
Message-ID: <4CF306D7079ED548B6AB1864F369FE78177008BC16@MNMAIL05.ead.state.mn.us>
I have a DEM that I am using with mapserver 5.6 to service queries for an elevation value at a given point. The DEM contains significant offsite/nodata areas. From gdalinfo:
Band 1 Block=19063x1 Type=Int16, ColorInterp=Gray
NoData Value=-32768
If I open the image in QGIS and use the identify tool over a nodata area, it says:
Band 1 null (no data)
But when I run a mapserver point query at the same point, the value returned is -32768. Is there a way to configure mapserver to return something more like null for raster nodata areas?
Thanks,
--Ken Boss
MN DNR
From michufoc at wp.pl Tue Mar 15 03:55:56 2011
From: michufoc at wp.pl (michal_drozdz)
Date: Tue, 15 Mar 2011 03:55:56 -0700 (PDT)
Subject: [mapserver-users] Re: WMS on top of Google maps API
In-Reply-To:
References: <4d79083429eec3.62799056@wp.pl>
Message-ID: <1300186556297-6172316.post@n2.nabble.com>
Thanks a lot!
That works! I used solution proposed by mwkorver
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-on-top-of-Google-maps-API-tp6158585p6172316.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
From maymerich at argongra.es Tue Mar 15 08:04:24 2011
From: maymerich at argongra.es (Manuel Aymerich)
Date: Tue, 15 Mar 2011 16:04:24 +0100
Subject: [mapserver-users] About html code inside query attribute responses
In-Reply-To:
References: <002d01cbe25a$f97883f0$ec698bd0$@es>
Message-ID: <000901cbe322$4608b4c0$d21a1e40$@es>
Thanks Steve.
As you already pointed out [item name=?name? escape=?none?] behaves exactly
as [name_raw], which in my case translates html tags from <
> to <br> .
Not a really coherent behavior, is it?
Manuel
De: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
Enviado el: lunes, 14 de marzo de 2011 16:46
Para: Manuel Aymerich; mapserver-users at lists.osgeo.org
Asunto: RE: [mapserver-users] About html code inside query attribute
responses
What you describe is basically correct. Except, there is no code in place to
translate html elements like you mention with [attribute item name_raw].
That should be the correct method of telling MapServer not to touch the
contents of an attribute at all. You could also try:
[item name=?name? escape=?none?]
That should generate the same output as [name_raw] and is the preferred way
of doing this sort of thing.
Steve
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel
Aymerich
Sent: Monday, March 14, 2011 10:18 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] About html code inside query attribute responses
Hi,
I?ve prepared WMS getFeautreInfo queries so that mapserver?s template
receives pure html attributes (containing the
tag for example). I would
like to show this html code as it is. So that it integrates with the
existing html header, footer and the rest of the template inside mapservers
response, hoping that at the frontend the html response could be interpreted
as a whole. However, the html stored data is shown either as escaped html or
as url encoded data. I?ver read mapserver documentation but I had not
success while implementing each possible solution:
If I try:
[attribute name] : I get escaped html (
is translated into <br>)
[attrribute name_esc]: I get url encdes text (
is translated into
%3Cbr%2F%3)
[attribute item name_raw]: I get something in between but not pure html
(
is translated into \n).
Mapserver documentation says ?
By default the attributes are encoded
especially for HTML representation? but I now disagree.
Any ideas about what?s happening here? Any workaround solutions?
Thanks in advance,
Manuel Aymerich
_____
Se certific? que el correo no contiene virus.
Comprobada por AVG - www.avg.es
Versi?n: 10.0.1204 / Base de datos de virus: 1498/3505 - Fecha de la
versi?n: 13/03/2011
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From francesco.pirotti at unipd.it Tue Mar 15 10:47:11 2011
From: francesco.pirotti at unipd.it (francesco)
Date: Tue, 15 Mar 2011 18:47:11 +0100
Subject: [mapserver-users] MapServer 6 testing: WMS - invalid layer parameter
In-Reply-To: <4D7A5A01.70503@dmsolutions.ca>
References: <4D795EEB.2030709@gmx.net> <4D7A5A01.70503@dmsolutions.ca>
Message-ID: <4D7FA61F.1070400@unipd.it>
Hello everyone, I am trying the new mapserver 6.0 :-) and I ran into
the following error message when trying as WMS server
msWMSGetLegendGraphic(): WMS server error. Invalid layer given in the
LAYER parameter.
As a matter of fact when I shoot the "GetCapabilites" request, no layers
are present except the map layer (the name of my map).
Using Mapserver 5.6.6 everything worked fine. Is there anything I am
missing?
Cheers, and thanks to developers for their hard work - looking forward
to the Montreal code sprint!
Francesco
--
**************************************************
*Francesco Pirotti*
Dep. TESAF
CIRGEO -- Interdepartmental Research Center on Cartography Photogrammetry
Remote Sensing and G.I.S.
University of Padova
Web: http://www.cirgeo.unipd.it/cirgeo/francescopirotti.htm
Email: francesco.pirotti at unipd.it
Phone: +39 049 827 2710
Phone: +39 349 55 39 261
**************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From thomas.bonfort at gmail.com Tue Mar 15 11:26:22 2011
From: thomas.bonfort at gmail.com (thomas bonfort)
Date: Tue, 15 Mar 2011 14:26:22 -0400
Subject: [mapserver-users] MapServer 6 testing: WMS - invalid layer
parameter
In-Reply-To: <4D7FA61F.1070400@unipd.it>
References: <4D795EEB.2030709@gmx.net> <4D7A5A01.70503@dmsolutions.ca>
<4D7FA61F.1070400@unipd.it>
Message-ID:
> Is there anything I am missing?
yes, the migration guide ! ;)
(the part on OGC Web Services)
--
thomas
From vincentpmiller at yahoo.com Tue Mar 15 14:03:29 2011
From: vincentpmiller at yahoo.com (Vince Miller)
Date: Tue, 15 Mar 2011 14:03:29 -0700 (PDT)
Subject: [mapserver-users] two mapserver speed-optimization questions
Message-ID: <186659.61102.qm@web110213.mail.gq1.yahoo.com>
Hi,
I'm new to this list. A quick search did not find answers to two mapserver speed-optimization questions. Can someone please
help?
1. The following two lines of PHP from my application transform an php image object into a raster map layer:
imagepng($rmap, __MAPS_PATH__ . "resource.png");
$map->getLayerByName("resource")->set("data", __MAPS_PATH__ . "resource.png");
The imagepng call is a major bottleneck when the extent of the layer is large.
Can the data in
image "$rmap" be accessed for layer "resource" directly, without the file write/read? If so, how? FYI, the following lines appear in my mapfile:
? LAYER
??? NAME resource
??? DATA "resource.png"
??? TYPE raster
??? PROCESSING "RESAMPLE=NEAREST"
? END
2. When
large vector layers are included in the map, or when the layer consists of labels, the mapObj's draw method is slow, even if only a small portion of the layer data is needed.
Sample SQL that created the layer data column is:
CREATE TABLE domains (
??? domid integer PRIMARY KEY,
??? ...
);
SELECT AddGeometryColumn('','domains','boundaries','4326','MULTIPOLYGON',2);
\i boundaries.sql; /* contains a bunch of INSERT INTOs */
CREATE INDEX dombound_idx ON domains USING gist (boundaries);
ALTER TABLE domains CLUSTER ON dombound_idx;
and the mapfile has:
? LAYER
??? CONNECTIONTYPE postgis
??? PROCESSING "CLOSE_CONNECTION=DEFER"
??? NAME???????? boundaries
??? DATA???????? "boundaries from domains using unique
domid"
???
TYPE???????? POLYGON
??? CLASS
?????? ...
??? END
? END
Any suggestions for speeding this up?
Thanks a bunch,
Vince
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jt at mapmedia.de Wed Mar 16 03:53:52 2011
From: jt at mapmedia.de (=?ISO-8859-1?Q?J=F6rg_Thomsen?=)
Date: Wed, 16 Mar 2011 11:53:52 +0100
Subject: [mapserver-users] wms_style_xxx_legendurl_href
In-Reply-To: <4D77AC5C.60101@mapmedia.de>
References:
<4D77AC5C.60101@mapmedia.de>
Message-ID: <4D8096C0.5000800@mapmedia.de>
Hi,
o.k., it was not the best moment to ask my question, because at the same
time the mapserver beta 6 was announced ;)
so here a 'repost', it would be nice if anyone could give me a hint:
> Hi,
>
> I'm using the wms_style-parameters in the layer metadata section to tell
> the client to use a special legend-url:
> 'wms_style' 'Farbwerte'
> 'wms_style_Farbwerte_legendurl_height' '218'
> 'wms_style_Farbwerte_legendurl_href' 'http://xxx/html/test/gimp.png'
> 'wms_style_Farbwerte_legendurl_format' 'png'
> 'wms_style_Farbwerte_legendurl_width' '300'
>
> This works fine with only one style. But what do I have to do, if I have
> defined different styles / classgroups? one should use a pre-defined image,
> the other ones should be generated by mapserver.
> When defining
> 'wms_style' 'Farbwerte'
> the capabilities only shows this style, even if there are more styles
> (classgroups) defined.
>
> Any idea?
>
> J?rg
From warmerdam at pobox.com Wed Mar 16 04:47:31 2011
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Wed, 16 Mar 2011 07:47:31 -0400
Subject: [mapserver-users] two mapserver speed-optimization questions
In-Reply-To: <186659.61102.qm@web110213.mail.gq1.yahoo.com>
References: <186659.61102.qm@web110213.mail.gq1.yahoo.com>
Message-ID:
On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller wrote:
> 1. The following two lines of PHP from my application transform an php image object into a raster map layer:
>
> imagepng($rmap, __MAPS_PATH__ . "resource.png");
> $map->getLayerByName("resource")->set("data", __MAPS_PATH__ . "resource.png");
>
> The imagepng call is a major bottleneck when the extent of the layer is large.
> Can the data in image "$rmap" be accessed for layer "resource" directly, without the file write/read? If so, how? FYI, the following lines appear in my mapfile:
Vince,
There are no mechanisms to utilize a PHP image object as the
data in a mapserver raster layer without first writing to disk. I
gather PHP image resources are actually a handle to a gdImage
object, so if you needed it badly enough it should be possible to
write a PHP function that turn that gdImage into something that
was accessable to GDAL as a raster but that would be quite
involved and not something likely to go back into the core
distribution.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up?? | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush? ? | Geospatial Programmer for Rent
From saad.hessane at gmail.com Wed Mar 16 05:11:11 2011
From: saad.hessane at gmail.com (=?ISO-8859-1?Q?Mohamed_Sa=E2d_HESSANE?=)
Date: Wed, 16 Mar 2011 13:11:11 +0100
Subject: [mapserver-users] two mapserver speed-optimization questions
In-Reply-To:
References: <186659.61102.qm@web110213.mail.gq1.yahoo.com>
Message-ID:
For the raster image you can build pyramid with gdaladdo, it's really useful
to increase performances
2011/3/16 Frank Warmerdam
> On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller
> wrote:
> > 1. The following two lines of PHP from my application transform an php
> image object into a raster map layer:
> >
> > imagepng($rmap, __MAPS_PATH__ . "resource.png");
> > $map->getLayerByName("resource")->set("data", __MAPS_PATH__ .
> "resource.png");
> >
> > The imagepng call is a major bottleneck when the extent of the layer is
> large.
> > Can the data in image "$rmap" be accessed for layer "resource" directly,
> without the file write/read? If so, how? FYI, the following lines appear in
> my mapfile:
>
>
> Vince,
>
> There are no mechanisms to utilize a PHP image object as the
> data in a mapserver raster layer without first writing to disk. I
> gather PHP image resources are actually a handle to a gdImage
> object, so if you needed it badly enough it should be possible to
> write a PHP function that turn that gdImage into something that
> was accessable to GDAL as a raster but that would be quite
> involved and not something likely to go back into the core
> distribution.
>
> Best regards,
>
>
>
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up | Frank Warmerdam,
> warmerdam at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Weisbend at wapa.gov Wed Mar 16 09:18:14 2011
From: Weisbend at wapa.gov (Eric Weisbender)
Date: Wed, 16 Mar 2011 10:18:14 -0600
Subject: [mapserver-users] GeoWebCache WMS
Message-ID: <4D808E66020000DF00071B3E@10.1.50.131>
Hello,
I am trying to use the GeoWebCache WMS service, http://maps.opengeo.org/geowebcache/service/wms ( http://maps.opengeo.org/geowebcache/service/wms ), with cgi MapServer as a layer defined in may mapfile and it doesn't work. It also doesn't work in QGIS, GlobalMapper, or Google Earth. However, It works fine in may OpenLayers app. Any insight as to why it only works with OpenLayers would be greatly appreciated.
Thanks
EW
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From warmerdam at pobox.com Wed Mar 16 09:47:50 2011
From: warmerdam at pobox.com (Frank Warmerdam)
Date: Wed, 16 Mar 2011 12:47:50 -0400
Subject: [mapserver-users] Nodata in raster queries
In-Reply-To: <4CF306D7079ED548B6AB1864F369FE78177008BC16@MNMAIL05.ead.state.mn.us>
References: <4CF306D7079ED548B6AB1864F369FE78177008BC16@MNMAIL05.ead.state.mn.us>
Message-ID: <4D80E9B6.1090102@pobox.com>
On 11-03-14 03:23 PM, Boss, Ken (DNR) wrote:
> I have a DEM that I am using with mapserver 5.6 to service queries for an elevation value at a given point. The DEM contains significant offsite/nodata areas. From gdalinfo:
>
> Band 1 Block=19063x1 Type=Int16, ColorInterp=Gray
> NoData Value=-32768
>
> If I open the image in QGIS and use the identify tool over a nodata area, it says:
>
> Band 1 null (no data)
>
> But when I run a mapserver point query at the same point, the value returned is -32768. Is there a way to configure mapserver to return something more like null for raster nodata areas?
Ken,
Mapserver has a few mechanisms for specifying nodata. I skimmed the
raster query code and it does not seem to honour these. If you file
a ticket on this issue, I can try and implement nodata support in the
raster query code this week at the code sprint.
In MapServer 6.0 (trunk) there are some improvements to detecting nodata
values, even for non-8bit data, in the raster drawing case. This just
hasn't all made it into the raster query logic.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
From Steve.Lime at state.mn.us Wed Mar 16 10:05:54 2011
From: Steve.Lime at state.mn.us (Lime, Steve D (DNR))
Date: Wed, 16 Mar 2011 12:05:54 -0500
Subject: [mapserver-users] About html code inside query attribute responses
In-Reply-To: <000901cbe322$4608b4c0$d21a1e40$@es>
References: <002d01cbe25a$f97883f0$ec698bd0$@es>
,
<000901cbe322$4608b4c0$d21a1e40$@es>
Message-ID:
Can you or someone else share a sample shapefile with HTML in an attribute? I've not experienced this problem but donw have access to a datafile with that type of content...
Steve
________________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel Aymerich [maymerich at argongra.es]
Sent: Tuesday, March 15, 2011 10:04 AM
To: mapserver-users at lists.osgeo.org
Cc: Lime, Steve D (DNR)
Subject: RE: [mapserver-users] About html code inside query attribute responses
Thanks Steve.
As you already pointed out [item name=?name? escape=?none?] behaves exactly as [name_raw], which in my case translates html tags from > to <br> . Not a really coherent behavior, is it?
Manuel
De: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
Enviado el: lunes, 14 de marzo de 2011 16:46
Para: Manuel Aymerich; mapserver-users at lists.osgeo.org
Asunto: RE: [mapserver-users] About html code inside query attribute responses
What you describe is basically correct. Except, there is no code in place to translate html elements like you mention with [attribute item name_raw]. That should be the correct method of telling MapServer not to touch the contents of an attribute at all. You could also try:
[item name=?name? escape=?none?]
That should generate the same output as [name_raw] and is the preferred way of doing this sort of thing.
Steve
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Manuel Aymerich
Sent: Monday, March 14, 2011 10:18 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] About html code inside query attribute responses
Hi,
I?ve prepared WMS getFeautreInfo queries so that mapserver?s template receives pure html attributes (containing the
tag for example). I would like to show this html code as it is. So that it integrates with the existing html header, footer and the rest of the template inside mapservers response, hoping that at the frontend the html response could be interpreted as a whole. However, the html stored data is shown either as escaped html or as url encoded data. I?ver read mapserver documentation but I had not success while implementing each possible solution:
If I try:
[attribute name] : I get escaped html (
is translated into <br>)
[attrribute name_esc]: I get url encdes text (
is translated into %3Cbr%2F%3)
[attribute item name_raw]: I get something in between but not pure html (
is translated into \n).
Mapserver documentation says ??By default the attributes are encoded especially for HTML representation? but I now disagree.
Any ideas about what?s happening here? Any workaround solutions?
Thanks in advance,
Manuel Aymerich
________________________________
Se certific? que el correo no contiene virus.
Comprobada por AVG - www.avg.es
Versi?n: 10.0.1204 / Base de datos de virus: 1498/3505 - Fecha de la versi?n: 13/03/2011
From bartvde at osgis.nl Wed Mar 16 10:13:15 2011
From: bartvde at osgis.nl (Bart van den Eijnden)
Date: Wed, 16 Mar 2011 18:13:15 +0100
Subject: [mapserver-users] GeoWebCache WMS
In-Reply-To: <4D808E66020000DF00071B3E@10.1.50.131>
References: <4D808E66020000DF00071B3E@10.1.50.131>
Message-ID: <1E158DE0-972B-4179-92A0-5B6B40953FE9@osgis.nl>
Hi,
it's a tiled service, so only imagery at certain scales. That's why it does not work in regular WMS clients, only tiled (WMS-C) clients.
Best regards,
Bart
--
Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html
Bart van den Eijnden
OSGIS
bartvde at osgis.nl
On Mar 16, 2011, at 5:18 PM, Eric Weisbender wrote:
> Hello,
>
> I am trying to use the GeoWebCache WMS service, http://maps.opengeo.org/geowebcache/service/wms, with cgi MapServer as a layer defined in may mapfile and it doesn't work. It also doesn't work in QGIS, GlobalMapper, or Google Earth. However, It works fine in may OpenLayers app. Any insight as to why it only works with OpenLayers would be greatly appreciated.
>
> Thanks
> EW
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From mwkorver at gmail.com Wed Mar 16 10:28:09 2011
From: mwkorver at gmail.com (Mark Korver)
Date: Wed, 16 Mar 2011 12:28:09 -0500
Subject: [mapserver-users] GeoWebCache WMS
In-Reply-To: <1E158DE0-972B-4179-92A0-5B6B40953FE9@osgis.nl>
References: <4D808E66020000DF00071B3E@10.1.50.131>
<1E158DE0-972B-4179-92A0-5B6B40953FE9@osgis.nl>
Message-ID:
GlobalMapper has been updated in ver 12 to work with tiled services,
but I have not tried WMS-C with it.
MapServer will also work with tiled services from gdal ver 1.7+ see
http://www.gdal.org/frmt_wms.html
Another angle on this is to put MapProxy in front of it which is easy
way to wms a tms source and get both for the price of one?
On Wed, Mar 16, 2011 at 12:13 PM, Bart van den Eijnden wrote:
> Hi,
> it's a tiled service, so only imagery at certain scales. That's why it does
> not work in regular WMS clients, only tiled (WMS-C) clients.
> Best regards,
> Bart
> --
> Looking for flexible support on OpenLayers or GeoExt? Please check out
> http://www.osgis.nl/support.html
> Bart van den Eijnden
> OSGIS
> bartvde at osgis.nl
> On Mar 16, 2011, at 5:18 PM, Eric Weisbender wrote:
>
> Hello,
>
> I am trying to use the GeoWebCache WMS service,
> http://maps.opengeo.org/geowebcache/service/wms,?with cgi MapServer as a
> layer defined in may mapfile and it doesn't work.? It also doesn't work in
> QGIS, GlobalMapper, or Google Earth.? However, It works fine in may
> OpenLayers app.? Any insight as to why it only works with?OpenLayers?would
> be greatly appreciated.
>
> Thanks
> EW
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
From fruitwerks at gmail.com Wed Mar 16 10:41:54 2011
From: fruitwerks at gmail.com (fruitwerks)
Date: Wed, 16 Mar 2011 10:41:54 -0700
Subject: [mapserver-users] display tile error as text?
Message-ID:
Is there a way to get a request resulting in an error to return plain text?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From saad.hessane at gmail.com Wed Mar 16 12:23:07 2011
From: saad.hessane at gmail.com (=?ISO-8859-1?Q?Mohamed_Sa=E2d_HESSANE?=)
Date: Wed, 16 Mar 2011 20:23:07 +0100
Subject: [mapserver-users] display tile error as text?
In-Reply-To:
References:
Message-ID:
intercept exception with try catch finally (C# mapscript)
2011/3/16 fruitwerks
> Is there a way to get a request resulting in an error to return plain text?
>
> Thanks!
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sarawut.map at gmail.com Thu Mar 17 01:32:29 2011
From: sarawut.map at gmail.com (Sarawut Ninsawat)
Date: Thu, 17 Mar 2011 17:32:29 +0900
Subject: [mapserver-users] Re:
Message-ID:
..Life without cigarettes? http://79.96.74.146/links.php?cjzyahoo=37am7
From Clement.MONIER at v-trafic.com Thu Mar 17 07:37:51 2011
From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=)
Date: Thu, 17 Mar 2011 15:37:51 +0100
Subject: [mapserver-users] showing line direction (without font)
Message-ID: <0B6D7F516315594DBEFE58178D91BD3201C1BCAA674A@exchangemm.mm.fr>
Hi,
Is it possible to display a layer of lines with direction's marks using MapServer ?
With no "font trick" (i.e a char symbol like '>',...)
See picture attached showing a nice sample
Thanks & Regards
Clement
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrow_nice_sample.jpg
Type: image/jpeg
Size: 9794 bytes
Desc: arrow_nice_sample.jpg
URL: