[mapserver-users] merging shapefiles

2011-07-07 Thread Julien Cigar

Hello,

I have an (OpenLayers) map with two layers:

- Country (as a base layer)
- EEA

You can see the output here:
http://home.bebif.be/~jcigar/map.jpg

The Country layer contains just the borders of the countries, and the 
EEA layer (the colorized areas) contains environmental areas.


What I'd like to do is to select a polygon within a country for a 
specific zone. For example I would like to select part of Belgium with 
the Atlantic EEA (in blue), which is the north of Belgium. I also need 
to save some information in the database for the polygon (I'm using 
Mapserver/PostGIS).


What would be the best way to do this? Would you merge the two layers 
into one (be creating new polygons)?


thanks,
Julien

--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
attachment: jcigar.vcf___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] merging shapefiles

2011-07-07 Thread Edward Mac Gillavry

You may want to investigate the ST_Intersection functionality in PostGIS. This 
allows you to create a new geometry from the intersection of the EEA regions 
and the countries.

http://postgis.refractions.net/docs/ST_Intersection.html

Regards,

Edward


Date: Thu, 7 Jul 2011 11:44:29 +0200
From: jci...@ulb.ac.be
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] merging shapefiles

Hello,
 
I have an (OpenLayers) map with two layers:
 
- Country (as a base layer)
- EEA
 
You can see the output here:
http://home.bebif.be/~jcigar/map.jpg
 
The Country layer contains just the borders of the countries, and the 
EEA layer (the colorized areas) contains environmental areas.
 
What I'd like to do is to select a polygon within a country for a 
specific zone. For example I would like to select part of Belgium with 
the Atlantic EEA (in blue), which is the north of Belgium. I also need 
to save some information in the database for the polygon (I'm using 
Mapserver/PostGIS).
 
What would be the best way to do this? Would you merge the two layers 
into one (be creating new polygons)?
 
thanks,
Julien
 
-- 
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

___
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] Re: wms server - raster image quality

2011-07-07 Thread Mark Volz
Brad,

Thank you for your reply.  The air photo that I am trying to share is a mr sid 
FSA Air Photo with a OVERSAMPLE_RATIO set at 1.  Since my last e-mail, I found 
that the quality of the air photos are fine when I am using Mapproxy.  However, 
I am still having issues with other WMS clients such as QGIS and ArcMap.


Mark Volz

-Original Message-


Message: 2
Date: Wed, 6 Jul 2011 13:58:28 -0700 (PDT)
From: Brad Posthumus posthum...@agr.gc.ca
Subject: [mapserver-users] Re: wms server - raster image quality
To: mapserver-users@lists.osgeo.org
Message-ID: 1309985908088-6555988.p...@n2.nabble.com
Content-Type: text/plain; charset=us-ascii


mark volz-2 wrote:
 
 I set up a WMS Server using Mapserver.  The quality of the map is
 terrible.   If anyone an example of a mapfile to serve imagery via wms it
 would be appreciated.
 

I found the playing around with the PROCESSING values can make a big
difference.

http://mapserver.org/input/raster.html#special-processing-directives

What type of image is it? Colour or panchromatic? 



--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/wms-server-raster-image-quality-tp6538171p6555988.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] WFS GetFeature with Intersects all results is the same

2011-07-07 Thread Stéphane Brunner
Hello,

I'm using a mapserver version 5.6.5 to do this scenario.

First I do a simple WFS this request [1] that ruturn 51 result [2]
with the same geometry, that perfectly correct.

Than I do a second request [3] with an intersects on a point who is in
the previously return geometry.

It returns [4] 51 result that correct , but not with the same
attributes than before why ?

Thank-you in advance for any response
Stéphane Brunner


[1]
wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
version=1.0.0 maxFeatures=100
xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
wfs:Query typeName=feature:Liegenschaft_Query
xmlns:feature=http://mapserver.gis.umn.edu/mapserver;
ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;
ogc:PropertyIsEqualTo
ogc:PropertyNamenummer/ogc:PropertyName
ogc:Literal2120/ogc:Literal
/ogc:PropertyIsEqualTo
/ogc:Filter
/wfs:Query
/wfs:GetFeature

[2]
?xml version='1.0' encoding=UTF-8 ?
wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
   http://mapserver.gis.umn.edu/mapserver
http://c2cpc87.camptocamp.com/~sbrunner/mapserv?SERVICE=WFSamp;VERSION=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=feature:Liegenschaft_Queryamp;OUTPUTFORMAT=XMLSCHEMA;
  gml:boundedBy
gml:Box srsName=epsg:21781
gml:coordinates663488.649000,244506.687000
663575.087000,244593.655000/gml:coordinates
/gml:Box
  /gml:boundedBy
gml:featureMember
  ms:Liegenschaft_Query fid=Liegenschaft_Query.24036252
gml:boundedBy
gml:Box srsName=epsg:21781
gml:coordinates663488.649000,244506.687000
663575.087000,244593.655000/gml:coordinates
/gml:Box
/gml:boundedBy
ms:geom
gml:Polygon srsName=epsg:21781
  gml:outerBoundaryIs
gml:LinearRing
  gml:coordinates663519.558000,244519.561000
663524.395000,244506.687000 663560.161000,244530.308000
663564.616000,244528.134000 663575.087000,244572.566000
663531.859000,244589.916000 663523.952000,244593.655000
663523.182000,244593.575000 663511.622000,244587.452000
663511.316000,244587.984000 663488.649000,244575.66
663511.325000,244530.838000 663513.944000,244530.42
663519.558000,244519.561000 /gml:coordinates
/gml:LinearRing
  /gml:outerBoundaryIs
/gml:Polygon
/ms:geom
ms:nummer2120/ms:nummer
ms:gemeindeWohlen/ms:gemeinde
ms:gueltigkeitrechtskraeftig/ms:gueltigkeit
ms:flgrundb/ms:flgrundb
ms:quote1/1/ms:quote
ms:eigentuemer***, 1944/ms:eigentuemer
ms:adresse_lang***, 5610 Wohlen AG/ms:adresse_lang
  /ms:Liegenschaft_Query
/gml:featureMember


[3]
wfs:GetFeature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
version=1.0.0 maxFeatures=100
xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
wfs:Query typeName=feature:Liegenschaft_Query
xmlns:feature=http://mapserver.gis.umn.edu/mapserver;
ogc:Filter xmlns:ogc=http://www.opengis.net/ogc;
ogc:Intersects
ogc:PropertyNamegeom/ogc:PropertyName
gml:Point xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:21781
gml:coordinates decimal=. cs=, ts=
663521.368,244554.046/gml:coordinates
/gml:Point
/ogc:Intersects
/ogc:Filter
/wfs:Query
/wfs:GetFeature

[4]
?xml version='1.0' encoding=UTF-8 ?
wfs:FeatureCollection
   xmlns:ms=http://mapserver.gis.umn.edu/mapserver;
   xmlns:wfs=http://www.opengis.net/wfs;
   xmlns:gml=http://www.opengis.net/gml;
   xmlns:ogc=http://www.opengis.net/ogc;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
   http://mapserver.gis.umn.edu/mapserver
http://c2cpc87.camptocamp.com/~sbrunner/mapserv?SERVICE=WFSamp;VERSION=1.0.0amp;REQUEST=DescribeFeatureTypeamp;TYPENAME=feature:Liegenschaft_Queryamp;OUTPUTFORMAT=XMLSCHEMA;
  gml:boundedBy
gml:Box srsName=epsg:21781
gml:coordinates663488.649000,244506.687000
663575.087000,244593.655000/gml:coordinates
/gml:Box
  /gml:boundedBy
gml:featureMember
  ms:Liegenschaft_Query fid=Liegenschaft_Query.24036252
gml:boundedBy
gml:Box srsName=epsg:21781
gml:coordinates663488.649000,244506.687000
663575.087000,244593.655000/gml:coordinates
/gml:Box
/gml:boundedBy
ms:geom
gml:Polygon srsName=epsg:21781
  gml:outerBoundaryIs

AW: [mapserver-users] ogc:And in SLD .. ?

2011-07-07 Thread Arnd Wippermann
Hi,

It does

See your sld on
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_Demo/MapServe
r_SLD_Demo.asp?SLDsrcIdx=38
 
Perhaps your attributs names or values not in the correct writing (upper and
lowercase).

Arnd

-Ursprüngliche Nachricht-
Von: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Julien Cigar
Gesendet: Donnerstag, 7. Juli 2011 17:16
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] ogc:And in SLD .. ?

Hello,

I slowly started to use SLD, and I made one with the following:

(...)
ogc:And

   ogc:PropertyIsEqualTo
 ogc:PropertyNamecntr_id/ogc:PropertyName
 ogc:LiteralBE/ogc:Literal
   /ogc:PropertyIsEqualTo

   ogc:PropertyIsEqualTo
 ogc:PropertyNamebiogeo/ogc:PropertyName
 ogc:LiteralContinental/ogc:Literal
   /ogc:PropertyIsEqualTo

/ogc:And
(...)

(full stylesheet is available on http://www.pastie.org/2177871)

However, it seems that the ogc:And is ignored by mapserver ..? Does it
supports conditional filters (ogc:And|Or|...) in SLD stylesheets?

Thanks,
Julien

--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

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


Re: [mapserver-users] Re: Font rendering in MapServer 6.0

2011-07-07 Thread thomas bonfort
We've kept the GD renderer in 6.0 for some marginal use cases, but the
preferred way is to switch to AGG rendering (which is compiled in by
default): you can use the builtin png8 imagetype (mimetype: image/png;
mode=8bit) which does a quantization step if you need a 256 color
paletted image.

The easy solution is to remove all your outputformat blocks from your
mapfile, and call your server with FORMAT=image/png or image/png;
mode=8bit , and setting your map imagetype to png or png8.

As for this GD rendering bug, the easy first step is be to open a
bug-report. The harder second step is to get someone motivated to look
into it if you cannot provide a patch.

regards,
thomas

On Thu, Jul 7, 2011 at 20:07, Brad Posthumus posthum...@agr.gc.ca wrote:
 I've narrowed it down further to the OUTPUTFORMAT section of the mapfile,
 which currently is:

  OUTPUTFORMAT
    NAME png
    DRIVER GD/PNG
    MIMETYPE image/png
    IMAGEMODE PC256
    FORMATOPTION INTERLACE=OFF
    EXTENSION png
    TRANSPARENT ON
  END

 It appears to be a problem with having a combination of GD/PNG, PC256, and
 transparency. Turning transparency off renders a clean image, changing PC256
 to RGBA renders a clean image, changing PNG to GIF (at all locations)
 renders a clean image

 This setup was working in 5.4 and 5.6 so I'll assume it's a bug I should
 report for 6.0.

 --
 View this message in context: 
 http://osgeo-org.1803224.n2.nabble.com/Font-rendering-in-MapServer-6-0-tp6555935p6559374.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] Re: wms server - raster image quality

2011-07-07 Thread Mark Volz
Hello,

I was able to fix the problem that I had with the poor wms raster image 
quality.  I was missing the Mimetype for my png outputs.  

Using the following outputformat works:

OUTPUTFORMAT
  NAME png
  DRIVER AGG/PNG
  MIMETYPE image/png
  IMAGEMODE RGB
  EXTENSION png
END

Mark Volz
GIS Specialist



Mark,

You could try having mapserver render PNG files instead of JPEG.  And 
since there's a re-projection from zone 13 to 14, perhaps mapserver is 
reading a lower resolution level from the mrsid file; adding

PROCESSING LOAD_FULL_RES_IMAGE=YES

to the layer def might help (or it might not).

Best Regards,
Brent Fraser


On 7/1/2011 9:26 AM, Mark Volz wrote:
 Hello
 I set up a WMS Server using Mapserver.  The quality of the map is 
 terrible.   If anyone an example of a mapfile to serve imagery via wms 
 it would be appreciated.
 Thanks
 MAP
 NAME MAP
 EXTENT  699283 4853930 736320 4904147
 PROJECTION
 init=epsg:26914
 END #PROJECTION
 OUTPUTFORMAT
 NAME 'gd/jpeg'
 #DRIVER GD/JPEG
  IMAGEMODE RGB
 #IMAGEMODE PC256
 FORMATOPTION TRANSPARENT=FALSE
 FORMATOPTION QUALITY=90
 DRIVER AGG/JPEG
  MIMETYPE image/jpeg
 END #outputformat
 MAXSIZE 1  #limit size of wms
 IMAGETYPE gd/jpeg
 WEB
 IMAGEPATH '/tmp/'
 IMAGEURL '/tmp/'
 METADATA
 'wms_title' 'MAP'
 'wms_onlineresource' 
 'http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/PipestoneMOOSE/maps_pipestone/Raster/LocalRaster/FSA2010/LocalFSA2010.map'
 'wms_srs' 'EPSG:26914'
 END #metadata
 END #web
 ###
 LAYER
 NAME 'FSA'
 TYPE RASTER
 DATA './ortho_1-1_1n_s_mn117_2010_1.sid'
 METADATA
 'wms_title' 'FSA'
 END #metadata
 STATUS DEFAULT
 PROJECTION
 proj=utm
 zone=14
 ellps=GRS80
 datum=NAD83
 units=m
 no_defs
 END #PROJECTION
 PROCESSING OVERSAMPLE_RATIO=1
 END #layer
 END ## end Map
 Mark Volz
 GIS Specialist

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