Re: [mapserver-users] qGIS mapfile error!

2010-02-03 Thread Jeff McKenna

James Card wrote:
On Tue, 02 Feb 2010 17:19:11 -0800, Vasile Cristian Stan 
 wrote:


I've created a mapfile using qGiS and when i run mapfile on the 
mapserver it gives me this error:


loadSymbolSet(): Unable to access file. (./symbols/symbols.txt)


Either make sure that you've got a valid symbols file at that path, or 
comment out that line of your map-file if you don't need it for labels 
in your map.


The map-file wizard does not produce a complete, ready-to-run map-file. 
It does most of the tedious layer-related stuff, but you must still edit 
the map-file to ensure that projections and paths and other details are 
valid. At least that has been my experience.




James is right that you might have to edit your mapfile by hand to 
remove these problems; however the QGIS Export to Mapfile tool is 
improving with each release.  They also need feedback on their tool, so 
you can let them know your testing results through their qgis-users 
email list (join at http://lists.osgeo.org/mailman/listinfo/qgis-user).


If you need a symbols.txt file, you can search this archive and use its 
symbols.txt file to start: http://www.maptools.org/dl/ms4w/gmap_ms4w_ms5.zip


-jeff

--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/


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


[mapserver-users] Access to a remote raster file in wms-mapfile

2010-02-03 Thread David Alda Fernandez de Lezea

Hi list,

I'm trying to access a remote raster file stored in NAS device (Iomega 
StorCenter Pro NAS 150D) which ip address is (192.168.1.4).

In my mapfile I'm putting the url like this:

DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw"

But when I try to load the wms layer, I don't get anything and mapserver throws 
the following error:

...
[Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access file. 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
[Wed Feb 03 09:11:13 2010].67000 Unable to open file 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this 
missing data.
[Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s
...

The thing, is that if I type this url in my web browser, I get the file 
downloading. What I'm doing wrong? Any ideas?

Thanks in advance.
 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] high quality print from external wms

2010-02-03 Thread Rahkonen Jukka
Hi,

WMS servers have often an upper limit for the output image size.  If
that is the case you can not do anything else than capture the print
area in smaller pieces and combine them with your application.  Test the
service by sending WMS calls manually with different HEIGHT and WIDTH
parameters.

-Jukka Rahkonen-
 
 Puolesta Basti2025 wrote:

 
> Hi all,
> i got an external wms included in my mapfile, like this:
> 
>  LAYER
> NAME 'grenzen_5'
> TYPE RASTER
> STATUS ON
> CONNECTION 'http://..?SERVICE=WMS&;'
> CONNECTIONTYPE WMS
> METADATA
> 'wms_srs' 'EPSG:31467'
> 'wms_title' 'Grenzen 5'
> 'wms_name' 'grenzen_5'
> 'wms_format' 'image/png'
> 'wms_server_version' '1.1.1'
> 'wms_onlineresource'
> 'http://..SERVICE=WMS&version=1.1.
> 1&service=WMS&request=GetLegendGraphic&layer=grenzen_5&for
> mat=image/png&STYLE=default'
> END
> END
> 
> Normaly the wms is not able to print with 288dpi.
> 
> My question is, how can i mod my mapfile so that i can use 
> high quality
> print with an external wms.
> 
> thx,
> basti 
> -- 
> View this message in context: 
> http://n2.nabble.com/high-quality-print-from-external-wms-tp45
> 00369p4500369.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Rendering bridges

2010-02-03 Thread tommasodb

Hallo list,

how can I render road bridges, like in mapnik?
(Example: 
http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null)

Which symbol can I use?

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


[mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Bart van den Eijnden
Hi list,

is it possible to have a colorramp in Mapserver based on the min and max value 
in the current extent?

So instead of predefining the min and max in DATARANGE, have Mapserver use the 
min and max value of the dataset in the current extent?

If not, would it be an easy change or a very complex one?

Best regards,
Bart___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: display isolines with raster data

2010-02-03 Thread windfreak

I tested gdal_contour and it actually looks ok. I think I can use that as a
pre process for mapserver.
My eye immediately fell on gdal_polygonize because I think that can create
polygon shapefiles. I haven't got gdal_polygonize running yet because of
some compatibility errors (gdal.Polygonize() not available) but will try to
find that out.

Thanks for your help



2010/2/1 Frank Warmerdam [via OSGeo.org] <
ml-node+4495096-771874...@n2.nabble.com
>

> windfreak wrote:
> > I am wondering if it's possible to present isolines from raster data. I
> have
> > NETCDF/GRIB/HDF5 data and want to plot lines. Until now I haven't found
> any
> > examples like that.
> >
> > If it's not possible, I think the best workaround is to create an
> > application that generates shapefiles from raster data. Then I can use
> these
> > shapefiles to plot lines with mapserver. Do you have suggestions for
> better
> > workarounds?
>
> Windfreak,
>
> MapServer does not support computing isolines on the fly, though you might
> get a vaguely similar effect by defining a class for each iso level with
> different colors.
>
> You can use the GDAL/OGR gdal_contour utility to produce iso-contours from
> a raster file. Be aware that it produces very fine isolines with one
> segment
> for each pixel crossed so some simplification might be appropriate before
> using the results for map rendering.
>
> Best regards,
> --
> ---+--
>
> I set the clouds in motion - turn up   | Frank Warmerdam, [hidden 
> email]
> 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
> [hidden 
> email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
>  View message @
> http://n2.nabble.com/display-isolines-with-raster-data-tp4495049p4495096.html
> To unsubscribe from display isolines with raster data, click here< (link 
> removed) ==>.
>
>
>


-- 
-http://www.topspots.org the best windsurfspots
-http://www.weer.nl the site I work at with work


-
http://www.topspots.org
-- 
View this message in context: 
http://n2.nabble.com/display-isolines-with-raster-data-tp4495049p4506967.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] OCI-22053: overflow error with CONNECTIONTYPE oraclespatial

2010-02-03 Thread Stefan Schantz

Hello,
I am trying to visualize some points from a oracle database (10.2) :
I am using
MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 
INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


My layer description is

LAYER
 NAME "tra_punkte"
 TYPE POINT
 STATUS ON
 DEBUG ON
 #DUMP TRUE
 CONNECTIONTYPE oraclespatial
 CONNECTION 
"***/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= 
1521)))(CONNECT_DATA=(SID=***)))"

 DATA "GEOM
   from
   (select geom, HOEHE, AUSGANGSHOEHE, ID
   FROM imis_geo.trapkt_6222
   )
   USING UNIQUE ID SRID 4326"
---

and the following statement is written in the log-file
--
[Wed Feb  3 12:54:00 2010].603594 msOracleSpatialLayerWhichShapes. Using 
this Sql to retrieve the data: SELECT ID, GEOM FROM (select geom, HOEHE, 
AUSGANGSHOEHE, ID

   FROM imis_geo.trapkt_6222
   ) WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 4326, 
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-70.5721827,29.3243683,69.9787827,79.1709317) 
),'querytype=window') = 'TRUE'
[Wed Feb  3 12:54:00 2010].823525 osGetOrdinates(): OracleSpatial error. 
OCI-22053: overflow error

--

But if I try the sql in SQL-Developer, i get the result without any errors?

The connection between UMN and oracle database is working fine in 
several different layers, but not in this one. Is there anything I can do?


Best Regards,
Stefan

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


Re: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Jan Hartmann

Would be dead easy with postGIS ...

Jan

On 3-2-2010 12:12, Bart van den Eijnden wrote:

Hi list,

is it possible to have a colorramp in Mapserver based on the min and max value 
in the current extent?

So instead of predefining the min and max in DATARANGE, have Mapserver use the 
min and max value of the dataset in the current extent?

If not, would it be an easy change or a very complex one?

Best regards,
Bart___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
   

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


Re: [mapserver-users] msplugin_mssql2008 and getFeature()

2010-02-03 Thread stela anders
Hi...
All I can say is mssql2008 is broken... I can´t use WMS GetFeatureInfo
because is buggy... The CGI nquery also doest work...
You should back to PostGis or something else...

Stella


2010/2/3 Gabe Codina 

> Hi All
>
> I have a web mapping app based on ms 5.2.1 and php mapScript.  Our business
> layers are stored in MSSQL2008 and were transferred from postgis some time
> ago.
>
> I have a requirement to highlight selected features on the map - the way
> this used to work was I would add a highlight layer to the map and  addthe
> selected features to it by using getShape and addFeature.
>
> Using the mssql plugin my calls to getShape (and getFeature) always return
> FALSE.  I know the features are there but they cannot be retrieved.
>
> Info:
>
> Sample data statement
>
>DATA "gExtent FROM (SELECT [iId],geometry::STGeomFromWKB([binExtentWKB],
> 4326) AS gExtent
>  ,[cIdentifiers],[cLabel],[iSessionId] FROM
> [Scratch].[tManagementUnitsGeometry] WHERE [iSessionId] = 310) AS FOO USING
> UNIQUE [iId] USING SRID=4326"
>
> Some Mapscript
>
>   if ($resTileShpIdx){
>$resShape = $qLayer->getShape($resTileShpIdx,
> $resShpIdx);
>} else {
>$resShape = $qLayer->getFeature($resShpIdx);
>}
>
> ...
>
>
>$newResLayer->addFeature($resShape);
>
>
> Any help will be greatly appreciated.
>
> Gabe Codina
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Bart van den Eijnden
Hi Jan,

can you elaborate on this approach? Using WKTRaster?

Best regards,
Bart

On Feb 3, 2010, at 2:11 PM, Jan Hartmann wrote:

> Would be dead easy with postGIS ...
> 
> Jan
> 
> On 3-2-2010 12:12, Bart van den Eijnden wrote:
>> Hi list,
>> 
>> is it possible to have a colorramp in Mapserver based on the min and max 
>> value in the current extent?
>> 
>> So instead of predefining the min and max in DATARANGE, have Mapserver use 
>> the min and max value of the dataset in the current extent?
>> 
>> If not, would it be an easy change or a very complex one?
>> 
>> Best regards,
>> Bart___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>   
> 

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


Re: [mapserver-users] Raster layer as a way of branding

2010-02-03 Thread Frost89

That's exactly what i was looking for, thanks a lot.

- Kristian
-- 
View this message in context: 
http://n2.nabble.com/Raster-layer-as-a-way-of-branding-tp4439127p4507272.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Jan Hartmann

Hi Bart,

Not sure if this is what you mean, but you can always compute a variable 
with the range you want. The following is inefficient, and not really 
dead easy, but it works.


Say, in your PostGIS table "tbl", your want to display the column "val" 
in 10 colors, with "[minx],[miny],[maxx],[maxy]" as the current extent 
values (e.g. from a template) and "mysrid" as the srid:


LABELITEM labelval

select round ( ((val::float - min) / (max - min)) * 10) as labelval
from (
   select min(val) as min,max(val) as max
   from  tbl
   where the_geom && st_setsrid('BOX3D(' || [minx] || ' ' || 
[miny] || ',' || [maxx] || ' ' || [maxy] || ')'::box3d,mysrid)

) as foo1
,  (
 select val from tbl
) as foo2
;

Jan

On 3-2-2010 14:14, Bart van den Eijnden wrote:

Hi Jan,

can you elaborate on this approach? Using WKTRaster?

Best regards,
Bart

On Feb 3, 2010, at 2:11 PM, Jan Hartmann wrote:

   

Would be dead easy with postGIS ...

Jan

On 3-2-2010 12:12, Bart van den Eijnden wrote:
 

Hi list,

is it possible to have a colorramp in Mapserver based on the min and max value 
in the current extent?

So instead of predefining the min and max in DATARANGE, have Mapserver use the 
min and max value of the dataset in the current extent?

If not, would it be an easy change or a very complex one?

Best regards,
Bart___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

   
 
   

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


Re: Re: [mapserver-users] high quality print from external wms

2010-02-03 Thread DeDuikertjes

Hi,

WMS services do often have an upper limit for the output image size.

According to WMS specs they should advertise that in response to a 
getcapabilities request.
Despite that, Mapserver doesn't always do that. At least my version 
(5.1) doesn't.


Piecing together an image from smaller pieces isn't that easy when 
labels are involved (and perhaps also when hatch symbols are involved).


Cheers, MArco


Rahkonen Jukka schreef:

Hi,

WMS servers have often an upper limit for the output image size.  If
that is the case you can not do anything else than capture the print
area in smaller pieces and combine them with your application.  Test the
service by sending WMS calls manually with different HEIGHT and WIDTH
parameters.

-Jukka Rahkonen-
 
 Puolesta Basti2025 wrote:


 
  

Hi all,
i got an external wms included in my mapfile, like this:

 LAYER
NAME 'grenzen_5'
TYPE RASTER
STATUS ON
CONNECTION 'http://..?SERVICE=S&;'
CONNECTIONTYPE WMS
METADATA
'wms_srs' 'EPSG:31467'
'wms_title' 'Grenzen 5'
'wms_name' 'grenzen_5'
'wms_format' 'image/png'
'wms_server_version' '1.1.1'
'wms_onlineresource'
'http://..SERVICE=S&version=1.1.
1&service=S&request=GetLegendGraphic&layer=grenzen_5&for
mat=age/png&STYLEÞfault'
END
END

Normaly the wms is not able to print with 288dpi.

My question is, how can i mod my mapfile so that i can use 
high quality

print with an external wms.

thx,
basti 
--
View this message in context: 
http://n2.nabble.com/high-quality-print-from-external-wms-tp45

00369p4500369.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




  

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


Re: [mapserver-users] Access to a remote raster file in wms-mapfile

2010-02-03 Thread Daniel Morissette

I'd suggest you start by making sure GDAL can open the file:

1- Does "gdalinfo --formats" list the ECW format?

2- Check that you are able to open the file with
gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw

Daniel

David Alda Fernandez de Lezea wrote:

Hi list,

I'm trying to access a remote raster file stored in NAS device (Iomega 
StorCenter Pro NAS 150D) which ip address is (192.168.1.4).

In my mapfile I'm putting the url like this:

DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw"

But when I try to load the wms layer, I don't get anything and mapserver throws 
the following error:

...
[Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access file. 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
[Wed Feb 03 09:11:13 2010].67000 Unable to open file 
\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring this 
missing data.
[Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s
...

The thing, is that if I type this url in my web browser, I get the file 
downloading. What I'm doing wrong? Any ideas?

Thanks in advance.
 
 
Un saludo,
 
··


David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT

Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] high quality print from external wms

2010-02-03 Thread Bart van den Eijnden
Marco,

this is not exactly right.

Only WMS 1.3 has elements in the GetCapabilities response to advertize this 
limit (MaxWidth and MaxHeight). WMS 1.1.X did not have this mechanism.

You are using MS 5.1, and there is no WMS 1.3 support in that version. So it's 
logical that Mapserver can't advertize those limits in WMS 1.1.X.

Best regards,
Bart

On Feb 3, 2010, at 3:39 PM, DeDuikertjes wrote:

> Hi,
> 
> WMS services do often have an upper limit for the output image size.
> 
> According to WMS specs they should advertise that in response to a 
> getcapabilities request.
> Despite that, Mapserver doesn't always do that. At least my version (5.1) 
> doesn't.
> 
> Piecing together an image from smaller pieces isn't that easy when labels are 
> involved (and perhaps also when hatch symbols are involved).
> 
> Cheers, MArco
> 
> 
> Rahkonen Jukka schreef:
>> Hi,
>> 
>> WMS servers have often an upper limit for the output image size.  If
>> that is the case you can not do anything else than capture the print
>> area in smaller pieces and combine them with your application.  Test the
>> service by sending WMS calls manually with different HEIGHT and WIDTH
>> parameters.
>> 
>> -Jukka Rahkonen-
>>  Puolesta Basti2025 wrote:
>> 
>>   
>>> Hi all,
>>> i got an external wms included in my mapfile, like this:
>>> 
>>> LAYER
>>> NAME 'grenzen_5'
>>> TYPE RASTER
>>> STATUS ON
>>> CONNECTION 'http://..?SERVICE=S&;'
>>> CONNECTIONTYPE WMS
>>> METADATA
>>> 'wms_srs' 'EPSG:31467'
>>> 'wms_title' 'Grenzen 5'
>>> 'wms_name' 'grenzen_5'
>>> 'wms_format' 'image/png'
>>> 'wms_server_version' '1.1.1'
>>> 'wms_onlineresource'
>>> 'http://..SERVICE=S&version=1.1.
>>> 1&service=S&request=GetLegendGraphic&layer=grenzen_5&for
>>> mat=age/png&STYLEÞfault'
>>> END
>>> END
>>> 
>>> Normaly the wms is not able to print with 288dpi.
>>> 
>>> My question is, how can i mod my mapfile so that i can use high quality
>>> print with an external wms.
>>> 
>>> thx,
>>> basti -- 
>>> View this message in context: 
>>> http://n2.nabble.com/high-quality-print-from-external-wms-tp45
>>> 00369p4500369.html
>>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>> ___
>>> mapserver-users mailing list
>>> mapserver-users@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>> 
>>>
>> 
>>  
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 

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


Re: [mapserver-users] high quality print from external wms

2010-02-03 Thread DeDuikertjes


Bart,

OK, I stand corrected!
Nice to see that there are actually people who know such things by heart.

Marco


Bart van den Eijnden schreef:

Marco,

this is not exactly right.

Only WMS 1.3 has elements in the GetCapabilities response to advertize this 
limit (MaxWidth and MaxHeight). WMS 1.1.X did not have this mechanism.

You are using MS 5.1, and there is no WMS 1.3 support in that version. So it's 
logical that Mapserver can't advertize those limits in WMS 1.1.X.

Best regards,
Bart

On Feb 3, 2010, at 3:39 PM, DeDuikertjes wrote:

  

Hi,

WMS services do often have an upper limit for the output image size.

According to WMS specs they should advertise that in response to a 
getcapabilities request.
Despite that, Mapserver doesn't always do that. At least my version (5.1) 
doesn't.

Piecing together an image from smaller pieces isn't that easy when labels are 
involved (and perhaps also when hatch symbols are involved).

Cheers, MArco


Rahkonen Jukka schreef:


Hi,

WMS servers have often an upper limit for the output image size.  If
that is the case you can not do anything else than capture the print
area in smaller pieces and combine them with your application.  Test the
service by sending WMS calls manually with different HEIGHT and WIDTH
parameters.

-Jukka Rahkonen-
 Puolesta Basti2025 wrote:

  
  

Hi all,
i got an external wms included in my mapfile, like this:

LAYER
NAME 'grenzen_5'
TYPE RASTER
STATUS ON
CONNECTION 'http://..?SERVICE=S&;'
CONNECTIONTYPE WMS
METADATA
'wms_srs' 'EPSG:31467'
'wms_title' 'Grenzen 5'
'wms_name' 'grenzen_5'
'wms_format' 'image/png'
'wms_server_version' '1.1.1'
'wms_onlineresource'
'http://..SERVICE=S&version=1.1.
1&service=S&request=GetLegendGraphic&layer=grenzen_5&for
mat=age/png&STYLEÞfault'
END
END

Normaly the wms is not able to print with 288dpi.

My question is, how can i mod my mapfile so that i can use high quality
print with an external wms.

thx,
basti -- 
View this message in context: http://n2.nabble.com/high-quality-print-from-external-wms-tp45

00369p4500369.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

   

 
  

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





  

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


Re: [mapserver-users] Using e00 files

2010-02-03 Thread Jon Miner


- Original Message 
From: Peter N. Schweitzer 
To: mapserver-users@lists.osgeo.org
Sent: Tue, February 2, 2010 12:24:44 PM
Subject: Re: [mapserver-users] Using e00 files

On 02/02/2010 11:32 AM, Jon Miner wrote:
> Now, I'm trying to layer on information from the GRANIT website:
>
> http://www.granit.unh.edu/
>
> ftp://ftp.granit.sr.unh.edu/pub/GRANIT_Data/Vector_Data/Transportation_Networks/d-railroads/rrnh.e00
>
> These files are "e00" files. Based on some other mailing list entries,  I 
> used the ogr2ogr command to convert the file into Shapefiles:
>
> ogr2ogr -f "ESRI Shapefile" temp ../data/rrnh.e00
>
> then copied the files into my data directory, and added a new layer to the 
> map file:
>
> LAYER
>NAME "rail"
>TYPE LINE
>STATUS on
>DATA nhrail
>CLASS
>  NAME "Railroads"
>  SYMBOL 0
>  COLOR 168 0 184
>END
> END
>
> Something is wrong since the line data does not get rendered. Maybe there is 
> a better approach instead of converting to Shapefiles?

Jon,

The rr data are in NH state plane coordinates--are the other data you
are using in the same projection?


--

Thanks Peter,

I had to specify the raster layer as:

LAYER
  NAME "usgs"
  TYPE RASTER
  STATUS on
  DATA o43071a4.tif
  PROJECTION
"init=epsg:26719"
  END
END

So, I think the answer to your question is, no they're not in the same 
projection.  What do I need to do to get mapserver to translate between the 
two? Seems to me that mapserver should be able to read the information out of 
the files (like ogrinfo and gdalinfo do) and do the "right thing". I admit this 
might be a total misunderstanding on my part... still learning about 
mapserver's capabilities.



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


Re: [mapserver-users] Using e00 files

2010-02-03 Thread Peter N. Schweitzer

On 02/03/2010 09:29 AM, Jon Miner wrote:

I had to specify the raster layer as:

LAYER
   NAME "usgs"
   TYPE RASTER
   STATUS on
   DATA o43071a4.tif
   PROJECTION
 "init=epsg:26719"
   END
END

So, I think the answer to your question is, no they're not in the same projection.  What 
do I need to do to get mapserver to translate between the two? Seems to me that mapserver 
should be able to read the information out of the files (like ogrinfo and gdalinfo do) 
and do the "right thing". I admit this might be a total misunderstanding on my 
part... still learning about mapserver's capabilities.


Yes, epsg:26719 refers to UTM zone 19; the NH state plane is, I think,
somewhat different.

The ARC.prj file generated by ogr2ogr contains this (expanded for clarity):

PROJCS[
  "NAD83_New_Hampshire",
  GEOGCS[
"GCS_North_American_1983",
DATUM[
  "D_North_American_1983",
  SPHEROID["GRS_1980",6378137,298.257222101]
  ],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]
],
  PROJECTION["Transverse_Mercator"],
  PARAMETER["latitude_of_origin",42.5],
  PARAMETER["central_meridian",-71.67],
  PARAMETER["scale_factor",0.7],
  PARAMETER["false_easting",984250],
  PARAMETER["false_northing",0],
  UNIT["Foot_US",0.30480060960121924]
  ]

epsg:3437 would use

PROJECTION
  "proj=tmerc"
  "lat_0=42.5"
  "lon_0=-71.67"
  "k=0.7"
  "x_0=30.0"
  "y_0=0"
  "ellps=GRS80"
  "datum=NAD83"
  "units=us-ft"
  end

but because the false_easting in the prj file is not 30,
it looks to me like you should try this:

PROJECTION
  "proj=tmerc"
  "lat_0=42.5"
  "lon_0=-71.67"
  "k=0.7"
  "x_0=984250.0"
  "y_0=0"
  "ellps=GRS80"
  "datum=NAD83"
  "units=us-ft"
  end

I wouldn't claim to be expert in any of this, so I welcome a review
by someone more familiar with these projection parameters.

Peter
--
Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192)
(703) 648-6533  FAX: (703) 648-6252  email: pschweit...@usgs.gov

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


RE: [mapserver-users] Rendering bridges

2010-02-03 Thread Lime, Steve D (DNR)
What feature type are bridges represented with in OpenStreetMap?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommasodb
Sent: Wednesday, February 03, 2010 6:08 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rendering bridges

Hallo list,

how can I render road bridges, like in mapnik?
(Example: 
http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null)
Which symbol can I use?

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


RE: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Lime, Steve D (DNR)
How big a change would depend on the implementation. The brute force approach 
where you simply loop through features once to compute ranges and then again to 
draw would be probably pretty straight forward and driver independent. Wouldn't 
be fast (but would be simple). Complexity would be added as you try and boost 
performance by:

  - allowing drivers to compute stats in their own way (e.g. add to the layer 
API something like msLayerGetStats(...))
  - caching geometries from a first pass through the shapes for the second

Steve

BTW The color ramp support needs to be cleaned up first. I think we scared the 
originator of that code away when an RFC was originally put together.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bart van den 
Eijnden
Sent: Wednesday, February 03, 2010 5:12 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] colorramp and datarange on the fly?

Hi list,

is it possible to have a colorramp in Mapserver based on the min and max value 
in the current extent?

So instead of predefining the min and max in DATARANGE, have Mapserver use the 
min and max value of the dataset in the current extent?

If not, would it be an easy change or a very complex one?

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


Re: [mapserver-users] Rendering bridges

2010-02-03 Thread Stephen Woodbridge

Lime, Steve D (DNR) wrote:

What feature type are bridges represented with in OpenStreetMap?


I believe they are just vector "ways" that have an attribute tag on them 
like tunnel=yes or bridge=yes


So you would just add an additional STYLE to draw the dark outline 
before the road or you could use the new OUTLINEWIDTH  within the STYLE.


-Steve W


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommasodb
Sent: Wednesday, February 03, 2010 6:08 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rendering bridges

Hallo list,

how can I render road bridges, like in mapnik?
(Example: 
http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null)

Which symbol can I use?

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


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


RE: [mapserver-users] Rendering bridges

2010-02-03 Thread Fawcett, David (MPCA)
The feature that he is referencing is just a line segment with an additional 
attribute of 'bridge=yes'.  

* bridge: yes
* highway: trunk
* layer: 1
* name: Manchester Road
* ref: A56

If you just wanted to use the road data and not create an additional bridges 
data set, you would likely need to split up the road features so that the 
segment that is a bridge is an individual feature.  

I haven't worked with any shapefile extracts from OSM, so the data may already 
be like this.   

Assuming that you have a line shapefile that has a column called 'bridge', you 
could set up two classes in your roads layer.  The first one would have an 
expression like ('[bridge] = 'yes') and the second class wouldn't have an 
expression so it would catch the rest of the lines.  

In the first class, you would stack two lines, the bottom one being the color 
of your bridge and wider than the roads line that will go on top of it.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D 
(DNR)
Sent: Wednesday, February 03, 2010 9:50 AM
To: tommasodb; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Rendering bridges

What feature type are bridges represented with in OpenStreetMap?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommasodb
Sent: Wednesday, February 03, 2010 6:08 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rendering bridges

Hallo list,

how can I render road bridges, like in mapnik?
(Example: 
http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null)
Which symbol can I use?

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


Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Jan Hartmann
If you allow two passes, you can have all sorts of summarized values in 
the template, to be used in the second pass, like Bart's actual extent 
used for coloring. Doesn't look to difficult to implement to me, as long 
as the two passes only get called when really necessary. I'm not sure if 
performance is an issue for MapServer itself: if you really want high 
performance, you should use the underlying format or database directly.


Jan

On 3-2-2010 17:02, Lime, Steve D (DNR) wrote:

How big a change would depend on the implementation. The brute force approach 
where you simply loop through features once to compute ranges and then again to 
draw would be probably pretty straight forward and driver independent. Wouldn't 
be fast (but would be simple). Complexity would be added as you try and boost 
performance by:

   - allowing drivers to compute stats in their own way (e.g. add to the layer 
API something like msLayerGetStats(...))
   - caching geometries from a first pass through the shapes for the second

Steve

BTW The color ramp support needs to be cleaned up first. I think we scared the 
originator of that code away when an RFC was originally put together.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bart van den 
Eijnden
Sent: Wednesday, February 03, 2010 5:12 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] colorramp and datarange on the fly?

Hi list,

is it possible to have a colorramp in Mapserver based on the min and max value 
in the current extent?

So instead of predefining the min and max in DATARANGE, have Mapserver use the 
min and max value of the dataset in the current extent?

If not, would it be an easy change or a very complex one?

Best regards,
Bart___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-dev mailing list
mapserver-...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
   

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


[mapserver-users] WMS Mapfile implementation

2010-02-03 Thread Joseph Harwood
Greetings,

I have a 2 part question.
The USGS offers aerial imagery WMS service. This URL shows the location:
http://seamless.usgs.gov/wms_services.php?layerid=15

 I want to incorporate a WMS service from the USGS that references many
layers (in this case, county aerial imagery). The getcapabilites request
show the layers in xml:
...
OH_WoodCounty_1.0ft_Color_Mar_2006
OH_WilliamsCounty_1.0ft_Color_Mar_2006
OH_WayneCounty_1.0ft_Color_Mar_2006
and so on.

The online service URL is:
http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS

1. Is there a way to populate all these layers into my map with a single
request, or do I need to make a mapfile layer object for each county?

2. If so, In doing this do I need the metadata to spell out each
layer's(county) specific metadata? {title, bbox, name, layer, srid}


My mapfile currently reads:

LAYER
NAME "OSIP-WMS"
TYPE RASTER
#TRANSPARENCY 40
STATUS OFF
#MINSCALEDENOM 6000
CONNECTIONTYPE WMS
CONNECTION "
http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS&layers=OH_AllenCounty_1.0ft_Color_Mar_2006
"

METADATA
  "wms_srs" "EPSG:4326"
  "wms_title"   "OH_AllenCounty_1.0ft_Color_Mar_2006"
  "wms_name""OH_AllenCounty_1.0ft_Color_Mar_2006"
  "wms_layer"   "OH_AllenCounty_1.0ft_Color_Mar_2006"
  "wms_server_version"  "1.1.1"
  "wms_format"  "image/png"
  #"wms_latlonboundingbox" "-85.00, 38.00, -80.25,
42.00"
#"wms_opaque" "255,255,255"
  "basemap" "1"
END

  END

As I have tried to get a single county to work, but I have had no success,
yet.
Any haelp would be appreciated.

Thank you

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


Re: [mapserver-users] Rendering bridges

2010-02-03 Thread tommasodb

Stephen Woodbridge wrote:

Check out this:
http://code.google.com/p/mapserver-utils

This code has an example of how to do that.

-Steve W


Hallo Stephen,

thanks, but unfortunately the rendering of bridges are not configured there.

cheers,
tom

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


Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Stephen Woodbridge

Right, I think there are two use cases:

1) data exploration   - can be slower but needs flexibility
2) production serving - needs to be fast, and probably limits 
flexibility to some predefined models


I think that there is also another angle to this, which is how the 
summary data is computed for example:


1) min/max/average/std
2) statistical analysis
3) binning into some number of classes
4) removing outliers so the results are not skewed by them
5) etc

There are a lot of ways the people might need to summarize they data.

If the data is in a database, then you can add all the analysis, slicing 
and dicing to the database and the rendering to mapserver.


So, I think that it would be nice to be able to read some "metadata" 
about a layer and then use that for building the display using something 
like colorramp and datarange. We might want to look at ways that we 
could establish in mapserver for fetching the "metadata" about a layer. 
For example:


1) define the "metadata" in the METADATA object
2) define a .met file for a shapefile or tileindex that contained the 
"metadata" for that layer
3) define a separate SQL query that could be used to fetch the 
"metadata" for the layer

4) something similar for other layer providers.
5) scan the data in two passes to compute some simple "metadata"

Thoughts?

-Steve W


Jan Hartmann wrote:
If you allow two passes, you can have all sorts of summarized values in 
the template, to be used in the second pass, like Bart's actual extent 
used for coloring. Doesn't look to difficult to implement to me, as long 
as the two passes only get called when really necessary. I'm not sure if 
performance is an issue for MapServer itself: if you really want high 
performance, you should use the underlying format or database directly.


Jan

On 3-2-2010 17:02, Lime, Steve D (DNR) wrote:
How big a change would depend on the implementation. The brute force 
approach where you simply loop through features once to compute ranges 
and then again to draw would be probably pretty straight forward and 
driver independent. Wouldn't be fast (but would be simple). Complexity 
would be added as you try and boost performance by:


   - allowing drivers to compute stats in their own way (e.g. add to 
the layer API something like msLayerGetStats(...))
   - caching geometries from a first pass through the shapes for the 
second


Steve

BTW The color ramp support needs to be cleaned up first. I think we 
scared the originator of that code away when an RFC was originally put 
together.


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bart van 
den Eijnden

Sent: Wednesday, February 03, 2010 5:12 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] colorramp and datarange on the fly?

Hi list,

is it possible to have a colorramp in Mapserver based on the min and 
max value in the current extent?


So instead of predefining the min and max in DATARANGE, have Mapserver 
use the min and max value of the dataset in the current extent?


If not, would it be an easy change or a very complex one?

Best regards,
Bart___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-dev mailing list
mapserver-...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
   

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


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


Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Stephen Woodbridge

To add a little more to this...

What I have done in the past for thematic maps is to do the analysis in 
the database and to bin the data into a new column or columns for each 
analysis. Then in my mapfile, I can select the column that I want to 
display. This made it easy to get fast maps because mapserver only had 
to render based on a simple value 1-n based on the number of bins I 
computed.


I have also create a stored procedure in the past that I could pass in 
the number of bins and the type of analysis, and it would then compute 
the binned values on the fly. I found that there was a lot of 
flexibility doing this in postgresql and have mapserver generate the maps.


This would also be a good way to prototype up the various analysis that 
you might want to explore. The one big missing piece to doing this is 
that there is not easy way to dynamically change the number of classes 
(bins) that are being generated in mapserver and assign them colors, 
which the colorramp and datarange would help with especially if there 
were a way to get those values dynamically from the data source.


-Steve W

Stephen Woodbridge wrote:

Right, I think there are two use cases:

1) data exploration   - can be slower but needs flexibility
2) production serving - needs to be fast, and probably limits 
flexibility to some predefined models


I think that there is also another angle to this, which is how the 
summary data is computed for example:


1) min/max/average/std
2) statistical analysis
3) binning into some number of classes
4) removing outliers so the results are not skewed by them
5) etc

There are a lot of ways the people might need to summarize they data.

If the data is in a database, then you can add all the analysis, slicing 
and dicing to the database and the rendering to mapserver.


So, I think that it would be nice to be able to read some "metadata" 
about a layer and then use that for building the display using something 
like colorramp and datarange. We might want to look at ways that we 
could establish in mapserver for fetching the "metadata" about a layer. 
For example:


1) define the "metadata" in the METADATA object
2) define a .met file for a shapefile or tileindex that contained the 
"metadata" for that layer
3) define a separate SQL query that could be used to fetch the 
"metadata" for the layer

4) something similar for other layer providers.
5) scan the data in two passes to compute some simple "metadata"

Thoughts?

-Steve W


Jan Hartmann wrote:
If you allow two passes, you can have all sorts of summarized values 
in the template, to be used in the second pass, like Bart's actual 
extent used for coloring. Doesn't look to difficult to implement to 
me, as long as the two passes only get called when really necessary. 
I'm not sure if performance is an issue for MapServer itself: if you 
really want high performance, you should use the underlying format or 
database directly.


Jan

On 3-2-2010 17:02, Lime, Steve D (DNR) wrote:
How big a change would depend on the implementation. The brute force 
approach where you simply loop through features once to compute 
ranges and then again to draw would be probably pretty straight 
forward and driver independent. Wouldn't be fast (but would be 
simple). Complexity would be added as you try and boost performance by:


   - allowing drivers to compute stats in their own way (e.g. add to 
the layer API something like msLayerGetStats(...))
   - caching geometries from a first pass through the shapes for the 
second


Steve

BTW The color ramp support needs to be cleaned up first. I think we 
scared the originator of that code away when an RFC was originally 
put together.


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bart 
van den Eijnden

Sent: Wednesday, February 03, 2010 5:12 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] colorramp and datarange on the fly?

Hi list,

is it possible to have a colorramp in Mapserver based on the min and 
max value in the current extent?


So instead of predefining the min and max in DATARANGE, have 
Mapserver use the min and max value of the dataset in the current 
extent?


If not, would it be an easy change or a very complex one?

Best regards,
Bart___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-dev mailing list
mapserver-...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
   

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


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


_

Re: [mapserver-users] Layer (line) with LABELITEM...

2010-02-03 Thread Paul james
Hi Steve!
Is it posible to do that now with new mapserver?

Thanks

On Mon, Oct 20, 2008 at 5:40 PM, Steve Lime wrote:

> Hi Paul: For now you must have 2 layers. There's no way to make one
> style apply
> to the line work and the another to a label marker. That may change in
> 5.4 but for
> now you're stuck with 2.
>
> Steve
>
> >>> "Paul james"  10/17/08 12:44 PM >>>
>  Hello guys...
> I have 2 layers, LINE and ANNOTATION...
> Like that :
>
> LAYER
>NAME TestLINE
>TYPE LINE
>  ...
>CLASS
>  STYLE
>SYMBOL 'circle'
>SIZE 16
>COLOR 175 175 175
>  END  ## BG
>  STYLE
>SYMBOL 'circle'
>SIZE 12
>COLOR 247 190 33
>  END
>  MAXSCALE 4
>END
>CLASS
>  MINSCALE 40001
>  #NAME 'US Interstate'  ## Using Interstate Shield Symbol
> Instead
>  STYLE
>SYMBOL 'circle'
>SIZE 14
>COLOR 175 175 175
>  END  ## BG
>  STYLE
>SYMBOL 'circle'
>SIZE 10
>COLOR 247 190 33
>  END
>  MAXSCALE 45000
>END
>END
>
> And I have a ANNOTATION to label the TestLINE layer:
> LAYER
>NAME 'road_sym'
>TYPE ANNOTATION
>LABELITEM 'roadnumber'
>CLASS
>  STYLE
>SYMBOL 'road'
>SIZE 28
>COLOR 255 0 0
>  END
>  STYLE
>SYMBOL 'road'
>SIZE 28
>COLOR 115 113 206
>OUTLINECOLOR 254 254 254
>  END
>  LABEL
>TYPE TRUETYPE
>FONT Arial
>SIZE 8
>COLOR 254 254 254
>MINDISTANCE 100
>MINFEATURESIZE 10
>OFFSET 0 0
>PARTIALS FALSE
>  END
>  MAXSCALE 2000
>END
>  END
>
> That works great...
> But, Is that possible to make just one layer with lines and annotation..
> I
> tried using LABELITEM and LABEL on LINE layer... But where Am I supposed
> to
> write the label Style ?
>
> []́s
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Rendering bridges

2010-02-03 Thread Lime, Steve D (DNR)
I don't believe this will get you the desired effect. You'll get the lines but 
you'll also get the line end caps. That's the real trick, turning those off. 
I'm not sure that you can.

Steve

-Original Message-
From: Fawcett, David (MPCA) 
Sent: Wednesday, February 03, 2010 10:13 AM
To: Lime, Steve D (DNR); tommasodb; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Rendering bridges

The feature that he is referencing is just a line segment with an additional 
attribute of 'bridge=yes'.  

* bridge: yes
* highway: trunk
* layer: 1
* name: Manchester Road
* ref: A56

If you just wanted to use the road data and not create an additional bridges 
data set, you would likely need to split up the road features so that the 
segment that is a bridge is an individual feature.  

I haven't worked with any shapefile extracts from OSM, so the data may already 
be like this.   

Assuming that you have a line shapefile that has a column called 'bridge', you 
could set up two classes in your roads layer.  The first one would have an 
expression like ('[bridge] = 'yes') and the second class wouldn't have an 
expression so it would catch the rest of the lines.  

In the first class, you would stack two lines, the bottom one being the color 
of your bridge and wider than the roads line that will go on top of it.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D 
(DNR)
Sent: Wednesday, February 03, 2010 9:50 AM
To: tommasodb; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Rendering bridges

What feature type are bridges represented with in OpenStreetMap?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommasodb
Sent: Wednesday, February 03, 2010 6:08 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rendering bridges

Hallo list,

how can I render road bridges, like in mapnik?
(Example: 
http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null)
Which symbol can I use?

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


RE: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on the fly?

2010-02-03 Thread Lime, Steve D (DNR)
At one point I toyed with the idea of supporting a .stats file for a layer and 
supplying a routine (command-line) that would populate it. The file would 
contain data like you're talking about. Doesn't help with the on-the-fly needs 
Bart was articulating.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Wednesday, February 03, 2010 10:39 AM
To: Jan Hartmann
Cc: Lime, Steve D (DNR); MapServer Dev Mailing List; 
mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-dev] RE: [mapserver-users] colorramp and datarange on 
the fly?

Right, I think there are two use cases:

1) data exploration   - can be slower but needs flexibility
2) production serving - needs to be fast, and probably limits 
flexibility to some predefined models

I think that there is also another angle to this, which is how the 
summary data is computed for example:

1) min/max/average/std
2) statistical analysis
3) binning into some number of classes
4) removing outliers so the results are not skewed by them
5) etc

There are a lot of ways the people might need to summarize they data.

If the data is in a database, then you can add all the analysis, slicing 
and dicing to the database and the rendering to mapserver.

So, I think that it would be nice to be able to read some "metadata" 
about a layer and then use that for building the display using something 
like colorramp and datarange. We might want to look at ways that we 
could establish in mapserver for fetching the "metadata" about a layer. 
For example:

1) define the "metadata" in the METADATA object
2) define a .met file for a shapefile or tileindex that contained the 
"metadata" for that layer
3) define a separate SQL query that could be used to fetch the 
"metadata" for the layer
4) something similar for other layer providers.
5) scan the data in two passes to compute some simple "metadata"

Thoughts?

-Steve W


Jan Hartmann wrote:
> If you allow two passes, you can have all sorts of summarized values in 
> the template, to be used in the second pass, like Bart's actual extent 
> used for coloring. Doesn't look to difficult to implement to me, as long 
> as the two passes only get called when really necessary. I'm not sure if 
> performance is an issue for MapServer itself: if you really want high 
> performance, you should use the underlying format or database directly.
> 
> Jan
> 
> On 3-2-2010 17:02, Lime, Steve D (DNR) wrote:
>> How big a change would depend on the implementation. The brute force 
>> approach where you simply loop through features once to compute ranges 
>> and then again to draw would be probably pretty straight forward and 
>> driver independent. Wouldn't be fast (but would be simple). Complexity 
>> would be added as you try and boost performance by:
>>
>>- allowing drivers to compute stats in their own way (e.g. add to 
>> the layer API something like msLayerGetStats(...))
>>- caching geometries from a first pass through the shapes for the 
>> second
>>
>> Steve
>>
>> BTW The color ramp support needs to be cleaned up first. I think we 
>> scared the originator of that code away when an RFC was originally put 
>> together.
>>
>> -Original Message-
>> From: mapserver-users-boun...@lists.osgeo.org 
>> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bart van 
>> den Eijnden
>> Sent: Wednesday, February 03, 2010 5:12 AM
>> To: mapserver-users@lists.osgeo.org
>> Subject: [mapserver-users] colorramp and datarange on the fly?
>>
>> Hi list,
>>
>> is it possible to have a colorramp in Mapserver based on the min and 
>> max value in the current extent?
>>
>> So instead of predefining the min and max in DATARANGE, have Mapserver 
>> use the min and max value of the dataset in the current extent?
>>
>> If not, would it be an easy change or a very complex one?
>>
>> Best regards,
>> Bart___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> ___
>> mapserver-dev mailing list
>> mapserver-...@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
> ___
> mapserver-dev mailing list
> mapserver-...@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev

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


Re: [mapserver-users] Rendering bridges

2010-02-03 Thread Christy Nieman

Hi,

If you draw it in two layers, one with the colour and width you want for 
the bridges, and the other with the road line to go on top, you will 
essentially cover up the end caps.  The bridges layer would have to come 
first in the mapfile, followed by the road line layer.


Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca

On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote:

I don't believe this will get you the desired effect. You'll get the lines but 
you'll also get the line end caps. That's the real trick, turning those off. 
I'm not sure that you can.

Steve

-Original Message-
From: Fawcett, David (MPCA)
Sent: Wednesday, February 03, 2010 10:13 AM
To: Lime, Steve D (DNR); tommasodb; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Rendering bridges

The feature that he is referencing is just a line segment with an additional 
attribute of 'bridge=yes'.

 * bridge: yes
 * highway: trunk
 * layer: 1
 * name: Manchester Road
 * ref: A56

If you just wanted to use the road data and not create an additional bridges 
data set, you would likely need to split up the road features so that the 
segment that is a bridge is an individual feature.

I haven't worked with any shapefile extracts from OSM, so the data may already 
be like this.

Assuming that you have a line shapefile that has a column called 'bridge', you 
could set up two classes in your roads layer.  The first one would have an 
expression like ('[bridge] = 'yes') and the second class wouldn't have an 
expression so it would catch the rest of the lines.

In the first class, you would stack two lines, the bottom one being the color 
of your bridge and wider than the roads line that will go on top of it.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D 
(DNR)
Sent: Wednesday, February 03, 2010 9:50 AM
To: tommasodb; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Rendering bridges

What feature type are bridges represented with in OpenStreetMap?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommasodb
Sent: Wednesday, February 03, 2010 6:08 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Rendering bridges

Hallo list,

how can I render road bridges, like in mapnik?
(Example:
http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null)
Which symbol can I use?

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


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


RE: [mapserver-users] Rendering bridges

2010-02-03 Thread Lime, Steve D (DNR)
Good idea. The width of the bridge would have to  be larger than the road so it 
sticks out a bit at well...

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Christy Nieman
Sent: Wednesday, February 03, 2010 12:13 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Rendering bridges

Hi,

If you draw it in two layers, one with the colour and width you want for the 
bridges, and the other with the road line to go on top, you will essentially 
cover up the end caps.  The bridges layer would have to come first in the 
mapfile, followed by the road line layer.

Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca

On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote:

I don't believe this will get you the desired effect. You'll get the lines but 
you'll also get the line end caps. That's the real trick, turning those off. 
I'm not sure that you can.



Steve



-Original Message-

From: Fawcett, David (MPCA)

Sent: Wednesday, February 03, 2010 10:13 AM

To: Lime, Steve D (DNR); tommasodb; 
mapserver-users@lists.osgeo.org

Subject: RE: [mapserver-users] Rendering bridges



The feature that he is referencing is just a line segment with an additional 
attribute of 'bridge=yes'.



* bridge: yes

* highway: trunk

* layer: 1

* name: Manchester Road

* ref: A56



If you just wanted to use the road data and not create an additional bridges 
data set, you would likely need to split up the road features so that the 
segment that is a bridge is an individual feature.



I haven't worked with any shapefile extracts from OSM, so the data may already 
be like this.



Assuming that you have a line shapefile that has a column called 'bridge', you 
could set up two classes in your roads layer.  The first one would have an 
expression like ('[bridge] = 'yes') and the second class wouldn't have an 
expression so it would catch the rest of the lines.



In the first class, you would stack two lines, the bottom one being the color 
of your bridge and wider than the roads line that will go on top of it.



David.



-Original Message-

From: 
mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D 
(DNR)

Sent: Wednesday, February 03, 2010 9:50 AM

To: tommasodb; 
mapserver-users@lists.osgeo.org

Subject: RE: [mapserver-users] Rendering bridges



What feature type are bridges represented with in OpenStreetMap?



-Original Message-

From: 
mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommasodb

Sent: Wednesday, February 03, 2010 6:08 AM

To: mapserver-users@lists.osgeo.org

Subject: [mapserver-users] Rendering bridges



Hallo list,



how can I render road bridges, like in mapnik?

(Example:

http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null)

Which symbol can I use?



Greets,

Tom

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users



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


RE: [mapserver-users] OCI-22053: overflow error with CONNECTIONTYPEoraclespatial

2010-02-03 Thread Nolte, Tim
Stefan,

Do you have the Georaptor extension installed in SQL Dev? Have you tried to run 
the verification on all of the geom data in that table?

- Tim


Timothy J Nolte - tno...@ilpcs.com
Network Planning Engineer

4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office:  616-656-5163
PCS:     616-706-2438
Support: 616-929-0289
Fax: 616-554-6484


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stefan Schantz
Sent: Wednesday, February 03, 2010 7:55 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] OCI-22053: overflow error with 
CONNECTIONTYPEoraclespatial

Hello,
I am trying to visualize some points from a oracle database (10.2) :
I am using
MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 
INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

My layer description is

LAYER
  NAME "tra_punkte"
  TYPE POINT
  STATUS ON
  DEBUG ON
  #DUMP TRUE
  CONNECTIONTYPE oraclespatial
  CONNECTION 
"***/***@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=***)(PORT= 
1521)))(CONNECT_DATA=(SID=***)))"
  DATA "GEOM
from
(select geom, HOEHE, AUSGANGSHOEHE, ID
FROM imis_geo.trapkt_6222
)
USING UNIQUE ID SRID 4326"
---

and the following statement is written in the log-file
--
[Wed Feb  3 12:54:00 2010].603594 msOracleSpatialLayerWhichShapes. Using 
this Sql to retrieve the data: SELECT ID, GEOM FROM (select geom, HOEHE, 
AUSGANGSHOEHE, ID
FROM imis_geo.trapkt_6222
) WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 4326, 
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-70.5721827,29.3243683,69.9787827,79.1709317)
 
),'querytype=window') = 'TRUE'
[Wed Feb  3 12:54:00 2010].823525 osGetOrdinates(): OracleSpatial error. 
OCI-22053: overflow error
--

But if I try the sql in SQL-Developer, i get the result without any errors?

The connection between UMN and oracle database is working fine in 
several different layers, but not in this one. Is there anything I can do?

Best Regards,
Stefan

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

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


[mapserver-users] Triangle symbol

2010-02-03 Thread Steve . Toutant
Hi,
I need to create 2 triangles as symbol. I thought that would be an easy 
task but I can'T make it works!!

>From this example
http://mapserver.org/mapfile/symbology/examples.html#example-3-vector-triangle-marker-symbol
I use 
SYMBOL
  NAME "triangle"
  TYPE vector
  POINTS
0 4
2 0
4 4
0 4
  END
END

I thought that would give a triangle like this
\/

But I got
/\

What is it I don't understand please?
thanks
Steve
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rendering bridges

2010-02-03 Thread Stephen Woodbridge
This is just from memory (haven't tried it, but something like this 
should work wit agg on 5.6


bridge gets a solid black outline
tunnel gets a dashed black outline
others get a normal rendition

Try playing with this

LAYER
  CLASS  # if its a bridge draw it here
EXPRESSION ("[bridge]" == "yes")
STYLE
  COLOR "#88"
  WIDTH 11
  OUTLINECOLOR "#00"
  OUTLINEWIDTH 3
END
STYLE
  COLOR "#DD"
  WIDTH 9
END
  END
  CLASS # else if it is a tunnel draw it here
EXPRESSION ("[tunnel]" == "yes")
STYLE
  COLOR "#00"
  SYMBOL "dash"
  WIDTH 17
END
STYLE
  COLOR "#88"
  WIDTH 11
END
STYLE
  COLOR "#DD"
  WIDTH 9
END
  END  CLASS # otherwise draw it here
STYLE
STYLE
  COLOR "#88"
  WIDTH 11
END
STYLE
  COLOR "#DD"
  WIDTH 9
END
  END
END


-Steve W
 http://imaptools.com/

Lime, Steve D (DNR) wrote:
Good idea. The width of the bridge would have to  be larger than the 
road so it sticks out a bit at well…


 

*From:* mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Christy 
Nieman

*Sent:* Wednesday, February 03, 2010 12:13 PM
*To:* mapserver-users@lists.osgeo.org
*Subject:* Re: [mapserver-users] Rendering bridges

 


Hi,

If you draw it in two layers, one with the colour and width you want for 
the bridges, and the other with the road line to go on top, you will 
essentially cover up the end caps.  The bridges layer would have to come 
first in the mapfile, followed by the road line layer.


Christy
--
Christy Nieman
GIS Technician
DM Solutions Group, Inc.
Email: cnie...@dmsolutions.ca 
Web: http://dmsolutions.ca
Web: http://research.dmsolutions.ca

On 02/03/2010 12:52 PM, Lime, Steve D (DNR) wrote:

I don't believe this will get you the desired effect. You'll get the lines but 
you'll also get the line end caps. That's the real trick, turning those off. 
I'm not sure that you can.

 


Steve

 


-Original Message-

From: Fawcett, David (MPCA) 


Sent: Wednesday, February 03, 2010 10:13 AM

To: Lime, Steve D (DNR); tommasodb; mapserver-users@lists.osgeo.org 


Subject: RE: [mapserver-users] Rendering bridges

 

The feature that he is referencing is just a line segment with an additional attribute of 'bridge=yes'.  

 


* bridge: yes

* highway: trunk

* layer: 1

* name: Manchester Road

* ref: A56

 

If you just wanted to use the road data and not create an additional bridges data set, you would likely need to split up the road features so that the segment that is a bridge is an individual feature.  

 

I haven't worked with any shapefile extracts from OSM, so the data may already be like this.   

 

Assuming that you have a line shapefile that has a column called 'bridge', you could set up two classes in your roads layer.  The first one would have an expression like ('[bridge] = 'yes') and the second class wouldn't have an expression so it would catch the rest of the lines.  

 


In the first class, you would stack two lines, the bottom one being the color 
of your bridge and wider than the roads line that will go on top of it.

 


David.

 


-Original Message-

From: mapserver-users-boun...@lists.osgeo.org 
 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D (DNR)

Sent: Wednesday, February 03, 2010 9:50 AM

To: tommasodb; mapserver-users@lists.osgeo.org 


Subject: RE: [mapserver-users] Rendering bridges

 


What feature type are bridges represented with in OpenStreetMap?

 


-Original Message-

From: mapserver-users-boun...@lists.osgeo.org 
 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tommasodb

Sent: Wednesday, February 03, 2010 6:08 AM

To: mapserver-users@lists.osgeo.org 

Subject: [mapserver-users] Rendering bridges

 


Hallo list,

 


how can I render road bridges, like in mapnik?

(Example: 


http://www.openstreetmap.org/?lat=53.398022&lon=-2.35&zoom=18&layers=null 
)

Which symbol can I use?

 


Greets,

Tom

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org 

http://lists.osgeo.org/mailman/listinfo/mapserver-users

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org 

http://lists.osgeo.org/mailman/listinfo/mapserver-users

___

mapserver-users mailing list

mapserver-users@lists.osgeo.org 

Re: [mapserver-users] Access to a remote raster file in wms-mapfile

2010-02-03 Thread Rahkonen Jukka
Hi,

I guess that you will also need to configure Apache server so that it gives an 
access to the remote disk.  I have not done it with IP-address but by assigning 
a drive letter for it first.  This has a side effect that Apache cannot be 
installed as Windows service in a simple way.

-Jukka Rahkonen-


Daniel Morissette wrote:

I'd suggest you start by making sure GDAL can open the file:

1- Does "gdalinfo --formats" list the ECW format?

2- Check that you are able to open the file with
 gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw

Daniel

David Alda Fernandez de Lezea wrote:
> Hi list,
> 
> I'm trying to access a remote raster file stored in NAS device (Iomega 
> StorCenter Pro NAS 150D) which ip address is (192.168.1.4).
> 
> In my mapfile I'm putting the url like this:
> 
> DATA "\\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw"
> 
> But when I try to load the wms layer, I don't get anything and mapserver 
> throws the following error:
> 
> ...
> [Wed Feb 03 09:11:13 2010].67000 msDrawRaster(): Unable to access file. 
> \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw using full path 
> \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
> [Wed Feb 03 09:11:13 2010].67000 Unable to open file 
> \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw for layer orto0 ... ignoring 
> this missing data.
> [Wed Feb 03 09:11:13 2010].67000 msDrawMap(): Layer 1 (orto0), 0.000s
> ...
> 
> The thing, is that if I type this url in my web browser, I get the file 
> downloading. What I'm doing wrong? Any ideas?
> 
> Thanks in advance.
>  
>  
> Un saludo,
>  
> ··
> 
> David Alda Fernández de Lezea
> Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
>  
> IKT
> Granja Modelo s/n · 01192 · Arkaute (Araba)
> 
> ··
> Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
> ··
> email: da...@ikt.esweb: www.ikt.es
> ··
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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


Re: [mapserver-users] msplugin_mssql2008 and getFeature()

2010-02-03 Thread Tamas Szekeres
Gabe,

I suspect your issue may be related to some parsing problem with the DATA
section. I think you might want to try defining a single view for your data
and then use this view to define the DATA section like:

gExtent from MyView using unique [iId] using SRID=4326


Best regards,

Tamas



2010/2/3 Gabe Codina 

> Hi All
>
> I have a web mapping app based on ms 5.2.1 and php mapScript.  Our business
> layers are stored in MSSQL2008 and were transferred from postgis some time
> ago.
>
> I have a requirement to highlight selected features on the map - the way
> this used to work was I would add a highlight layer to the map and  addthe
> selected features to it by using getShape and addFeature.
>
> Using the mssql plugin my calls to getShape (and getFeature) always return
> FALSE.  I know the features are there but they cannot be retrieved.
>
> Info:
>
> Sample data statement
>
>DATA "gExtent FROM (SELECT [iId],geometry::STGeomFromWKB([binExtentWKB],
> 4326) AS gExtent
>  ,[cIdentifiers],[cLabel],[iSessionId] FROM
> [Scratch].[tManagementUnitsGeometry] WHERE [iSessionId] = 310) AS FOO USING
> UNIQUE [iId] USING SRID=4326"
>
> Some Mapscript
>
>   if ($resTileShpIdx){
>$resShape = $qLayer->getShape($resTileShpIdx,
> $resShpIdx);
>} else {
>$resShape = $qLayer->getFeature($resShpIdx);
>}
>
> ...
>
>
>$newResLayer->addFeature($resShape);
>
>
> Any help will be greatly appreciated.
>
> Gabe Codina
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Triangle symbol

2010-02-03 Thread Lime, Steve D (DNR)
The origin for graphics coordinates is in the UL corner of an image. Symbol 
defs are the same with 0,0 being the UL corner of a symbol.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
steve.tout...@inspq.qc.ca
Sent: Wednesday, February 03, 2010 3:19 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Triangle symbol


Hi,
I need to create 2 triangles as symbol. I thought that would be an easy task 
but I can'T make it works!!

>From this example
http://mapserver.org/mapfile/symbology/examples.html#example-3-vector-triangle-marker-symbol
I use
SYMBOL
  NAME "triangle"
  TYPE vector
  POINTS
0 4
2 0
4 4
0 4
  END
END

I thought that would give a triangle like this
\/

But I got
/\

What is it I don't understand please?
thanks
Steve
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] msplugin_mssql2008 and getFeature()

2010-02-03 Thread Gabe Codina
Thanks

I have a work around - I am maintaining the selection in the database and
have defined a class to highlight the selected features - ironically making
my data section even more verbose.

If I have to come back to this I will have a look at the simple view
approach (you should see some of my other data statements).

Unfortunately Postgis is not an option as we have lots of distributed
components that all work with MSSQL, the only way we would do that is to
link a postgis server to the sql one and use some sort of data
synchronization.

 

G

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas Szekeres
Sent: Thursday, 4 February 2010 9:43 AM
To: Gabe Codina
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] msplugin_mssql2008 and getFeature()

 

Gabe,

I suspect your issue may be related to some parsing problem with the DATA
section. I think you might want to try defining a single view for your data
and then use this view to define the DATA section like:

gExtent from MyView using unique [iId] using SRID=4326


Best regards,

Tamas




2010/2/3 Gabe Codina 

Hi All

I have a web mapping app based on ms 5.2.1 and php mapScript.  Our business
layers are stored in MSSQL2008 and were transferred from postgis some time
ago.

I have a requirement to highlight selected features on the map - the way
this used to work was I would add a highlight layer to the map and  addthe
selected features to it by using getShape and addFeature.

Using the mssql plugin my calls to getShape (and getFeature) always return
FALSE.  I know the features are there but they cannot be retrieved.

Info:

Sample data statement

   DATA "gExtent FROM (SELECT [iId],geometry::STGeomFromWKB([binExtentWKB],
4326) AS gExtent
 ,[cIdentifiers],[cLabel],[iSessionId] FROM
[Scratch].[tManagementUnitsGeometry] WHERE [iSessionId] = 310) AS FOO USING
UNIQUE [iId] USING SRID=4326"

Some Mapscript

  if ($resTileShpIdx){
   $resShape = $qLayer->getShape($resTileShpIdx,
$resShpIdx);
   } else {
   $resShape = $qLayer->getFeature($resShpIdx);
   }

...


   $newResLayer->addFeature($resShape);


Any help will be greatly appreciated.

Gabe Codina


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

 

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


[mapserver-users] unsubscribe

2010-02-03 Thread W.John Guineau
 

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


RE: [mapserver-users] Access to a remote raster file in wms-mapfile

2010-02-03 Thread David Alda Fernandez de Lezea
 
Thanks for your answers:

Daniel: I tried what you mentioned:

 1- Does "gdalinfo --formats" list the ECW format?

Yes it does.

Supported Formats:
  VRT (rw+): Virtual Raster
  GTiff (rw+): GeoTIFF
  NITF (rw+): National Imagery Transmission Format
  RPFTOC (ro): Raster Product Format TOC format
  HFA (rw+): Erdas Imagine Images (.img)
  SAR_CEOS (ro): CEOS SAR Image
  CEOS (ro): CEOS Image
  JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5)
  GFF (ro): Ground-based SAR Applications Testbed File Format (.gff)
  ELAS (rw+): ELAS
  AIG (ro): Arc/Info Binary Grid
  AAIGrid (rw): Arc/Info ASCII Grid
  SDTS (ro): SDTS Raster
  DTED (rw): DTED Elevation Raster
  PNG (rw): Portable Network Graphics
  JPEG (rw): JPEG JFIF
  MEM (rw+): In Memory Raster
  JDEM (ro): Japanese DEM (.mem)
  GIF (rw): Graphics Interchange Format (.gif)
  ESAT (ro): Envisat Image Format
  FITS (rw+): Flexible Image Transport System
  BSB (ro): Maptech BSB Nautical Charts
  XPM (rw): X11 PixMap Format
  BMP (rw+): MS Windows Device Independent Bitmap
  DIMAP (ro): SPOT DIMAP
  AirSAR (ro): AirSAR Polarimetric Image
  RS2 (ro): RadarSat 2 XML Product
  PCIDSK (rw+): PCIDSK Database File
  PCRaster (rw): PCRaster Raster File
  ILWIS (rw+): ILWIS Raster Map
  SGI (rw+): SGI Image File Format 1.0
  SRTMHGT (rw): SRTMHGT File Format
  Leveller (rw+): Leveller heightfield
  Terragen (rw+): Terragen heightfield
  GMT (rw): GMT NetCDF Grid Format
  netCDF (rw): Network Common Data Format
  ISIS3 (ro): USGS Astrogeology ISIS cube (Version 3)
  ISIS2 (ro): USGS Astrogeology ISIS cube (Version 2)
  PDS (ro): NASA Planetary Data System
  ERS (rw+): ERMapper .ers Labelled
  ECW (rw): ERMapper Compressed Wavelets
  JP2ECW (rw+): ERMapper JPEG2000
  L1B (ro): NOAA Polar Orbiter Level 1b Data Set
  FIT (rw): FIT Image
  GRIB (ro): GRIdded Binary (.grb)
  MrSID (ro): Multi-resolution Seamless Image Database (MrSID)
  JP2MrSID (ro): MrSID JPEG2000
  RMF (rw+): Raster Matrix Format
  WCS (ro): OGC Web Coverage Service
  WMS (ro): OGC Web Map Service
  MSGN (ro): EUMETSAT Archive native (.nat)
  RST (rw+): Idrisi Raster A.1
  INGR (rw+): Intergraph Raster
  GSAG (rw): Golden Software ASCII Grid (.grd)
  GSBG (rw+): Golden Software Binary Grid (.grd)
  GS7BG (ro): Golden Software 7 Binary Grid (.grd)
  COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)
  TSX (ro): TerraSAR-X Product
  COASP (ro): DRDC COASP SAR Processor Raster
  PNM (rw+): Portable Pixmap Format (netpbm)
  DOQ1 (ro): USGS DOQ (Old Style)
  DOQ2 (ro): USGS DOQ (New Style)
  ENVI (rw+): ENVI .hdr Labelled
  EHdr (rw+): ESRI .hdr Labelled
  GenBin (ro): Generic Binary (.hdr Labelled)
  PAux (rw+): PCI .aux Labelled
  MFF (rw+): Vexcel MFF Raster
  MFF2 (rw+): Vexcel MFF2 (HKV) Raster
  FujiBAS (ro): Fuji BAS Scanner Image
  GSC (ro): GSC Geogrid
  FAST (ro): EOSAT FAST Format
  BT (rw+): VTP .bt (Binary Terrain) 1.3 Format
  LAN (ro): Erdas .LAN/.GIS
  CPG (ro): Convair PolGASP
  IDA (rw+): Image Data and Analysis
  NDF (ro): NLAPS Data Format
  EIR (ro): Erdas Imagine Raw
  DIPEx (ro): DIPEx
  LCP (ro): FARSITE v.4 Landscape File (.lcp)
  RIK (ro): Swedish Grid RIK (.rik)
  USGSDEM (rw): USGS Optional ASCII DEM (and CDED)
  GXF (ro): GeoSoft Grid Exchange Format
  HTTP (ro): HTTP Fetching Wrapper
  HDF5 (ro): Hierarchical Data Format Release 5
  HDF5Image (ro): HDF5 Dataset
  ADRG (rw+): ARC Digitized Raster Graphics
  BLX (rw): Magellan topo (.blx)

2- Check that you are able to open the file with
 gdalinfo \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw

I'm able to get file info:
Driver: ECW/ERMapper Compressed Wavelets
  Files: \\192.168.1.4\ortofotos\EUSKADI_2009_ED50.ecw
Size is 596353, 462680
Coordinate System is `'
Origin = (457707.500,4811974.9699970)
Pixel Size = (0.250,-0.250)
Corner Coordinates:
Upper Left  (  457707.500, 4811974.970) 
Lower Left  (  457707.500, 4696304.970) 
Upper Right (  606795.750, 4811974.970) 
Lower Right (  606795.750, 4696304.970) 
Center  (  532251.625, 4754139.970) 
Band 1 Block=596353x1 Type=Byte, ColorInterp=Red
  Overviews: arbitrary
  Metadata:
LAYER_TYPE=athematic
Band 2 Block=596353x1 Type=Byte, ColorInterp=Green
  Overviews: arbitrary
  Metadata:
LAYER_TYPE=athematic
Band 3 Block=596353x1 Type=Byte, ColorInterp=Blue
  Overviews: arbitrary
  Metadata:
LAYER_TYPE=athematic


Jukka:

I've got another raster file that I CAN access from my WMS an it's located in a 
mapped unit:

DATA "\\iktfs1\Estatica$\ORTOFOTOS\Euskadi_2006_rgb_25cm_ed50.ecw"

It's weird isn't it?? I guess it could be something related to the named units 
or something like that.

More suggestions??

Thanks again.

 
Un saludo,
 
···