[mapserver-users] Mapserver shows all nodes on a GeometryCollection
Jörg Thomsen
jt at mapmedia.de
Wed Apr 16 00:55:48 PDT 2014
moin,
I don't see anything, that could cause the problem. Your architecture is
hard to understand without knowing the whole structure, viewing the
reuslts and access to the database. In my mapserver and postgis
trainings I'm always telling the participants you *can* mix
geometry-types and in in most cases it works....
So I would suggest to break it down to little pieces and rebuild your
WMS step by step:
- create a wms with only the problematic layer
- use the shape-file as data source
- import the shape-file to an new table with only the point-geometries
- ....
it's not a lot of fun, but at any step the behaviour will switch from
right to wrong (or wrong to right) and at this point point it will be
much easier to find the problem. Certainly you may post to the list
again and I am sure many of us want to know the solution. So when it
works don't forget the list :)
Jörg
Am 16.04.2014 08:40, schrieb drobins:
> Hi Jörg,
>
> I have lines, points and polygons stored in my table. The table has various
> columns, one which I filter the elements on (element_type).
> One of those elements is a "Voorziening", but Voorziening has points, lines
> and polygon objects.
>
> My LINE layer works fine. It only displays the lines on filter element_type
> = Voorziening
> My POLYGON layer works fine. It only displays the polygons on filter
> element_type = Voorziening
> However, my POINT layer does display the specific point objects, but also
> all nodes on the line/polygon objects with element_type = Voorziening
>
> When I set DEBUG 5 on the point layer and execute that query from the log
> file into pgadmin, it only displays one result.
>
> One thing I tried last night is to use 2 filters; one for the main
> element_type and another that described the object -> objective. I was able
> to filter out most of these extra points that way. Unfortunately, objective
> also has point and line objects with the same name, so in a few cases I
> still see the extra points.
>
>
> Added the mapfile via "Upload a file", hope it adds correctly
> The layer that's problematic is called
> NAME "elements_voorzieningpoint"
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapserver-shows-all-nodes-on-a-GeometryCollection-tp5135064p5135307.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list