Ticket #3421 (closed enhancement: fixed)

Opened 3 years ago

Last modified 14 months ago

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

Changed 3 years ago by lfilak

  • owner changed from sdlime to jmckenna
  • component changed from MapServer C Library to MapServer Documentation

Changed 3 years ago by lfilak

  • version changed from unspecified to 5.6

Changed 20 months ago by havatv

  • cc havatv added
  • status changed from new to closed
  • resolution set to invalid

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.

Changed 20 months ago by lfilak

  • status changed from closed to reopened
  • resolution invalid deleted

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".

Changed 20 months ago by havatv

  • 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.

Changed 16 months ago by havatv

  • component changed from Documentation - MapServer to Documentation - MapScript

Changed 14 months ago by havatv

  • status changed from reopened to closed
  • resolution set to fixed

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.