Opened 14 years ago

Closed 12 years ago

#3421 closed enhancement (fixed)

SWIG MapScript Creating a lineObj

Reported by: lfilak Owned by: jmckenna
Priority: normal Milestone:
Component: Documentation - MapScript Version: 5.6
Severity: normal Keywords:
Cc: havatv, sdlime

Description

A new lineObj can be created from a bogus symbolObj. Sample in Perl: my $symbol = new mapscript::symbolObj("bogus.sym"); my $line = $symbol->getPoints();

For some unknown reason this is not sufficient enough to create a GEOS polygon, use fromWKT for that.

Change History (7)

comment:1 by lfilak, 14 years ago

Component: MapServer C LibraryMapServer Documentation
Owner: changed from sdlime to jmckenna

comment:2 by lfilak, 14 years ago

Version: unspecified5.6

comment:3 by havatv, 13 years ago

Cc: havatv added
Resolution: invalid
Status: newclosed

I don't understand what to do. I close it as invalid. Please reopen and clarify if this is still an issue. Preferably with a suggestion for what to include in the documentation and where.

comment:4 by lfilak, 13 years ago

Resolution: invalid
Status: closedreopened

After looking through the SWIG Mapscript documentation I did not see any way of creating a new lineObj, so I submitted this bug to hopefully give others direction on how to create a new lineObj. The current documentation does not have a "constructor" section for each object so I do not know where to place the information, but "to create a new lineObj with SWIG mapscript use the getPoints method of a blank symbolObj".

comment:5 by havatv, 13 years ago

Cc: sdlime added

There should be a simple no way to create a line object in swig mapscript. Hopefully there is, and it just needs to be documented. One would expect something like:

new lineObj( ) : lineObj

According to the PHP mapscript documentation you can use the new lineObj(), or ms_newLineObj() to create a line object in PHP.

Adding Steve to the CC-list to get a clarification.

comment:6 by havatv, 12 years ago

Component: Documentation - MapServerDocumentation - MapScript

comment:7 by havatv, 12 years ago

Resolution: fixed
Status: reopenedclosed

The lineObj constructor seems to be present, so I added it to the mapscript documentation (for trunk and 6.0) in r13304. Closing.

Note: See TracTickets for help on using tickets.