Re: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2015-02-11 Thread yeryry
I ran into this old problem today, using the OSGeo4W daily 6.5 build.
http://lists.osgeo.org/pipermail/mapserver-users/2009-August/thread.html#62527
http://trac.osgeo.org/mapserver/ticket/3100
Google finds quite a lot of non-mapserver-related questions about this
error, but perhaps (as was suggested in the ticket), something can be
done to avoid it, as it is related to GEOS
(EdgeEndStar::propagateSideLabels). Mapserver seems to render the
problematic geometry with no problem, but fails when a query (WMS
GetFeatureInfo) falls near it. I think it can't be related to input
file format, as it does the same with KML, spatialite, and GML. I have
made a simple set of data that shows the problem, but I'm not sure
what parts I should post, as altogether it's quite long.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-20 Thread HeiJo


Frank Warmerdam wrote:
> 
> I still don't understand why things are going through GEOS and I'm hopeful
> you will be able to file a ticket that allows us to track this down.
> 
I created it: http://trac.osgeo.org/mapserver/ticket/3100
Thanks all you again!

-- 
View this message in context: 
http://n2.nabble.com/msOGRFileNextShape-OGR-error-TopologyException-side-location-conflict-tp2535201p3477924.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] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-19 Thread Frank Warmerdam

Friend Vn 2000 wrote:

Thanks Frank, Daniel and Oliver,
I'm sure that my data has topology errors. I'm using pure MS4W and my 
method is PHPMapscript. My small application is only for zoom, pan.
In my experience, I also think MapServer or any mapping engine can draw 
a request map without checking its topology for legal or not. And my 
.mdb file runs well in ArcMap or ArcCatalog, and I think they don't take 
notice of topology when playing my file.


Friend,

You are correct that MapServer does not really care about the
consistency of the geometries.  This problem appears to be caused
by use of GEOS and that GEOS is very picky about geometry correctness.

I still don't understand why things are going through GEOS and I'm hopeful
you will be able to file a ticket that allows us to track this down.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


Re: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-19 Thread Jeff McKenna

Friend Vn 2000 wrote:

Thanks Frank, Daniel and Oliver,
I'm sure that my data has topology errors. I'm using pure MS4W and my 
method is PHPMapscript. 


For the record, I believe you are using an older MS4W version, so you 
might want to upgrade to MS4W 3.0 and then re-test...just to make sure 
that you are using more recent versions of MapServer, GEOS, and GDAL 
when talking to the developers.


-jeff


--
Jeff McKenna
FOSS4G 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


Re: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-19 Thread Friend Vn 2000
Thanks Frank, Daniel and Oliver,
I'm sure that my data has topology errors. I'm using pure MS4W and my method is 
PHPMapscript. My small application is only for zoom, pan.
In my experience, I also think MapServer or any mapping engine can draw a 
request map without checking its topology for legal or not. And my .mdb file 
runs well in ArcMap or ArcCatalog, and I think they don't take notice of 
topology when playing my file.
Best regards,
 
--- On Tue, 8/18/09, Frank Warmerdam  wrote:


Friend,

I believe this error is coming from GEOS and likely occurs when the geometries
from the file are translated into GEOS format in order to do a spatial
comparison test against the map view within OGR.

This likely is due to a linestring or polygon being invalid - perhaps due
to self-intersection.

Actually, I'm surprised that things would dip into the GEOS geometry
comparisons. MapServer is careful to only set rectangular spatial filters
and OGR is supposed to short circuit this case to avoid GEOS.  I'm not really
sure why you end up in GEOS.  Are you doing any other fancy stuff that
might end up in GEOS?

If you could boil this down to something similar I could use to reproduce
the problem, I would be willing to have Chaitanya look into it.  It would
need to be filed as a GDAL ticket.

Best regards,
-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




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


Re: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-18 Thread Oliver Wesp
Hi,

we recently struggled with exactely the same kind of errors
(TopologyException) when reading S57 data through ogr. We discovered
that the problem only occured when gdal/ogr was build against GEOS. We
rebuild without GEOS support and the TopologyExceptions dissapeard.

Best regards,
Oliver

2009/8/18 Daniel Morissette :
> Friend Vn 2000 wrote:
>>
>> I still get this error now ( I use MS4W v2.3.1 - mapserv 5.2.1 ).
>> My data source is a .mdb Personal Geodabase file. This is the first time I
>> use this kind for input. I found the map engine doesn't work stably and this
>> error appears frequently. Sometime the error not shown but some features in
>> the map disappear mysterious-ly.
>
> I see two possibilities: it is either a bug in the OGR driver for Personal
> Geodatabase, or the specific file you are trying to open does not have clean
> topology in it, but either way this is very unlikely to be a direct
> MapServer issue. The first thing you should do is ensure that the dataset
> has clean topology in it. I'm sorry, I don't know how to do that with recent
> versions of ESRI software, but I remember that in the days of Arc/Info 7.x
> you'd do a CLEAN/BUILD on your coverage to rebuild the topology.
>
> Once you are sure that the topology is valid, you could try running
> GDAL/OGR's "ogrinfo" or "ogr2ogr" utilities on your dataset, if it's a OGR
> driver problem then the utilities will probably produce the same errors, in
> which case your best bet would be to file a GDAL/OGR ticket with a dataset
> to reproduce the issue, so that the maintainer of the driver can have a look
> and see if something can be done about this issue.
>
> Daniel
> --
> 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] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-18 Thread Frank Warmerdam

Friend Vn 2000 wrote:

I still get this error now ( I use MS4W v2.3.1 - mapserv 5.2.1 ).
My data source is a .mdb Personal Geodabase file. This is the first time 
I use this kind for input. I found the map engine doesn't work stably 
and this error appears frequently. Sometime the error not shown but some 
features in the map disappear mysterious-ly.

Thanks!

--- On *Thu, 3/26/09, Daniel Morissette //* wrote:


From: Daniel Morissette 
Subject: Re: [mapserver-users] msOGRFileNextShape(): OGR error.
TopologyException: side location conflict
To: "MapserverList OSGEO" 
Date: Thursday, March 26, 2009, 6:36 AM

Tamas Szekeres wrote:
 >
 > msDrawMap(): Image handling error. Failed to draw layer named
'MainStreet'.;msOGRFileNextShape(): OGR error. TopologyException:
side location conflict 19.0499 47.5334 1.7e-308
 >
 > Does anyone know where this error is coming from? I've seached
for these strings in the MapServer and OGR code but didn't find any hit.


Friend,

I believe this error is coming from GEOS and likely occurs when the geometries
from the file are translated into GEOS format in order to do a spatial
comparison test against the map view within OGR.

This likely is due to a linestring or polygon being invalid - perhaps due
to self-intersection.

Actually, I'm surprised that things would dip into the GEOS geometry
comparisons. MapServer is careful to only set rectangular spatial filters
and OGR is supposed to short circuit this case to avoid GEOS.  I'm not really
sure why you end up in GEOS.  Are you doing any other fancy stuff that
might end up in GEOS?

If you could boil this down to something similar I could use to reproduce
the problem, I would be willing to have Chaitanya look into it.  It would
need to be filed as a GDAL ticket.

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

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


Re: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-18 Thread Daniel Morissette

Friend Vn 2000 wrote:

I still get this error now ( I use MS4W v2.3.1 - mapserv 5.2.1 ).
My data source is a .mdb Personal Geodabase file. This is the first time 
I use this kind for input. I found the map engine doesn't work stably 
and this error appears frequently. Sometime the error not shown but some 
features in the map disappear mysterious-ly.


I see two possibilities: it is either a bug in the OGR driver for 
Personal Geodatabase, or the specific file you are trying to open does 
not have clean topology in it, but either way this is very unlikely to 
be a direct MapServer issue. The first thing you should do is ensure 
that the dataset has clean topology in it. I'm sorry, I don't know how 
to do that with recent versions of ESRI software, but I remember that in 
the days of Arc/Info 7.x you'd do a CLEAN/BUILD on your coverage to 
rebuild the topology.


Once you are sure that the topology is valid, you could try running 
GDAL/OGR's "ogrinfo" or "ogr2ogr" utilities on your dataset, if it's a 
OGR driver problem then the utilities will probably produce the same 
errors, in which case your best bet would be to file a GDAL/OGR ticket 
with a dataset to reproduce the issue, so that the maintainer of the 
driver can have a look and see if something can be done about this issue.


Daniel
--
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] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-08-18 Thread Friend Vn 2000
I still get this error now ( I use MS4W v2.3.1 - mapserv 5.2.1 ).
My data source is a .mdb Personal Geodabase file. This is the first time I use 
this kind for input. I found the map engine doesn't work stably and this error 
appears frequently. Sometime the error not shown but some features in the map 
disappear mysterious-ly.
Thanks!

--- On Thu, 3/26/09, Daniel Morissette  wrote:


From: Daniel Morissette 
Subject: Re: [mapserver-users] msOGRFileNextShape(): OGR error. 
TopologyException: side location conflict
To: "MapserverList OSGEO" 
Date: Thursday, March 26, 2009, 6:36 AM


Tamas Szekeres wrote:
> 
> msDrawMap(): Image handling error. Failed to draw layer named 
> 'MainStreet'.;msOGRFileNextShape(): OGR error. TopologyException: side 
> location conflict 19.0499 47.5334 1.7e-308
> 
> Does anyone know where this error is coming from? I've seached for these 
> strings in the MapServer and OGR code but didn't find any hit.
> 

In which format is the data? I suspect the error may come from the OGR driver 
or a lib used by the OGR code.

Daniel
-- 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] msOGRFileNextShape(): OGR error. TopologyException: side location conflict

2009-03-25 Thread Daniel Morissette

Tamas Szekeres wrote:


msDrawMap(): Image handling error. Failed to draw layer named 
'MainStreet'.;msOGRFileNextShape(): OGR error. TopologyException: side 
location conflict 19.0499 47.5334 1.7e-308


Does anyone know where this error is coming from? I've seached for these 
strings in the MapServer and OGR code but didn't find any hit.




In which format is the data? I suspect the error may come from the OGR 
driver or a lib used by the OGR code.


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