I'm trying to use the command line mrsidgeoencoder.exe to crop an image.
Here is what i'm typing at the command prompt:
mrsidgeoencoder -i D:\2009_Ortho_Cut\NAD27\Humboldt_County_NAD27.sid -cropulxy 404870.624791 4523622.130743 -croplrxy 415974.566365 4512708.188170 -o D:\2009_Ortho_Cut\NAD27\H05N01E.sid -wf
I get the following error message: Cropping values in image (pixel) space must be integers.
I find this odd because the information listed under cropping switches in the Command line help show for example "-cropulxy float0 float1 Upper left XY position of a cropping rectangle".
command line cropping problem
Moderator: jskiffington
7 posts
• Page 1 of 1
new error after adding -coord switch
I added the switch -coord, and now get the error:
mrsidgeoencoder.exe usage error: extra arguments found (404870.624791 ...)
where 404870.624791 would be the floating point x coordinate that I presume would be needed for the switch,
-cropulxy float0 float1
mrsidgeoencoder.exe usage error: extra arguments found (404870.624791 ...)
where 404870.624791 would be the floating point x coordinate that I presume would be needed for the switch,
-cropulxy float0 float1
- grouse
- Posts: 4
- Joined: Wed Jan 13, 2010 12:32 pm
Got it to work by adding "geo" after -coord
mrsidgeoencoder -i D:\2009_Ortho_Cut\NAD27\Humboldt_County_NAD27.sid -coord [b]geo[/b] -cropulxy 404870.624791 4523622.130743 -croplrxy 415974.566365 4512708.188170 -o D:\2009_Ortho_Cut\NAD27\H05N01E.sid -wf
The only other thing I need is to have it create the world file. It seems the switch -wf is being ignored.
In the echo of information that follows I notice the info:
"Ignoring flag: -wf doesn't apply to MrSID optimizing.
When I crop through the GeoExpress GUI a world file is automatically created.
mrsidgeoencoder -i D:\2009_Ortho_Cut\NAD27\Humboldt_County_NAD27.sid -coord [b]geo[/b] -cropulxy 404870.624791 4523622.130743 -croplrxy 415974.566365 4512708.188170 -o D:\2009_Ortho_Cut\NAD27\H05N01E.sid -wf
The only other thing I need is to have it create the world file. It seems the switch -wf is being ignored.
In the echo of information that follows I notice the info:
"Ignoring flag: -wf doesn't apply to MrSID optimizing.
When I crop through the GeoExpress GUI a world file is automatically created.
- grouse
- Posts: 4
- Joined: Wed Jan 13, 2010 12:32 pm
Oops! I left out "geo". Sorry about that.
The command line is pretty smart in that it "optimizes" when it sees an operation that only requires editing a MrSID G3 file. There is also no way to tell it not to do that at this time.
I'm not sure why it won't output a world file, but
mrsidgeoinfo -wf imagename.sid
will produce one.
I'll log this in our bug tracker.
The command line is pretty smart in that it "optimizes" when it sees an operation that only requires editing a MrSID G3 file. There is also no way to tell it not to do that at this time.
I'm not sure why it won't output a world file, but
mrsidgeoinfo -wf imagename.sid
will produce one.
I'll log this in our bug tracker.
- rparker
- Posts: 237
- Joined: Tue Jan 15, 2008 3:20 pm
- Location: LizardTech
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
- Forum index
- The team • Delete all board cookies • All times are UTC - 7 hours
