Opened 12 years ago

Closed 12 years ago

#1928 closed defect (fixed)

Maestro - XYZ SDF File Layer Prevents Map Save

Reported by: crispinatime Owned by: jng
Priority: high Milestone: Maestro-5.0
Component: Maestro Version:
Severity: major Keywords:
Cc: External ID:

Description

With a SDF exported from Autodesk Map, connected and layered both .FeatureSource and .LayerDefinition validate OK.

However, when saving a map (one that saved OK in earlier Maestro versions) an excpetion is thrown. I stepped in to get a full stack trace and details also.

Using Maestro\trunk

[GisSharpBlog.NetTopologySuite.IO.ParseException] = {"Expected 'EMPTY' or '(' but encountered 'XYZ'"}

   at GisSharpBlog.NetTopologySuite.IO.WKTReader.GetNextEmptyOrOpener(IList tokens)
   at GisSharpBlog.NetTopologySuite.IO.WKTReader.ReadPolygonText(IList tokens)
   at GisSharpBlog.NetTopologySuite.IO.WKTReader.ReadGeometryTaggedText(IList tokens)
   at GisSharpBlog.NetTopologySuite.IO.WKTReader.Read(TextReader reader)
   at GisSharpBlog.NetTopologySuite.IO.WKTReader.Read(String wellKnownText)
   at OSGeo.MapGuide.MaestroAPI.Http.XmlRecord..ctor(XmlProperty[] properties, WKTReader wktReader, XmlNodeList propertyNodes, String nameElement, String valueElement) in E:\Projects\Maestro\OSGeo.MapGuide.MaestroAPI.Http\XmlRecord.cs:line 132
   at OSGeo.MapGuide.MaestroAPI.Http.XmlReaderBase.ReadNextRecord() in E:\Projects\Maestro\OSGeo.MapGuide.MaestroAPI.Http\XmlReaderBase.cs:line 208
   at OSGeo.MapGuide.MaestroAPI.Feature.ReaderBase.ReadNext() in E:\Projects\Maestro\OSGeo.MapGuide.MaestroAPI\Feature\ReaderBase.cs:line 68
   at OSGeo.MapGuide.MaestroAPI.PlatformConnectionBase.GetSpatialExtent(String resourceID, String schema, String geometry, String filter, Boolean allowFallbackToContextInformation) in E:\Projects\Maestro\OSGeo.MapGuide.MaestroAPI\PlatformConnectionBase.cs:line 1640
   at OSGeo.MapGuide.MaestroAPI.PlatformConnectionBase.GetSpatialExtent(String resourceID, String schema, String geometry) in E:\Projects\Maestro\OSGeo.MapGuide.MaestroAPI\PlatformConnectionBase.cs:line 1544
   at OSGeo.MapGuide.ObjectModels.FeatureSource.FeatureSourceExtensions.GetSpatialExtent(IFeatureSource fs, String className, String geomProperty) in E:\Projects\Maestro\OSGeo.MapGuide.MaestroAPI\ObjectModels\FeatureSourceInterfaces.cs:line 532
   at OSGeo.MapGuide.MaestroAPI.Resource.Validation.BaseMapDefinitionValidator.ValidateBase(ResourceValidationContext context, IResource resource, Boolean recurse) in E:\Projects\Maestro\OSGeo.MapGuide.MaestroAPI\Resource\Validation\BaseMapDefinitionValidator.cs:line 193

Attachments (1)

Land-Form Panorama and Z.sdf (3.8 MB ) - added by crispinatime 12 years ago.

Change History (3)

comment:1 by jng, 12 years ago

This is a sort of known problem (the WKTReader has issues parsing 3d geometry WKT and your SDF has 3d coordinates)

Can you attach an SDF with such coordinates? I think any SDF produced by AutoCAD Map will suffice

by crispinatime, 12 years ago

comment:2 by jng, 12 years ago

Resolution: fixed
Status: newclosed

Fixed r6453

Note: See TracTickets for help on using tickets.