We had the same problem. In deed the buffer-algorithm is very expensive,
especially with large polygons and a large buffer-radius. If you use Postgis,
you can simplify the Polygon with ST_Simplify or ST_SimplifyPreserveTopology in
dependency from scale and buffer-radius, this will make the
Should check your mapfile if it is correctly parsed by the mapscritpt.
Try drawing the mapfile using standard mapserver.exe and see if it works.
Francesco Pirotti
MSulchan Darmawan ha scritto:
Dear all,
I've made a PHP script and tried it on windows using ms4w (mapserver
5.4.2) and it's
Hello list,
I'm trying to get MapServer running as a WFS server with an Oracle data
source. When using TAB files I have no problem, also using the Oracle
datasource and letting MapServer draw it (WMS) works properly.
However, the WFS request only returns one result (a correct one). My
total
Hi,
You seem not to get even a single feature back, all you get is an empty
bounding box. How does you GetFeature request look like?
-Jukka Rahkonen-
-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta
Jukka,
Thanks for the quick reply. The request is:
mapserv.exe?map=address.maptypename=addressSERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureSRS=EPSG%3A4326BBOX=1.171946062917749,52.038473357169345,5.173921509856943,52.03887593415947
(Very zoomed out)
If this is another projection issue, I'm going
WFS 1.0 does not support reprojection AFAIK. At least the OGC spec does not,
don't know if Mapserver implemented it vendor-specific like Geoserver did, but
I could be wrong.
Try version 1.1.0.
Best regards,
Bart
On Nov 18, 2009, at 12:05 PM, Jelmer Baas wrote:
Jukka,
Thanks for the quick
Hi,
I hope you have tasty shoes. WFS 1.0.0 does officially support only one
projection. I am not sure how Marverver has implemented it, with Geoserver it
is possible to use also other projections by adding projection parameter to
request. However, I would try GetFeature request by using BBOX
Bart, Jukka,
The shoes taste wonderful. The request comes from OpenLayers, and I can't find
how to change it to WFS 1.1, but that'll be another Google search, soon. Right
now I thought it'd be smart to see if I at least can get *some* results,
manually. This however also fails.
My current
Hi,
If you haven't done it yet, check that you can for sure get some data out of
your service.
mapserv.exe?map=address.maptypename=addressSERVICE=WFSVERSION=1.0.0REQUEST=GetFeatureMaxFeatures=10
If yes, have a look at the returned data and see what kind of coordinates it
likes to send you.
Jukka,
Thanks for the little tip! I just tested the test url you gave me, and it
also didn't return anything. After checking the log files I found this:
[Wed Nov 18 13:50:46 2009].176000 msOracleSpatialLayerGetShape(): OracleSpatial
error. Error parsing OracleSpatial DATA variable for query.
Jelmer,
Also, when using WFS from Oracle, you should add the wfs_extent or
ows_extent metadata tags. Otherwise MapServer will request Oracle to do a
convex_hull to get the extent of your data. On large datasets, this can take
a while. Setting the extent metadata tag bypasses this check and uses
Michael,
Thanks for the tip. Indeed, I still need to add these tags, but since my
dataset wasn't working at all, I didn't do anything with that, yet.
Right now the query takes 16-20sec, so some optimization is in order.
Regards,
Jelmer
Jelmer,
Also, when using WFS from Oracle, you should
Bart,
Thanks for the tip. I'll be using more Oracle access in the future, so I
guess I'll jump in the Compile-MapServer-On-Windows maze this evening.
Regards,
Jelmer
Jelmer,
you might want to check out Mapserver 5.6 release candidates,
since WFS was greatly optimized for database sources
Might I also suggest checking if the .shp file is in the correct case?
KB_ACEH is uppercase, while .shp is lowercase, I've had plenty of
problems (i.e., typo's) with that.
Regards,
Jelmer
As Francesco indicated, the primary error in this case is
that the file
I'm learning a lot here.
I now understand how to get the buffered geometry quickly.
I am using the buffered geometry to use PHP mapscript to select parcel
intersecting the buffered geometry.
$layer-queryByShape($bufferedShape);
Are you telling me that there is a better/faster way to do this?
Distance maybe ?
Guillaume
Le mercredi 18 novembre 2009 à 09:27 -0500, Worth Lutz a écrit :
I'm learning a lot here.
I now understand how to get the buffered geometry quickly.
I am using the buffered geometry to use PHP mapscript to select parcel
intersecting the buffered geometry.
Jelmer,
you might want to check out Mapserver 5.6 release candidates, since WFS was
greatly optimized for database sources (single pass query).
Best regards,
Bart
On Nov 18, 2009, at 2:20 PM, Jelmer Baas wrote:
Michael,
Thanks for the tip. Indeed, I still need to add these tags, but since
Worth Lutz wrote:
I'm learning a lot here.
I now understand how to get the buffered geometry quickly.
I am using the buffered geometry to use PHP mapscript to select parcel
intersecting the buffered geometry.
$layer-queryByShape($bufferedShape);
Are you telling me that there is a
You may not need to buffer at all. The shape query honors layer tolerances so
you can find parcels within a certain distance. So if $layer-{tolerance} is 500
and $layer-{toleranceunits} is 'meters' then your shape query will find all
features within 500 meters. If you don't need to draw the
Hello,
I'm quite new in MapServer, and I'm trying to apply some SLD's to a polygon
layer served via WMS with MapServer, and I want these ploygons to have some
transparency, and I specify the field fill-opacity to 0.5 but in the returned
image the polygon is filled with opacity = 1. What
Hi,
I use a WMSGetFeatureInfo, from openlayers, to query a layer in postgis.
It queries a TEXT variable containing HTML tags such as br.
Exemple: the value is HibrHellobr
In my template I have
Comment: [htmlcomment]
When I show the result of the query I see HibrHellobr. I would like to
see
David Alda Fernandez de Lezea wrote:
Hello,
I'm quite new in MapServer, and I'm trying to apply some SLD's to a
polygon layer served via WMS with MapServer, and I want these ploygons
to have some transparency, and I specify the field fill-opacity to 0.5
but in the returned image the
Hi there!
i have a problem diplaying nodes, which are read from a
postgresql/postgis database.
specifically the problem is that when trying to display the nodes using
a pretty standard template i don not get a picture, but surprisingly it
is generated in the tmp folder (with right
Is your IMAGEURL correct?
Is your template correctly referencing the directory where the image is being
created?
David.
-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bryan Hempen
Sent: Wednesday,
Fawcett, David (MPCA) schrieb:
Also, do you have an opening tag for your image? I just see the below line
with only a closing tag for img:
a
href='http://www.umn-mapserver-community.de'http://www.umn-mapserver-community.de/img
David.
-Original Message-
From:
Hello list,
has the integration of PAL (label placement library) with Mapserver ever
been considered?
There is a lot of work in progress in other osgeo projectd (eg qgis) to
leverage on it, and I was wondering if also Mapserver could benefit of it.
thanks,
giovanni
PAL: http://pal.heig-vd.ch/
I really don't think that your IMAGEURL is correct now.
IMAGEPATH is the path to your temp directory.
IMAGEURL is the URL that you use to access this same directory using your Web
server/browser. It should be relative to your Web root.
I would guess that your IMAGEURL might be
As an aside for the doc gods...
On http://mapserver.org/mapfile/web.html, shouldn't it say:
IMAGEURL [url]
Base URL for IMAGEPATH. This is the URL that will take the web browser to
IMAGEPATH to get the images.
And not:
IMAGEURL [path]
Base URL for IMAGEPATH. This is the URL that will
Martin Ouellet wrote:
Hi,
I've got the current layer definition
[...]
TEMPLATE http://geomsp.msp.gouv.qc.ca/communs/todo2.html;
[...]
I receive this response:
[DATE_PRODUCTION] - mapserver dont seem to replace the variable with
the query value
When you specify a URL in the TEMPLATE
Thanks Daniel, with the correct path, it's working great!
but I also had to put the magic string at the top of my file to make it
work:
!-- Mapserver Template --
MartinOuellet
2009/11/18 Daniel Morissette dmorisse...@mapgears.com
Martin Ouellet wrote:
Hi,
I've got the current layer
I have a couple raster layers (ECW) and I'm trying to get the extent
using php mapscripts' layer-getExtent method. I don't get an error on
the call but when I try to use the resulting rectObj (eg.
$rectRasterExtent-minx) I get an error trying to access a non-object.
Does this function work on
ok, I used [item name=htmlcomment escape=none]
instead of [htmlcomment]
steve
steve.tout...@inspq.qc.ca@lists.osgeo.org
Envoyé par : mapserver-users-boun...@lists.osgeo.org
18/11/2009 10:44 AM
A
mapserver-users@lists.osgeo.org
cc
Objet
[mapserver-users] read HTML tags in template
Add the EXTENT directive under the LAYER definition...
LAYER
... stuff ...
EXTENT MINX MINY MAXX MAXY
... stuff...
END
- Original Message
From: Josh Hevenor jheve...@rogers.com
To: mapserver-users mapserver-users@lists.osgeo.org
Sent: Wed, November 18, 2009 4:23:39 PM
Subject:
Hello,
I have been using MapServer for about 18 months to serve the base maps for
EcoMapCostaRica.com, and more recently, equal-area-maps.com.
Originally, I had a lot of trouble building it for the FreeBSD environment
used by my web host (Pair Networks), but a fellow user (Jason Birch) was
able
Worked perfectly. Thanks!
Dan Little wrote:
Add the EXTENT directive under the LAYER definition...
LAYER
... stuff ...
EXTENT MINX MINY MAXX MAXY
... stuff...
END
- Original Message
From: Josh Hevenor jheve...@rogers.com
To: mapserver-users
Dan Little wrote:
Add the EXTENT directive under the LAYER definition...
LAYER
... stuff ...
EXTENT MINX MINY MAXX MAXY
... stuff...
END
- Original Message
From: Josh Hevenor jheve...@rogers.com
To: mapserver-users mapserver-users@lists.osgeo.org
Sent: Wed, November 18, 2009 4:23:39
Richard,
Add a new line to the beginning of your mapfile of just the word MAP.
Eg
MAP
NAME Hello_World
SIZE 400 300
IMAGECOLOR 249 245 186
IMAGETYPE png
EXTENT -1.00 -1.00 1.00 1.00
Its part of some security changes in the latest version of Mapserver. You
also need to add a SYMBOLSET to the
37 matches
Mail list logo