[Geomedia-l] WEBMAP PRO finding the nearest line
Rui Lima
eng.ruilima at gmail.com
Wed Jan 3 14:46:50 CST 2007
I'm not trying to do this on Geomedia Professional :(
I'm creating a webpage that uses Geomedia Webmap Professional, and want to
get the id of the nearest road when the user clicks on a point on the map.
I'm creating a BLOB using PBasic.PointGeometry and i was trying to use a
PPipe.SpatialSubsetPipe the outputrecordset.recordcount is always 0
Dim ssp As PPipe.SpatialSubsetPipe
ssp = Me.MapServer.CreateObject("GeoMedia.SpatialSubsetPipe")
With ssp
.InputRecordset = recsetTrocos '<-has >24800 records
.InputGeometryFieldName = "Geometry"
.FilterRecordset = recsetPonto '<- has one record
.FilterGeometryFieldName = "Geometry"
.Distance = 100 /
MapServer.CoordSysMgr.CoordSystem.StorageToProjectionScale
.NotOperator = False
.SpatialOperator = PPipe.SQConstants.gmsqWithinDistance
.OutputStatusFieldName = "status"
End With
Dim auxRecSet As GDO.GRecordset
auxRecSet = ssp.OutputRecordset
auxRecSet.MoveLast() 'rises exception because auxRecSet is empty :(
auxRecSet.MoveFirst()
Where should i look for a problem???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.directionsmedia.net/pipermail/geomedia-l/attachments/20070103/edfce4ec/attachment.html
More information about the GeoMedia-l
mailing list